/* ==========================================================
   FMC BROILER MOBILE V11
   INDEX.CSS
   BAGIAN 1
========================================================== */

/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    width:100%;
    height:100%;

    scroll-behavior:smooth;

}

body{

    width:100%;
    height:100%;

    overflow:hidden;

    background:var(--bg);

    color:var(--text);

    font-family:'Inter',Arial,Helvetica,sans-serif;

    -webkit-font-smoothing:antialiased;

    -moz-osx-font-smoothing:grayscale;

}

/* =========================
   SPLASH SCREEN
========================= */

#splash{

    position:fixed;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    background:
    linear-gradient(
        180deg,
        #063B1D 0%,
        #0B8F43 45%,
        #18B85B 100%
    );

    z-index:99999;

    transition:.7s;

}

#splash.hide{

    opacity:0;

    visibility:hidden;

    pointer-events:none;

}

.splashLogo{

    width:250px;

    max-width:70%;

    object-fit:contain;

    animation:logoFloat 3s ease-in-out infinite;

    filter:drop-shadow(0 8px 18px rgba(0,0,0,.25));

}

#splash h1{

    margin-top:18px;

    font-size:30px;

    font-weight:800;

    color:#fff;

    letter-spacing:.5px;

}

#splash p{

    margin-top:8px;

    color:rgba(255,255,255,.92);

    font-size:14px;

}

.loadingBox{

    margin-top:22px;

    width:280px;

    max-width:80%;

    height:8px;

    background:rgba(255,255,255,.18);

    border-radius:999px;

    overflow:hidden;

}

.loadingFill{

    width:0;

    height:100%;

    background:
    linear-gradient(
        90deg,
        #C7F36A,
        #57FF8B
    );

    animation:loadingMove 2s linear infinite;

}

.loadingText{

    margin-top:14px;

    color:#fff;

    font-size:13px;

}

/* =========================
   CONTENT
========================= */

#app{

    position:absolute;

    top:78px;

    left:0;

    right:0;

    bottom:74px;

    overflow-y:auto;

    overflow-x:hidden;

    padding:16px;

    background:var(--bg);

    -webkit-overflow-scrolling:touch;

}

.page{

    animation:fadePage .25s ease;

}

/* =========================
   ANIMATION
========================= */

@keyframes logoFloat{

    0%{transform:translateY(0);}

    50%{transform:translateY(-10px);}

    100%{transform:translateY(0);}

}

@keyframes loadingMove{

    from{

        width:0;

    }

    to{

        width:100%;

    }

}

@keyframes fadePage{

    from{

        opacity:0;

        transform:translateY(8px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================================
   FMC BROILER MOBILE V11
   INDEX.CSS
   BAGIAN 2
========================================================== */

/* =========================
   FORM
========================= */

input,
select,
textarea{

    width:100%;

    padding:13px 14px;

    border:1px solid #D1D5DB;

    border-radius:14px;

    background:#FFFFFF;

    color:var(--text);

    font-size:14px;

    outline:none;

    transition:.25s;

}

input:focus,
select:focus,
textarea:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(11,143,67,.12);

}

button{

    transition:.25s;

    cursor:pointer;

}

button:active{

    transform:scale(.97);

}

/* =========================
   TABLE
========================= */

table{

    width:100%;

    border-collapse:collapse;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

}

table td,
table th{

    padding:12px;

    border-bottom:1px solid #ECECEC;

    font-size:14px;

}

table th{

    background:#F8FAF9;

    color:var(--text);

    font-weight:700;

}

table tr:last-child td{

    border-bottom:none;

}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{

    width:6px;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:transparent;

}

/* =========================
   UTILITY
========================= */

.hidden{

    display:none !important;

}

.text-center{

    text-align:center;

}

.mt-10{

    margin-top:10px;

}

.mt-20{

    margin-top:20px;

}

.mb-10{

    margin-bottom:10px;

}

.mb-20{

    margin-bottom:20px;

}

/* ==========================================
   APP LAYOUT V12
========================================== */

#app{

    width:100%;

    max-width:1400px;

    margin:0 auto;

    padding:12px;

    box-sizing:border-box;

}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:480px){

    #app{

        padding:12px;

    }

    .gridCard{

        grid-template-columns:1fr;

        gap:14px;

    }

    .dashboardHero{

        padding:18px;

        border-radius:18px;

        margin-bottom:12px;

        min-height:unset;

    }

    .dashboardHero h1{

        font-size:24px;

        font-weight:700;

        margin-bottom:6px;

    }

/* ==========================================
   HERO DETAIL V13
========================================== */

.heroSmall{

    font-size:11px;

    font-weight:600;

    letter-spacing:1px;

    color:rgba(255,255,255,.85);

    margin-bottom:4px;

}

.heroDate{

    display:flex;

    align-items:center;

    gap:6px;

    margin-top:6px;

    font-size:13px;

    color:rgba(255,255,255,.92);

}

.heroDate .material-symbols-rounded{

    font-size:18px;

}

    .heroLogo{

        width:56px;

        height:56px;

    }

    .heroLogo .material-symbols-rounded{

        font-size:32px;

    }

    .farmHeader{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;

    }

}

/* =========================
   SAFE AREA
========================= */

@supports(padding:max(0px)){

    #app{

        padding-left:max(16px,env(safe-area-inset-left));

        padding-right:max(16px,env(safe-area-inset-right));

        padding-bottom:max(16px,env(safe-area-inset-bottom));

    }

}

/* ===========================
   UPDATE TOAST
=========================== */

#updateToast{

    position:fixed;

    top:-80px;

    left:50%;

    transform:translateX(-50%);

    min-width:280px;

    max-width:90%;

    padding:14px 20px;

    background:#FFC107;

    color:#222;

    border-radius:14px;

    box-shadow:0 8px 24px rgba(0,0,0,.25);

    text-align:center;

    font-weight:700;

    opacity:0;

    transition:.35s ease;

    z-index:99999;

}

#updateToast.show{

    opacity:1;

    top:20px;

    transform:translateX(-50%);

}


/* ==========================================
   FAB SETTING V12
========================================== */

#fabSetting{

    position:fixed;

    right:18px;

    bottom:85px;

    width:58px;

    height:58px;

    border:none;

    border-radius:50%;

    background:#0B8F43;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:0 10px 24px rgba(0,0,0,.25);

    cursor:pointer;

    z-index:9998;

    transition:.25s;

}

#fabSetting:hover{

    transform:scale(1.08);
}

#fabSetting .material-symbols-rounded{

    font-size:28px;

}

/* ==========================================
   SETTING PANEL V13
========================================== */

#settingPanel{

    position:fixed;

    left:0;

    right:0;

    bottom:-100%;

    background:#ffffff;

    border-radius:24px 24px 0 0;

    padding:18px;

    box-shadow:0 -8px 30px rgba(0,0,0,.20);

    transition:bottom .35s ease;

    z-index:9999;

}

#settingPanel.show{

    bottom:0;

}

#settingPanel h2{

    margin:0 0 18px;

    font-size:20px;

    font-weight:700;

    color:#222;

}

.settingItem{

    display:flex;

    align-items:center;

    width:100%;

    gap:14px;

    padding:15px 14px;

    margin-bottom:10px;

    border-radius:14px;

    font-size:15px;

    font-weight:600;

    transition:.2s;

    cursor:pointer;

    box-sizing:border-box;

}

.settingItem:hover{

    background:#F5F7F8;

}

.settingItem:last-child{

    margin-bottom:0;

}


/* ==========================================
   HANDLE
========================================== */

.panelHandle{

    width:55px;

    height:5px;

    background:#d9d9d9;

    border-radius:10px;

    margin:0 auto 16px;

}

/* =========================
   DESKTOP MODE V13.1
========================= */

body.desktop{

    background:#eef3f1;

}

body.desktop main{

    width:96%;
    max-width:1700px;
    margin:20px auto;

    display:grid;

    grid-template-columns:repeat(2,minmax(420px,1fr));

    gap:20px;

    padding:0;

}

body.desktop section{

    display:block !important;

}

body.desktop .header{

    width:96%;
    max-width:1700px;
    margin:auto;

}

body.desktop .bottomNav{

    width:96%;
    max-width:1700px;

    left:50%;
    transform:translateX(-50%);

}

body.desktop .card{

    margin:0;

}

body.desktop .weatherCard{

    margin:0;

}

/* ==========================================
   TABLET MODE (768px - 1199px)
========================================== */

@media (min-width:768px) and (max-width:1199px){

body.desktop main{

    width:92%;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

}

/* ==========================================
   DESKTOP MODE BESAR (1200px+)
========================================== */

@media (min-width:1200px){

body.desktop main{

    width:86%;

    max-width:1600px;

    grid-template-columns:repeat(3,minmax(0,1fr));

}

body.desktop .header,
body.desktop .bottomNav{

    width:86%;

    max-width:1600px;

}

}

body.desktop main{

    grid-template-columns:repeat(3,1fr);

}

}

/* ==========================================
   MOBILE MODE V12
========================================== */

body:not(.desktop){

    max-width:100%;

    margin:0;

}

body:not(.desktop) main{

    display:block;

    padding:12px;

}

body:not(.desktop) section{

    width:100%;

}

body:not(.desktop) .card{

    width:100%;

    margin-bottom:16px;

}

body:not(.desktop) .weatherCard{

    width:100%;

    margin-bottom:16px;

}

body:not(.desktop) .header{

    max-width:100%;

}

body:not(.desktop) .bottomNav{

    max-width:100%;

    left:0;

    transform:none;

}

/* ==========================================
   MODE ACTIVE
========================================== */

#mobileCheck,
#desktopCheck{

    color:#0B8F43;

    display:none;

}

.modeActive{

    display:block !important;

}

/* ==========================================
   DARK MODE V12
========================================== */

body.dark{

    background:#111827;

    color:#F3F4F6;

}

body.dark .header{

    background:#1F2937;

}

body.dark .card,
body.dark .weatherCard,
body.dark #settingPanel{

    background:#1F2937;

    color:#F9FAFB;

    border:1px solid rgba(255,255,255,.05);

}

body.dark .settingItem:hover{

    background:#374151;

}

#darkModeCheck{

    color:#22C55E;

    display:none;

}

/* ==========================================
   DARK MODE V13
========================================== */

body.dark{

    background:#111827;

    color:#F9FAFB;

}

/* Background */

body.dark #app,
body.dark main,
body.dark section{

    background:transparent;

}

/* Header */

body.dark .header{

    background:#1F2937;

    color:#F9FAFB;

}

/* Card */

body.dark .card,
body.dark .weatherCard,
body.dark #settingPanel{

    background:#1F2937;

    color:#F9FAFB;

    border:1px solid rgba(255,255,255,.05);

}

/* Judul */

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4{

    color:#FFFFFF;

}

/* Teks */

body.dark p,
body.dark span,
body.dark small,
body.dark label{

    color:#D1D5DB;

}

/* Hover */

body.dark .settingItem:hover{

    background:#374151;

}

/* Bottom Navigation */

body.dark .bottomNav{

    background:#1F2937;

    border-top:1px solid rgba(255,255,255,.08);

}

body.dark .bottomNav button{

    color:#9CA3AF;

}

body.dark .bottomNav button.active{

    color:#22C55E;

}

/* Check Icon */

#darkModeCheck{

    color:#22C55E;

    display:none;

}

.darkActive{

    display:block !important;

}

body.dark .card b{

    color:#FFFFFF;

    font-weight:700;

}

/* ==========================================
   ABOUT FMC PANEL V13 FINAL
========================================== */

#aboutPanel{

    position:fixed;

    left:0;

    right:0;

    bottom:-100%;

    background:#fff;

    border-radius:26px 26px 0 0;

    padding:24px;

    transition:.35s;

    z-index:10000;

    box-shadow:0 -10px 35px rgba(0,0,0,.25);

    text-align:center;

    max-height:90vh;

    overflow:auto;

}

#aboutPanel.show{

    bottom:0 !important;

}

.aboutLogo{

    font-size:60px;

    margin-bottom:12px;

}

.aboutVersion{

    display:inline-block;

    margin:12px 0;

    padding:6px 16px;

    border-radius:999px;

    background:#0B8F43;

    color:#fff;

    font-size:13px;

    font-weight:700;

}

.aboutDesc{

    margin:18px 0;

    line-height:1.7;

}

.aboutInfo{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:14px;

    margin:22px 0;

}

.aboutInfo div{

    background:#F5F7F8;

    padding:14px;

    border-radius:14px;

}

.aboutFooter{

    margin-top:20px;

    color:#666;

    line-height:1.7;

}

.aboutClose{

    margin-top:22px;

    width:100%;

    border:none;

    border-radius:14px;

    padding:14px;

    background:#0B8F43;

    color:#fff;

    font-size:15px;

    font-weight:700;

}

.settingItem:last-child{

    margin-bottom:20px;

}