/* =====================================================
   DASHBOARD HIDROPONIK
   style.css
===================================================== */
/* ===========================
   ROOT
=========================== */
:root{
    --primary:#16A34A;
    --primary-dark:#15803D;
    --secondary:#2563EB;
    --warning:#F59E0B;
    --danger:#EF4444;
    --success:#22C55E;
    --background:#F5F7FB;
    --card:#FFFFFF;
    --border:#E5E7EB;
    --text:#1F2937;
    --text-light:#6B7280;
    --shadow:0 10px 25px rgba(0,0,0,.06);
    --radius:20px;
    --transition:.3s ease;
}
/* ===========================
   RESET
=========================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html{
    scroll-behavior:smooth;
}
body{
    font-family:'Poppins',sans-serif;
    background:var(--background);
    color:var(--text);
    overflow-x:hidden;
}
/* Scrollbar */
::-webkit-scrollbar{
    width:8px;
}
::-webkit-scrollbar-thumb{
    background:#cfd8dc;
    border-radius:20px;
}
::-webkit-scrollbar-track{
    background:#f7f7f7;
}
/* ===========================
   WRAPPER
=========================== */
.wrapper{
    width:100%;
    min-height:100vh;
}
/* ===========================
   HEADER
=========================== */
.top-header{
    background:linear-gradient(
        135deg,
        #16A34A,
        #22C55E
    );
    color:white;
    padding:30px 0;
    box-shadow:var(--shadow);
}
/* ===========================
   HEADER CONTENT
=========================== */
.header-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
}
.header-left h1{
    font-size:40px;
    font-weight:700;
    margin-bottom:8px;
}
.header-left p{
    margin:0;
    font-size:16px;
    opacity:.95;
}
/* ===========================
   HEADER RIGHT
=========================== */
.header-right{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}
/* ===========================
   UPDATE CARD
=========================== */
.update-card{
    background:rgba(255,255,255,.18);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.15);
    border-radius:16px;
    padding:15px 22px;
    min-width:190px;
}
.update-card span{
    display:block;
    font-size:13px;
    opacity:.85;
}
.update-card h5{
    margin-top:6px;
    margin-bottom:0;
    font-size:18px;
    font-weight:600;
}
/* ===========================
   ONLINE CARD
=========================== */
.online-card{
    background:#FFFFFF;
    color:var(--success);
    padding:15px 22px;
    border-radius:16px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow:var(--shadow);
}
.online-card i{
    font-size:12px;
}
/* ===========================
   NOTIFICATION BUTTON
=========================== */
.notification-btn{
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:#FFFFFF;
    color:#444;
    font-size:24px;
    position:relative;
    cursor:pointer;
    transition:var(--transition);
    box-shadow:var(--shadow);
}
.notification-btn:hover{
    transform:translateY(-4px);
}
.notif-badge{
    position:absolute;
    top:6px;
    right:6px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:var(--danger);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:11px;
    font-weight:600;
}
/* ===========================
   MAIN
=========================== */
main{
    padding-top:35px;
    padding-bottom:40px;
}
/* ===========================
   SECTION
=========================== */
.section-card{
    background:var(--card);
    border-radius:var(--radius);
    padding:28px;
    margin-bottom:25px;
    box-shadow:var(--shadow);
    border:1px solid var(--border);
}
.section-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:25px;
    font-size:24px;
    font-weight:600;
    color:var(--text);
}
.section-title i{
    color:var(--primary);
    font-size:26px;
}
/* =====================================================
   ENVIRONMENT CARD
===================================================== */
.env-card{
    background:#FFFFFF;
    border:1px solid var(--border);
    border-radius:22px;
    padding:28px;
    display:flex;
    align-items:center;
    gap:22px;
    height:100%;
    transition:var(--transition);
    box-shadow:var(--shadow);
}
.env-card:hover{
    transform:translateY(-5px);
}
.env-icon{
    width:85px;
    height:85px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:36px;
    flex-shrink:0;
}
.env-icon.temp{
    background:#FFF4E8;
    color:#F97316;
}
.env-icon.humidity{
    background:#EAF3FF;
    color:#2563EB;
}
.env-info{
    flex:1;
}
.env-info h5{
    font-size:20px;
    margin-bottom:10px;
    font-weight:600;
}
.env-info h2{
    font-size:46px;
    font-weight:700;
    margin-bottom:8px;
}
.env-info small{
    color:var(--text-light);
    display:block;
    margin-top:10px;
}
/* =====================================================
   STATUS
===================================================== */
.status{
    display:inline-block;
    padding:6px 16px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}
.status.success{
    background:#EAF8EE;
    color:#16A34A;
}
.status.warning{
    background:#FFF4DA;
    color:#D97706;
}
.status.danger{
    background:#FDECEC;
    color:#DC2626;
}
/* =====================================================
   INSTALLATION CARD
===================================================== */
.installation-card{
    background:#FFFFFF;
    border-radius:22px;
    overflow:hidden;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    height:100%;
    transition:var(--transition);
}
.installation-card:hover{
    transform:translateY(-6px);
}
.installation-a{
    border-top:6px solid #16A34A;
}
.installation-b{
    border-top:6px solid #2563EB;
}
/* =====================================================
   INSTALLATION HEADER
===================================================== */
.installation-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 25px;
    border-bottom:1px solid var(--border);
}
.installation-header h4{
    margin:0;
    font-size:24px;
    font-weight:700;
}
/* =====================================================
   PARAMETER
===================================================== */
.parameter-list{
    padding:15px 22px;
}
.parameter-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 0;
    border-bottom:1px solid #F1F3F5;
}
.parameter-item:last-child{
    border-bottom:none;
}
.parameter-left{
    display:flex;
    align-items:center;
    gap:18px;
}
.parameter-left i{
    width:55px;
    height:55px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
    background:#EEF7F0;
    color:var(--primary);
}
.parameter-left strong{
    display:block;
    font-size:17px;
    margin-bottom:4px;
}
.parameter-left small{
    color:var(--text-light);
    font-size:13px;
}
.parameter-right{
    text-align:right;
}
.parameter-right h3{
    margin:0;
    font-size:34px;
    font-weight:700;
}
.parameter-right span{
    display:block;
    margin-top:5px;
    color:var(--text-light);
    font-size:14px;
}
/* =====================================================
   VS BADGE
===================================================== */
.vs-badge{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:70px;
    height:70px;
    background:#FFFFFF;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
    font-weight:700;
    color:var(--primary);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    border:5px solid #F4F7FB;
    z-index:5;
}
/* =====================================================
   BOOTSTRAP BADGE
===================================================== */
.badge{
    font-size:13px;
    padding:8px 14px;
    border-radius:30px;
}
/* =====================================================
   SUMMARY CARD
===================================================== */
.summary-card{
    background:#FFFFFF;
    border:1px solid var(--border);
    border-radius:20px;
    padding:24px;
    display:flex;
    align-items:center;
    gap:20px;
    height:100%;
    transition:var(--transition);
    box-shadow:var(--shadow);
}
.summary-card:hover{
    transform:translateY(-5px);
}
.summary-icon{
    width:70px;
    height:70px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#FFFFFF;
    font-size:30px;
    flex-shrink:0;
}
.summary-card h5{
    margin-bottom:8px;
    font-size:20px;
    font-weight:600;
}
/* =====================================================
   RECOMMENDATION
===================================================== */
.recommendation-card{
    background:linear-gradient(135deg,#E8F7EE,#F8FCF9);
    border:1px solid #CDEDD7;
    border-radius:20px;
    padding:28px;
    display:flex;
    align-items:flex-start;
    gap:20px;
}
.recommendation-icon{
    width:65px;
    height:65px;
    border-radius:50%;
    background:var(--success);
    color:#FFFFFF;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:30px;
    flex-shrink:0;
}
.recommendation-card h5{
    margin-bottom:10px;
    font-weight:600;
}
.recommendation-card p{
    margin:0;
    color:var(--text-light);
    line-height:1.8;
}
/* ====================================================
   MODAL
===================================================== */
.modal-content{
    border:none;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,.15);
}
.modal-header{
    background:linear-gradient(135deg,#16A34A,#22C55E);
    color:#FFFFFF;
    border:none;
}
.modal-header .btn-close{
    filter:invert(1);
}
.modal-body{
    background:#F8FAFC;
}
.list-group-item{
    border:none;
    border-radius:12px;
    margin-bottom:10px;
    padding:15px 18px;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
}
/* =====================================================
   BUTTON
===================================================== */
.btn{
    border-radius:12px;
}
/* =====================================================
   ANIMATION
===================================================== */
.env-card,
.installation-card,
.summary-card,
.section-card{
    transition:all .3s ease;
}
.env-card:hover,
.installation-card:hover,
.summary-card:hover{
    box-shadow:0 18px 35px rgba(0,0,0,.10);
}
/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width:1200px){
    .vs-badge{
        display:none;
    }
}
@media (max-width:992px){
    .header-content{
        flex-direction:column;
        align-items:flex-start;
    }
    .header-right{
        width:100%;
        justify-content:flex-start;
    }
    .env-card{
        flex-direction:column;
        text-align:center;
    }
    .parameter-item{
        flex-direction:column;
        gap:18px;
        text-align:center;
    }
    .parameter-left{
        flex-direction:column;
    }
    .parameter-right{
        text-align:center;
    }
}
@media (max-width:768px){
    .top-header{
        padding:25px 0;
    }
    .header-left h1{
        font-size:30px;
    }
    .section-card{
        padding:20px;
    }
    .section-title{
        font-size:20px;
    }
    .env-info h2{
        font-size:36px;
    }
    .parameter-right h3{
        font-size:28px;
    }
    .recommendation-card{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }
    .summary-card{
        flex-direction:column;
        text-align:center;
    }
}
@media (max-width:576px){
    .header-right{
        flex-direction:column;
        align-items:stretch;
    }
    .update-card,
    .online-card,
    .notification-btn{
        width:100%;
    }
    .notification-btn{
        border-radius:16px;
        height:55px;
    }
}
/* =====================================================
   UTILITIES
===================================================== */
.text-success{
    color:var(--success)!important;
}
.text-danger{
    color:var(--danger)!important;
}
.text-warning{
    color:var(--warning)!important;
}
.text-primary{
    color:var(--secondary)!important;
}
.bg-success{
    background:var(--success)!important;
}
.bg-primary{
    background:var(--secondary)!important;
}
.bg-warning{
    background:var(--warning)!important;
}