/* =========================
   RESET & BODY
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body { 
    font-family: "Segoe UI", sans-serif; 
    line-height: 1.6;
    background-color: #f0f0f0;
    padding-bottom: 80px; /* ruang footer fixed */
}

/* =========================
   HEADER
========================= */
header {
    background-color: #1e6b22;
    color: white;
    padding: 15px 20px;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 50px;
    width: auto;
}

header h1 {
    font-size: 1.8rem;
}

/* =========================
   MAIN LAYOUT (KIRI-KANAN FIX)
========================= */
.main-container {
    display: flex;
    flex-wrap: nowrap; /* jangan wrap desktop */
    gap: 20px;
    max-width: 1200px;
    width: 95%;
    margin: 20px auto;
}

.left-column {
    flex: 2 1 0;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.right-column {
    flex: 1 1 250px;
    min-width: 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

/* =========================
   PROFIL BOX
========================= */
.profil-text {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    font-size: 15px;
    color: #333;
    word-wrap: break-word;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background:#1e6b22;
    color:white;
    text-align:center;
    padding:15px 0;
    font-size:14px;
    border-radius: 10px 10px 0 0;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

/* =========================
   IFRAME SLIDE
========================= */
.iframe-slide { 
    width: 100%; 
    height: 450px; 
    border: none; 
    border-radius: 10px; 
    margin-bottom: 20px; 
}

/* =========================
   DEVICE SLIDER & PLANTS
========================= */
.device-slider-container {
    width: 100%;
}

.device-group {
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.device-title {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.sensor-info {
    font-size: 14px;
    margin-bottom: 10px;
}

.sensor-info span {
    margin-right: 12px;
    font-weight: 600;
}

.plant-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
}

.plant-slider::-webkit-scrollbar {
    height: 8px;
}

.plant-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.plant-item {
    flex-shrink: 0;
    width: 200px;
    max-width: 45vw;
    border: 1px solid #ccc;
    background: #fefefe;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    scroll-snap-align: start;
}

.plant-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.plant-info {
    margin-top: 8px;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:1024px){
    .iframe-slide {
        height: 450px;
    }
}

@media(max-width:768px){
    .main-container {
        flex-direction: column;
    }
    .left-column, .right-column {
        width: 100%;
    }
    .iframe-slide {
        height: 350px;
    }
    .plant-item {
        width: 70vw;
    }
}
.relay-status {
  margin-top: 10px;
  padding: 10px;
  background: #f0f8f0;
  border-radius: 8px;
  font-size: 15px;
}
.relay-status span {
  display: inline-block;
  margin: 4px 8px;
  font-weight: 600;
}
.relay-status h4 {
  margin: 0 0 6px 0;
  color: #2e7d32;
}
