body {
  background-color: #f4f6f9;
  font-family: 'Inter', sans-serif;
}

h2 {
  font-weight: 700;
  font-size: 2.2rem;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
}

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

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.card-text, .card-body p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #555;
}

.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
}

.nav-tabs .nav-link {
  font-weight: 700;
  font-size: 1.2rem;
}

@keyframes flow {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

#electricity-status, #pressure-status, #dashboard-current-timer {
  text-align: center;
}

.card-body img {
  display: block;
  margin: 0 auto;
}

#motor-image, #timer-image {
  width: 200px;
  margin-bottom: 10px;
}

.progress-bar {
  width: 0;
}

.text-center h6 {
  font-size: 1rem;
  font-weight: 700;
}

.text-center p {
  font-size: 1.2rem;
  font-weight: 600;
}

.d-flex {
  display: flex;
}

.justify-content-around {
  justify-content: space-around;
}

.align-items-center {
  align-items: center;
}

@media (max-width: 991.98px) {
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  h2 {
    font-size: 2rem;
  }
  .card-title {
    font-size: 1.2rem;
  }
  .card-text, .card-body p {
    font-size: 1rem;
  }
  #motor-image {
    width: 80px !important;
  }
  #timer-image {
    width: 60px !important;
  }
  .col-md-6, .col-lg-4, .col-md-4, .col-xl-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .card-body img {
    margin-bottom: 10px !important;
  }
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
  border-left: 3px solid #007bff;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: #007bff;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #cce5ff;
}

.timeline-item .card {
  margin-left: 20px;
  background: #f8f9fa;
}

.timeline-item .card-title {
  color: #007bff;
}

.pressure-flow {
  width: 100px;
  height: 20px;
  border-radius: 10px;
  background: linear-gradient(to right, #0af, #0cf);
  transition: all 0.3s ease;
}

/* Fertigation Logs Styles */
#fertigation-logs .card {
  margin-bottom: 20px;
}

#fertigation-history td {
  vertical-align: middle;
}

#fertigation-form .form-control:disabled,
#fertigation-form .form-select:disabled {
  background-color: #e9ecef;
  opacity: 0.8;
}

#fertigation-form textarea {
  resize: vertical;
  min-height: 80px;
}

.fertigation-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dc3545;
  display: inline-block;
  margin-right: 8px;
}

#fertigation-status-card {
  transition: border 0.3s ease;
}

#fertigation-timer {
  font-size: 1.1rem;
  font-weight: 500;
}
