body {
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
  margin-left: 3px;
  margin-right: 3px;
  background: #aadf30;
  margin-bottom: 80px;
  padding-top: 60px;
}
  .container {
  padding: 18px;
}
  .content {
    min-height: 90vh;
    padding: 50px;
    background-color: #f5f5f5;
  }
  
.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(to right, #425927, #56ab2f);
  border-radius: 5px 5px 5px 5px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  box-sizing: border-box;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #ddd;
}
  .dashboard-header h1 {
    font-size: 24px;
    color: #fff;
    margin: 0;
  }

  .dashboard-header p {
    font-size: 16px;
    color: #fff;
  }

  .dashboard-header .header-icons i {
    font-size: 24px;
    color: #fff;
    margin-left: 15px;
    cursor: pointer;
  }

  .dashboard-header .header-icons i:hover {
    color: #e6f0ff;
  }

  .header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
  }
  .dropdown {
    position: relative;
    display: inline-block;
  }

  .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(to top, #cfdabc, #a4f449);
  min-width: 100px; 
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15); 
  z-index: 1;
  padding: 6px; 
  border-radius: 4px;
  transform: translateX(-10%);
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
  font-size: 12px; 
}


.dropdown-content h4 {
    margin: 8px 0;
    cursor: pointer;
}

.show {
    display: block;
}

.header-icons {
    position: relative;
}

.battery-percent {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.battery-icon[data-level="low"] .battery-level {
  background-color: #e74c3c; 
  margin-top: -2px;
  margin-left: -2px;
}

.battery-icon[data-level="mid"] .battery-level {
  background-color: #f39c12;
  margin-top: -2px;
  margin-left: -2px;
}

.battery-icon[data-level="high"] .battery-level {
  background-color: #27ae4fff; 
  margin-top: -2px;
  margin-left: -2px;
}

.alert-box {
      background-color: #ffcccc;
      color: #990000;
      padding: 15px;
      margin: 15px;
      border-radius: 10px;
      font-weight: bold;
      text-align: center;
    }
/* Selection Section */
.selection-section {
  background: linear-gradient(to top, #cfdabc, #a4f449);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  max-width: 330px;
  margin: 0 auto 20px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
}

.select-group {
  margin-bottom: 2px;
  width: 100%;
  max-width: 600px;
}

.select-group label {
  font-weight: bold;
  display: block;
  margin: 1px;
  font-size: 12px;
}

.select-group select,
.select-group input[type="number"],
.select-group input[type="text"] {
  width: 100%;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 10px;
  background-color: #f9f9f9;
  color: #333;
  outline: none;
  box-sizing: border-box;
}

.select-group select:focus,
.select-group input[type="number"]:focus,
.select-group input[type="text"]:focus {
  border-color: #4CAF50;
  background-color: #e6f0ff;
}


button {
  width: 100%;
  background-color: #4CAF50;
  color: white;
  padding: 8px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.3s, transform 0.2s;
}

button .card-icons {
  color: #e8e4e4;
}

button:hover {
  transform: translateY(-2px);
  background: #45a049;
}

#variety-info {
  background: #f9f9f9;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 12px;
  color: #333;
  width: 100%;
  max-width: 600px;
  margin: 10px auto;
  margin-bottom: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#variety-info h3 {
  font-size: 14px;
  margin-bottom: 5px;
  color: #2e7d32;
}

#variety-info p {
  margin: 3px 0;
  font-size: 12px;
  color: #444;
}

#variety-info span {
  font-weight: 600;
}

#days-left-card {
  background: #fffbe6;
  border: 1px solid #ffc107;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 80px;
  font-size: 12px;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  
}

#days-left-card i {
  font-size: 16px;
  color: #ffc107;
}

#days-left-card div:first-of-type {
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 2px;
}

#days-left {
  font-size: 16px;
  font-weight: bold;
  color: #d84315;
  
}
.highlighted {
  border: 3px solid #ff9800 !important;
  box-shadow: 0 0 15px #ff9800;
  background-color: #fffde7;
  transition: box-shadow 0.5s ease;
}
    .pump-control {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 10px;
      width: 100%;
      max-width: 600px;
      justify-content: center;
    }

    .pump-status {
      margin: 0;
      margin-top: 3px;
      font-size: 18px;
      font-weight: 700;
      user-select: none;
      flex-grow: 1;
      text-align: center;
    }

    .pump-status.off {
      color: #cc3333;
    }

    .pump-status.on {
      color: rgb(8, 134, 37);
    }

    .pump-toggle-btn {
      background-color: rgb(8, 134, 37);
      border: none;
      color: white;
      padding: 10px 14px;
      font-size: 20px;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .pump-toggle-btn:hover {
      background-color: rgb(9, 162, 50);
    }

    .pump-toggle-btn:focus {
      outline: 2px solid #74c476;
      outline-offset: 2px;
    }

    .pump-toggle-btn.active {
      background-color: #4CAF50;
      color: white;
    }

    .alert-box {
      margin: 10px auto;
      padding: 12px 20px;
      max-width: 600px;
      border-radius: 8px;
      background-color: #fff3cd;
      color: #856404;
      border: 1px solid #ffeeba;
      font-weight: 600;
      text-align: center;
    }
      .days-box {
      background-color: #f0f8ff;
      color: #007BFF;
      font-size: 12px;
      border: 1px solid #007BFF;
      border-radius: 5px;
      padding: 10px;
      width: 80px;
      height: 80px;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-weight: 600;
      min-width: 60px;
    }

    .card,
    .cards {
      flex: 1 1 60px;
      min-width: 45px;
      max-width: 65px;
      background: linear-gradient(to bottom, #e4e6e0,rgb(71, 203, 0));
      padding: 12px;
      border-radius: 6px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
      text-align: center;
      font-size: 6px;
      margin-top: 10px;
    }
    
    .card-icon,
    .card-icons {
      font-size: 8px;
      margin-bottom: 2px;
      color: #4CAF50;
    }
    
    .cards h2,
    .card h2 {
      font-size: 9px;
      margin: 2px 0;
      color: #2d2a2a;
    }
    
    .cards p,
    .card p {
      font-size: 10px;
      color: black;
      padding-top: 7px;
    }
    
    .cards-container {
      padding: 3px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 4px;
    }


    /*Profile*/
    .profile-container {
      background: linear-gradient(to top, #cfdabc, #a4f449);
      border-radius: 15px;
      padding: 10px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      max-width: 400px;
      margin: 0 auto;
      text-align: center;
      margin-bottom: 190px;
    }

    .profile-header {
      margin-bottom: 20px;
    }

    .profile-pic {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 10px;
      border: 3px solid #007BFF;
    }

    .profile-header h2 {
      font-size: 22px;
      margin: 10px 0 5px;
      color: #333;
    }

    .location {
      color: #777;
      font-size: 12px;
    }

    .profile-info {
      text-align: left;
      margin-top: 20px;
      font-size: 14px;
    }

    .info-item {
      padding: 7px 0;
      border-bottom: 1px solid #eee;
    }

    .info-item strong {
      color: #007BFF;
    }

    .info-item span {
      color: #333;
    }

    .profile-actions {
      margin-top: 20px;
    }

    .dropdown h4{
      color: #2c2828;
      font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
      text-align: center;
      background-color: #73cd4d;
      border-radius: 5px;
      cursor: pointer;
    } 
    .dropdown h4:hover{
      transform: translateY(-3px);
    } 

    .modal {
      display: none; 
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.5); 
    }
    .modal-content {
      background: linear-gradient(to top, #cfdabc, #a4f449);
      margin: 15% auto;
      padding: 20px;
      border-radius: 8px;
      width: 300px;
      text-align: center;
    }
    .modal-content p{
      color: #1d201e;
    }

    .show-modal {
      display: block;
    }
    .show-modal .modal-content {
      transform: translateY(0);
      opacity: 1;
    }

    .modal-buttons {
      margin-top: 20px;
    }

    .modal-buttons button {
      padding: 10px 20px;
      margin: 0 8px;
      border: none;
      border-radius: 5px;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.2s;
    }

    .modal-buttons button:first-child {
      background-color: #28a745;
      color: white;
    }
    .modal-buttons button:first-child:hover {
      background-color: #218838;
    }

    .modal-buttons button:last-child {
      background-color: #dc3545;
      color: white;
    }
    .modal-buttons button:last-child:hover {
      background-color: #c82333;
    }
    .modals-content h3 {
      margin-top: 0;
    }

    select {
      width: 100%;
      padding: 8px;
      margin-top: 5px;
      border-radius: 4px;
      border: 1px solid #ccc;
      box-sizing: border-box;
    }
    .close-btn {
      color: #888;
      float: right;
      font-size: 2rem;
      font-weight: bold;
      cursor: pointer;
      background: none;
      border: none;
      line-height: 1;
    }
    .close-btn:hover,
    .close-btn:focus {
      color: #333;
      outline: none;
    }
    .modal-overlay {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(2px);
      justify-content: center;
      align-items: center;
    }
    .modal-content {
      background: #fff; padding: 20px; border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3); width: 300px;
    }
    .modal-buttons {
      margin-top: 15px; display: flex; justify-content: space-between;
    }

    @keyframes fadeInScale {
      from {
        opacity: 0;
        transform: scale(0.95);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* Extra small devices (phones, less than 576px) */
    @media (max-width: 575.98px) {
      .modal-content {
        margin: 50% auto;
        padding: 1rem;
        border-radius: 10px;
        width: 50%;
      }
      .close-btn {
        font-size: 1.8rem;
      }
      .modal-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.6); display: flex;
        align-items: center; justify-content: center; z-index: 999;
      }
      .modal-content {
        background: #fff; padding: 20px; border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3); width: 300px;
      }
      .modal-buttons {
        margin-top: 15px; display: flex; justify-content: space-between;
      }
    }

    .close-btn {
      color: #aaa;
      float: right;
      font-size: 28px;
      cursor: pointer;
    }

    .close-btn:hover {
      color: #000;
    }

    form {
      display: flex;
      flex-direction: column;
    }

    form label {
      margin: 10px 0 5px;
      color: #333;
      font-size: 12px;
    }

    form input {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 12px;
    }

    form button {
      margin-top: 20px;
      background-color: #4CAF50;
      border: none;
      padding: 12px;
      color: #fff;
      font-size: 14px;
      border-radius: 10px;
      cursor: pointer;
      transition: background-color 0.3s;
      align-items: center;
    }

    form button:hover {
      background-color: #4CAF50;
    }

    /*admin form*/
    .selection-table {
      padding: 20px;
      overflow-x: auto;
    }

    .selection-table table {
      width: 100%;
      border-collapse: collapse;
      font-family: Arial, sans-serif;
      background-color: #f9f9f9;
    }

    .selection-table th, 
    .selection-table td {
      background: linear-gradient(to bottom, #d6dec7, #f9faf9);
      padding: 10px;
      text-align: left; 
    }

    .selection-table th {
      background: linear-gradient(to bottom, #cfdabc, #a4f449);
      color: rgb(34, 38, 32);
    }

    .selection-table tr:nth-child(even) {
      background-color: #f2f2f2;
    }

    .selection-table tr:hover {
      background-color: #ddd;
    }

    .selection-table td {
      color: #333;
    }
    .footer {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      background: linear-gradient(to left, #d8e7c6, #56ab2f);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      align-items: center;
      border-top: 1px solid #ccc;
      padding: 14px 0;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
      z-index: 1000;
      transition: transform 0.3s ease;
    }
    .footer.hide-footer {
        transform: translateY(100%);
    }

    .footer-btn {
      text-decoration: none;
      color: #555;
      font-size: 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: color 0.3s;
    }
    
    .icon-wrapper {
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: background-color 0.3s, color 0.3s;
    }
    
    .footer-btn:hover .icon-wrapper {
      background-color: #e6f0ff;
    }
    
    .footer-btn.active {
      color: #56ab2f;
    }
    
    .footer-btn.active .icon-wrapper {
      background-color: #e6f0ff;
    }
    
   @media (max-width: 480px) {
    .selection-section {
      padding: 15px;
    }
    .cards-container {
      grid-template-columns: 1fr;
    }
    .profile-container {
      padding: 15px;
    }
  
    .profile-pic {
      width: 100px;
      height: 100px;
    }
    .footer {
      padding: 10px 0;
    }
  
    .footer-btn {
      font-size: 24px;
    }
  
    .icon-wrapper {
      width: 42px;
      height: 42px;
    }
    .card {
      min-width: 50px;
      max-width: 70px;
      font-size: 20px;
    }

    .card-icon, .card-icons {
      font-size: 20px;
    }
    .pump-control {
      flex-direction: column;
      gap: 5px;
      align-items: center;
      margin-top: 2px;
    }
  }
  
  @media (max-width: 360px) {
    .footer-btn {
      font-size: 24px;
    }
  
    .icon-wrapper {
      width: 38px;
      height: 38px;
    }
  }
  

    .profile-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
      background-color: #d6eac3; 
      padding: 16px;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(103, 194, 58, 0.2);
    }

    .avatar {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      border: 3px solid #81c784;
    }

    .username {
      font-weight: bold;
      font-size: 18px;
      color: #2e7d32; 
      margin: 0;
    }


    .menu {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .menu-item {
      background: #388e3c; 
      padding: 14px 16px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: 15px;
      color: #fff;
      transition: background 0.2s;
    }

    .menu-item i {
      font-size: 18px;
      color: #fbc02d;
      min-width: 20px;
    }

    .menu-item:hover {
      background: #2e7d32;
      border-top: 3px solid #c8e6c9; 
    }

    .nav-item {
      color: #8d8d8d;
      text-align: center;
      font-size: 12px;
    }

    .nav-item i {
      display: block;
      font-size: 18px;
      margin-bottom: 4px;
    }

    .nav-item.active {
      color: #fbc02d; 
    }


    /*profile*/
    .address {
      font-size: 14px;
      color: #666;
      margin-top: 4px;
    }
    .modals {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    overflow: auto;
    }

    .modals-content {
      background-color: #f4fff4; 
      margin: 60% auto;
      padding: 10px 12px;
      border-radius: 12px;
      width: 85%;
      max-width: 300px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
      text-align: center;
      border: 2px solid #4CAF50; 
      font-family: 'Segoe UI', sans-serif;
      font-size: 14px;
      animation: fadeIn 0.2s ease-in-out;
    }
    .modals-content label,
    .modals-content input {
      display: block;    
      margin: 0;          
      padding: 0;         
      font-size: 14px;
    }

    .modals-content label {
      margin-bottom: 4px; 
    }

    .modals-content input {
      width: 100%;
      box-sizing: border-box;
      padding: 6px 8px;
      border: 1px solid #4CAF50;
      border-radius: 6px;
      font-size: 14px;
    }


    @keyframes fadeIn {
      from {
        transform: scale(0.9);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }


/*notification*/
    .notification-section {
      padding: 15px;
      background: linear-gradient(to top, #cfdabc, #a4f449);
      min-height: 80vh;
    }
    .notification-section h2 {
      font-size: 18px;
      margin-bottom: 10px;
      color: #333;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 600;
    }
    .btn-mark-all {
      cursor: pointer;
      font-size: 12px;
      background: #4caf50;
      color: white;
      border: none;
      border-radius: 6px;  
      padding: 10px 15px;  
      transition: background 0.3s;
      min-width: 100px; 
      text-align: center;
      width: 30%;  
    }

    .btn-mark-all:hover {
      background: #45a049;
    }
    .notification-list {
      list-style: none;
      padding: 0;
      margin-top: 10px;
    }
    .notification-item {
      margin-bottom: 10px;
      padding: 12px 15px;
      border-left: 5px solid #4caf50;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: background 0.3s;
      user-select: none;
      position: relative;
    }
    .notification-item.unread {
      background: #fff7d1;
      font-weight: bold;
    }
    .notification-item.read {
      background: #fff;
    }
    .notification-item:hover {
      background: #f0ffe0;
    }
    .notification-time {
      font-size: 12px;
      color: #888;
      margin-top: 5px;
    }