:root{
	--primary-bg-color:#e3f2fd;
	--secondary-bg-color:#a4d2f4;
	--text-color:#000000b5;
	--icon-color:#5face4;
	--txt-title-color:#4696d1;
}
header{
    background-color: var(--primary-bg-color);
    padding: 5px 10px;
}
.profile-Icon img {
    width: 60px;
    height: 58px;
}
.brandName {
    text-align: center;
}
.brandName h2{
    margin: 0;
}
.brandName img {
    width: 90px;
}
.connect-status {
    text-align: right;
    margin-top: 3px;
}
.connect-status i{
	font-size: 38px;
}
.bm-home {
    text-align: center;
    background: var(--secondary-bg-color);
}

.bm-home i{
	font-size: 32px;
}
.fixed-bottom{
	background: #fff;
}
.bm-addDevice {
    text-align: center;
}

.bm-addDevice i{
	font-size: 32px;
}

.bm-settings{
	text-align: center;
    background: var(--secondary-bg-color);
}

.bm-settings i{
	font-size: 32px;
}

.dv-heading {
    border-bottom: 2px dashed var(--secondary-bg-color);
}
.dv-heading h2 {
    font-size: 20px;
    color: var(--icon-color);
}
.card a {
   text-decoration: none;
}
.wifi-status {
    position: absolute;
    right: 3px;
    top: -3px;
    font-size: 20px;
    color: green;
}

.deviceIcon{
	font-size: 50px;
	color: var(--icon-color);
}

.submit-bn{
	background: var(--secondary-bg-color) !important;
	border:none !important;
	color: var(--text-color) !important;
}

.card-title{
	color: var(--txt-title-color) !important;
}

.app-menu ul li {
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--secondary-bg-color);
}
.app-menu ul li a{
	color: var(--text-color);
	width: 100%;
}
.app-menu i {
    font-size: 20px;
    margin-right: 5px;
    color: var(--txt-title-color);
}
.app-menu span {
    position: absolute;
    right: 15px;
}
.customer-info {
    padding: 0px 15px;
}

.customer-info label {
    font-size: 18px;
    line-height: 35px;
}

.device-row {
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.wifi-status {
  font-size: 1.2rem;
}
.btn-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}

.device-title {
  text-align: center;
  font-size: 24px;
  margin-top: 20px;
  font-weight: bold;
  color: #2c3e50;
}
.device-control-card {
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ddd;
  background-color: #fff;
  margin-bottom: 20px;
}
.device-toggle-btn {
    width: 80%;
    padding: 5px;
}
.device-slider {
  width: 100%;
}

.modal-open {
  padding-right: 0 !important;
  overflow-y: scroll !important;
}

#loaderOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg-color);
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Preloader full-screen background */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-bg-color); /* light greenish background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Spinner */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid var(--secondary-bg-color);
  border-top: 6px solid var(--icon-color); /* main green color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#main-content {
  position: relative; /* Needed to contain the absolute loader */
}


/* control-page style */

  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
  }

  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }

  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }

  .toggle-switch input:checked + .toggle-slider {
    background-color: #4caf50;
  }

  .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
  }

  .toggle-label {
    margin-left: 12px;
    vertical-align: middle;
    font-weight: 500;
  }

.modal-content {
  border-radius: 1rem;
  border: none;
  padding: 10px 0;
  background: #fefefe;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.modal-title {
  font-weight: 600;
  color: #0b5394;
}

.modal-body label {
  font-weight: 500;
  color: #333;
}

.modal-body .form-control,
.modal-body .form-select {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgb(134 198 245);
  border: 1px solid #d0e6f8;
}

.modal-body input[type="checkbox"] {
  accent-color: #0b5394;
}

.modal-footer .btn {
  border-radius: 8px;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
  background-color: #e3f3fd;
  color: #0b5394;
  font-weight: bold;
  border: none;
  box-shadow: 0 1px 3px rgb(134 198 245);
  border-radius: 8px;
  transition: 0.2s ease;
}

.modal-footer .btn-primary:hover,
.modal-footer .btn-secondary:hover {
  background-color: #d3e8fb;
  transform: scale(1.03);
}

/* Slider container style */
.speed-control {
  margin-top: 10px;
}

/* Slider track */
.speed-control input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #e3f3fd;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgb(134 198 245);
  outline: none;
}

/* Slider thumb */
.speed-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: #0b5394;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgb(134 198 245);
  transition: 0.2s ease;
}

.speed-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background-color: #0b5394;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgb(134 198 245);
  transition: 0.2s ease;
}

/* + / - button style */
.speed-control button {
  width: 65px;
  height: 45px;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  border-radius: 50%;
  transition: 0.2s ease;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgb(134 198 245);
  border: none;
  color: #0b5394;
  font-weight: bold;
}

.speed-control button:hover {
  background-color: #d0e6f6;
  transform: scale(1.05);
}


.btn-on {
  background-color: #e3f3fd;
  color: #0b5394;
  font-weight: bold;
  box-shadow: 0 1px 3px rgb(134 198 245);
  border: none;
  padding: 10px 16px;
  font-size: 18px;
  border-radius: 6px;
}

.btn-off {
  background-color: #ffe5e5;
  color: #8a1c1c;
  font-weight: bold;
  box-shadow: 0 1px 3px rgb(245, 170, 170);
  border: none;
  padding: 10px 16px;
  font-size: 18px;
  border-radius: 6px;
}

.btn-on:hover,
.btn-off:hover {
  transform: scale(1.03);
}

.set-timer-btn,.tank-auto-mode{
  position: absolute;
  left: 7px;
  top: 7px;
}

.set-schedule-btn,.tank-config{
  position: absolute;
  right: 7px;
  top: 7px;
}

.timer-schedule-controls .btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease;
    box-shadow: 0 1px 3px rgb(134 198 245);
}

.timer-schedule-controls .btn:hover {
  transform: scale(1.1);
  border-color: 0 1px 3px rgb(134 198 245);
}

.device-control-card {
  position: relative;
}

.tank-position{
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tank-wrapper {  
  position: relative;
  width: 220px;
  height: 270px;
  padding: 15px;
  box-sizing: border-box;
  overflow: hidden;
}

.water {
  position: absolute;
  bottom: 0;
  left: 3px;
  right: 3px;
  height: 0%;
  border-radius: 15px 15px 15px 15px;
  overflow: hidden;
  background: linear-gradient(135deg, #4fc3f7 25%, #0288d1 50%, #4fc3f7 75%);
  background-size: 200% 100%;
  z-index: 1;
}

/* wave animation class */
.wave-animation {
  animation: waveMove 4s linear infinite;
}

.tank-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/water-tank-frame.png') no-repeat center/contain;
  background-size: contain;
  z-index: 2;
  pointer-events: none;
}

/* Percentage text centered inside tank */
.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #004a99;
  font-size: 2rem;
  font-weight: bold;
  z-index: 3;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 0 3px #fff;
}

@keyframes waveMove {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}