body {
  background-color: #e6f2ff;
  font-family: Arial, sans-serif;
}
/* Control System Box */
.control-box {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  font-family: Arial, sans-serif !important;
  margin: 20px 0;
}

/* Heading */
.control-box h6 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Paragraphs */
.control-box p {
  margin: 5px 0;
  font-size: 14px;
}

/* Button Styles */
.button-group {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.btn {
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

/* .button-group .btn {
  width: 50%;
} */

.btn:hover {
  transform: scale(1.05);
}

.btn-green {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.btn-red {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-orange {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.frp-card {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-radius: 15px;
  padding: 20px;
  height: 352px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.tower-structure {
  width: 190px;
  height: 266px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 15px;
  margin: auto;
  position: relative;
  padding: 34px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  color: #000;
}
/* Fan Circle */
.tower-fan {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #222 40%, #444 100%);
  border-radius: 50%;
  margin: 0 auto 10px;
  position: relative;
  border: 3px solid #555;
  animation: spin 2s linear infinite;
}

/* Vertical line */
.tower-fan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

/* Horizontal line */
.tower-fan::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Water Flow */
.water-flow {
  width: 100%;
  height: 15px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  background-size: 200% 100%;
  border-radius: 10px;
  margin-top: 20px;
  animation: flow 3s linear infinite;
}

@keyframes flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
/* Red Dots */
.red-dot {
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  position: absolute;
  animation: pulse 2s infinite;
  opacity: 0.7;
}
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}
.dot1 {
  top: 40px;
  left: 30px;
}
.dot2 {
  top: 100px;
  left: 80px;
}
.dot3 {
  top: 200px;
  left: 50px;
}
.dot4 {
  bottom: 20px;
  right: 60px;
}
.dashboard-container {
  /* max-width: 1300px; */
  width: 85%;
  margin: 20px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  padding: 20px;
}
.header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298);
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
}
.card-box {
  border-radius: 12px;
  padding: 20px;
  color: white;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.purple {
  background: #5e4bff;
}
.blue {
  background: #1d90ff;
}
.teal {
  background: #009688;
}
.gray-box {
  background: #37474f;
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}
.footer {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-top: 30px;
  text-align: center;
}
.btn-custom {
  border-radius: 20px;
  font-weight: bold;
  padding: 10px 20px;
  margin: 5px;
}
.btn-green {
  background: #00c853;
  color: white;
}
.btn-red {
  background: #d32f2f;
  color: white;
}
.btn-orange {
  background: #ff6d00;
  color: white;
}
.dashboard-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.dashboard-card h6 {
  font-weight: bold;
}
.metric-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
}
.metric-value {
  font-size: 20px;
  font-weight: bold;
}
.status-text {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Base dot style */
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: glow 1.5s infinite alternate;
}

/* Different colors for each status */
.green {
  background: #28a745;
  box-shadow: 0 0 10px #28a745;
}
.orange {
  background: #ff9800;
  box-shadow: 0 0 10px #ff9800;
}
.blue {
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
}

/* Glow effect animation */
@keyframes glow {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.3);
    opacity: 1;
  }
}
.section-cards {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 20px;
}

.chemical-card {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 20px;
  color: white;
  text-align: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.chemical-card:hover {
  transform: translateY(-5px);
}

.chemical-icon {
  width: 60px;
  height: 60px;
  background: #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 24px;
  color: white;
  animation: zoomPulse 2s infinite ease-in-out;
}

@keyframes zoomPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.progress-bar {
  margin: 10px 0;
  height: 8px;
  border-radius: 5px;
  background: #ccc;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: limegreen;
  border-radius: 5px;
  /* transition: width 0.5s ease-in-out;
  animation: progress_pulse 2s infinite; */
}

/* @keyframes progress_pulse {
  0% {
    transform: scale(60);
  }
  100% {
    transform: scale(80);
  }
} */

.tank-level {
  font-size: 12px;
  margin-top: 5px;
}
@media (max-width: 768px) {
  .section-cards {
    display: block; /* stack vertically */
  }

  .chemical-card {
    width: 100%; /* full width */
    margin-bottom: 16px; /* spacing between cards */
  }
}
/* Mobile view: stack buttons */
@media (max-width: 768px) {
  .button-group .btn {
    width: 40%; /*full width of parent */
    margin-bottom: 10px; /* spacing between buttons */ /* ensure block element */
  }
}

@media (max-width: 505px) {
  .button-group {
    display: block;
  }
  .button-group .btn {
    width: 100% !important; /* full width for smaller screens */
    margin-bottom: 10px; /* spacing between buttons */
  }
}

@media (max-width: 768px) {
  .tower-structure {
    height: 200px; /* reduced height */
    width: 150px; /* optional: reduce width too */
    padding: 20px; /* optional: adjust padding */
  }
}
