                body {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            background-color: #eeebdd;
        }

        .dashboard, .dashboard2 {
            display: flex;
            justify-content: center;
            margin: 15px 0;
        }

        * { box-sizing: border-box; }

.sensor-container {
  width: min(1200px, 100%);    
  margin: 0 auto 20px;          
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 20px;                   
  align-items: stretch;         
  justify-items: stretch;     
  grid-auto-rows: 280px;        
}

.management-container {
  width: min(1200px, 100%); 
  margin: 0 auto 20px;       
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 20px;                 
  align-items: stretch;    
  justify-items: stretch;   
  grid-auto-rows: 280px;     
  margin-bottom: 300px;
}

        
        .sensor {
            text-align: center;
        }

        .management {
            text-align: center;
            grid-column: span 2;
        }
        
        .sensor h3, .management h3 {
            color: #27391c;
            margin-bottom: 10px;
            text-transform: uppercase;
            text-align: left;
        }
        
.sensor-box {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background-color: #27391c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 🌱 Normal state */
.sensor-box.normal {
    background-color: #368c57; /* green (healthy/normal) */
    border: 2px solid #368c57;
    color: #fff;
}

/* 🌡️ Temperature */
.sensor-box.hot {
    background-color: #ff0000; /* red = too hot */
    border: 2px solid #ff0000;
    color: #fff;
}
.sensor-box.cold {
    background-color: #e2c313; /* yellow = too cold */
    border: 2px solid #e2c313;
    color: #000;
}

/* 💧 Soil Moisture */
.sensor-box.high {
    background-color: #ff0000; /* blue = too wet */
    border: 2px solid #ff0000;
    color: #fff;
}
.sensor-box.low {
    background-color: #e2c313; /* yellow = too dry */
    border: 2px solid #e2c313;
    color: #000;
}

/* 🌫️ Humidity */
.sensor-box.high {
    background-color: #ff0000; /* blue = too humid */
    border: 2px solid #ff0000;
    color: #fff;
}
.sensor-box.low {
    background-color: #e2c313; /* yellow = too dry */
    border: 2px solid #e2c313;
    color: #000;
}

/* 💡 Light Intensity */
.sensor-box.bright {
    background-color: #ff0000; /* orange = too bright */
    border: 2px solid #ff0000;
    color: #fff;
}
.sensor-box.dim {
    background-color: #e2c313; /* yellow = too dim */
    border: 2px solid #e2c313;
    color: #000;
}




.management-box {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background-color: #27391c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);   
}

.sensor-box img,
.management-box img {
  max-height: 90px;
  width: auto;
  margin-right: 1rem;
}

.sensor-data,
.management-data {
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  font-weight: 700;
}

.sensor-box:hover,
.management-box:hover {
  transform: scale(1.03);
}

        .plant-select-display {
  margin: 20px 50px;
}

.plant-selector { 
  margin-bottom: 20px; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.plant-selector select {
  font-size: 20px;
  font-family: 'Montserrat', sans-serif;
  width: 200px;
}

.add-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #41a76a;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}
.add-btn:hover { background: #368c57; }

.plant-details-wrapper {
  display: grid;
  grid-template-columns: 200px 1fr auto; 
  gap: 20px;
  align-items: start;
  padding: 20px;
}

.plant-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
}

.plant-info {
  text-align: left;
}
.plant-info h2 {
  margin: 0 0 10px;
  color: #27391c;
}
.plant-info p {
  margin: 5px 0;
  color: #444;
}

.plant-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;   
}

.plant-actions button {
  width: 32px;
  height: 32px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
}

.plant-actions button:hover {
  opacity: 0.8;
}

.plant-actions button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.action-btn {
  padding: 10px 16px;
  background: #27391c;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.action-btn:hover {
  background: #1f7d53;
}

@media (max-width: 768px) {
  .plant-details-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .plant-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.edit-plant-form {
    display: block;
    width: 100%;
}

.edit-plant-form input[type="text"], 
.edit-plant-form input[type="number"],
.input-row input[type="date"],
.input-row input[type="file"]
 {
    flex: 1;
    padding: 10px;
    border: 0.3px solid #c9b9ac;
    border-radius: 0px; 
    background-color: #ffe5e5;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    margin-bottom: 7px;
}

.input-row {
    display: flex;
    flex-direction: column; 
    margin-bottom: 10px;
    align-items: flex-start; 
}

.edit-plant-form label {
    font-size: 15px;
    font-weight: bold;
    color: #345522;
    margin-bottom: 5px; 
    text-align: left;   
    width: auto;       
}


.edit-plant-form button,
.cancel-button {
    background-color: #1f7d53;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 30px;
    width: 15%;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    margin-top: 25px;
}

.cancel-button {
  display: inline-block;    
  text-align: center;        
  text-decoration: none;     
  line-height: normal;       
}

.edit-plant-form button:hover {
    background-color: #27391c;
    color: #ffe5e5;
}




        ::-webkit-scrollbar {
            width: 8px; 
          }
          
          ::-webkit-scrollbar-track {
            background: #ffe5e5; 
          }
          
          ::-webkit-scrollbar-thumb {
            background: #1f7d53;
            border-radius: 10px; 
          }
          
          ::-webkit-scrollbar-thumb:hover {
            background: #345522;
          }



.plant-species-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  font-family: 'Montserrat', sans-serif;
  border: 3px solid #41a76a;
}

.plant-species-table th,
.plant-species-table td {
  border: 2px solid #41a76a;
}

.plant-species-table th {
  padding: 16px;
  font-size: 1.1rem;
  background: #e6f4ea;
}

.plant-species-table td {
  padding: 14px;
}

.plant-species-table td img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  
  margin-right: 8px;
  margin-bottom: 6px;
}

.plant-species-table td.images-cell {
  min-width: 500px;
  width: 700px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

#notif-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif {
  background: #1f7d53;
  border-left: 5px solid #41a76a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 12px 16px;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  min-width: 250px;
  max-width: 350px;
  animation: slideIn 0.4s ease;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.notif p {
  margin: 0;
  color: white;
  font-size: 14px;
  line-height: 1.4;
}

.notif button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
  color: white;
  transition: color 0.2s ease;
}
.notif button:hover {
  color: #27391c;
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

#chat-widget {
  font-family: 'Montserrat', sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 700px;
    max-height: 500px;
    background: #27391c;
    color: white;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: 'Montserrat', sans-serif;
}

#chat-header {
    background: #1f7d53;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

#chat-header img{
  height: 30px;
  width: 30px;
  border-radius: 50px;
}

#chat-close{
  background-color: #fff4f4;
  border: #27391c;
  color: #27391c;
}

#chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
}

#chat-footer {
    display: flex;
    padding: 10px;
    background: #1f2b17;
    gap: 5px;
    font-family: 'Montserrat', sans-serif;
}

#chat-footer input {
    flex: 1;
    padding: 5px 10px;
    border-radius: 15px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    background-color: #fff4f4;
}

#chat-footer button {
    background: #1f7d53;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    margin-left: 5px;
}

.message {
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
    font-family: 'Montserrat', sans-serif;
}

.user-message {
    background: #4caf50;
    align-self: flex-end;
    font-family: 'Montserrat', sans-serif;
}

.bot-message {
    background: #345522;
    align-self: flex-start;
    font-family: 'Montserrat', sans-serif;
}

#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1f7d53;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

#chat-toggle img{
  height: 25px;
  width: 25px;
  border-radius: 50px;

}

/* Google Translate Styling */
#google_translate_element {
  font-family: 'Montserrat', sans-serif;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

.goog-te-gadget-simple {
  background-color: #004023 !important;
  border: none !important;
  padding: 8px !important;
  border-radius: 5px !important;
  font-family: 'Montserrat', sans-serif !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
  color: rgb(3, 215, 95) !important;
}