:root{
    --pn-navy:#082F6D;
    --pn-blue:#0F5FB5;
    --pn-accent:#2486D7;
    --pn-soft:#EAF4FF;
}

/* ===========================
   RESET
=========================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body{
    background:#EAF4FF;
    color:#13224a;
    transition:background .2s ease,color .2s ease;
}

.theme-toggle{
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:1000;
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(15,23,42,.12);
    background:#ffffff;
    color:#13224a;
    border-radius:999px;
    padding:10px 14px;
    box-shadow:0 12px 28px rgba(15,23,42,.16);
    font-weight:800;
    cursor:pointer;
}

.theme-toggle-icon{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:var(--pn-soft);
    color:var(--pn-navy);
}

/* ===========================
   TOPBAR
=========================== */

.topbar{
    background:#0F5FB5;
    height:90px;
    padding:0 28px;
    color:white;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
}

.topbar-inner{
    width:100%;
    max-width:1320px;
    height:100%;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    flex-wrap:nowrap;
}

.brand{
    display:flex;
    align-items:center;
    gap:16px;
    min-width:0;
    flex:1 1 auto;
}

.brand-icon{
    width:58px;
    height:50px;
    border-radius:12px;
    background:#0F5FB5;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    padding:7px;
    flex:0 0 58px;
}

.brand-icon img{
    display:block;
    width:auto;
    height:auto;
    max-width:38px;
    max-height:36px;
    object-fit:contain;
}

.brand-title{
    font-size:19px;
    font-weight:800;
    line-height:1.1;
    white-space:nowrap;
}

.brand-sub{
    font-size:14px;
    opacity:.9;
}

.ai-badge{
    background:var(--pn-accent);
    color:#fff;
    padding:8px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    margin-left:10px;
}

.top-actions{
    display:flex;
    gap:14px;
    align-items:center;
    margin-left:auto;
    flex:0 0 auto;
}

.top-btn{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    color:white;
    padding:14px 20px;
    border-radius:16px;
    text-decoration:none;
    font-weight:600;
    white-space:nowrap;
}
/* ===========================
   Portal Pegawai
=========================== */

.login-btn{

    background:#0F5FB5;

    color:#fff;

    border:1px solid rgba(255,255,255,.15);

    transition:.25s ease;

}

.login-btn:hover{

    background:#0B4F9A;

    transform:translateY(-2px);

    box-shadow:0 6px 15px rgba(0,0,0,.15);

}
.logout-btn{
    background:#d91044;
}

/* ===========================
   LAYOUT
=========================== */

.wrapper{

    display:flex;

    align-items:flex-start;

    gap:26px;

    padding:26px;

    width:100%;
    max-width:1480px;
    margin:0 auto;

}

.sidebar{
    width:280px;
    flex-shrink:0;
}

.main{

    flex:1;

    min-width:0;

    background:#F3F7FC;

    border-radius:26px;

    padding:28px;
    background:#F3F7FC;

}

/* ===========================
   SIDEBAR
=========================== */

.menu-card{
    background:white;
    border-radius:18px;
    padding:10px;
}

.menu-item{
    display:block;
    padding:18px 20px;
    border-radius:16px;
    color:#24324a;
    text-decoration:none;
    font-size:16px;
    font-weight:600;
    margin-bottom:8px;
}

.menu-item.active{
    background:#0F5FB5;
    color:white;
}

.info-card{
    margin-top:24px;
    background:#EAF4FF;
    border-radius:20px;
    padding:22px;
}

/* ===========================
   CONTENT
=========================== */

.flash{
    background:#dff7e6;
    color:#0F5FB5;
    padding:16px;
    border-radius:14px;
    margin-bottom:18px;
    font-weight:600;
}

.btn{
    background:#0F5FB5;
    color:white;
    padding:12px 18px;
    border-radius:14px;
    text-decoration:none;
    border:none;
    cursor:pointer;
    font-weight:700;
}

input,
select,
textarea{
    width:100%;
    padding:14px;
    border-radius:14px;
    border:1px solid #d6dbe8;
}

/* ===========================
   FOOTER
=========================== */

.footer{
    background:#EAF4FF;
    color:#64748b;
    text-align:center;
    padding:12px 16px;
    font-size:10px;
    line-height:1.45;
    font-weight:700;
    border:1px solid #C8DDF3;
    border-radius:12px;
    margin-top:18px;
}

html[data-theme="dark"] body{
    background:#0f1d2b;
    color:#e5edf7;
}

html[data-theme="dark"] .main,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .fleet-stat,
html[data-theme="dark"] .menu-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .time-card,
html[data-theme="dark"] .home-action:not(.primary):not(.dark){
    background:#172638!important;
    color:#e5edf7!important;
    border-color:#2d4158!important;
}

html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .panel-title,
html[data-theme="dark"] .stat-number,
html[data-theme="dark"] .time-value,
html[data-theme="dark"] .menu-item,
html[data-theme="dark"] .action-title{
    color:#f4f8ff!important;
}

html[data-theme="dark"] .hero-subtitle,
html[data-theme="dark"] .stat-name,
html[data-theme="dark"] .stat-desc,
html[data-theme="dark"] .notice-text,
html[data-theme="dark"] .notice-date,
html[data-theme="dark"] .time-label,
html[data-theme="dark"] .time-day{
    color:#b8c4d6!important;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .footer{
    background:#081827!important;
}

html[data-theme="dark"] .theme-toggle{
    background:#172638;
    color:#f4f8ff;
    border-color:#334963;
}

html[data-theme="dark"] .theme-toggle-icon{
    background:#233a55;
    color:#f8d66d;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
    background:#101b2a;
    color:#f4f8ff;
    border-color:#334963;
}
html,
body{

    min-height:100%;

}

body{

    display:block !important;

}
/* ==========================
   Mobile Menu
========================== */

.mobile-menu-btn{

    display:none;

    background:none;

    border:none;

    color:white;

    font-size:28px;

    cursor:pointer;

    margin-right:12px;

}

@media(max-width:768px){

    .mobile-menu-btn{

        display:block;

    }

}

/* ======================================================
   PUBLIC DASHBOARD
====================================================== */

.dashboard-container{

    padding:10px;

}

.dashboard-header{

    background:#fff;

    border-radius:24px;

    padding:30px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

    box-shadow:0 8px 25px rgba(0,0,0,.06);

    margin-bottom:25px;

}

.dashboard-title{

    font-size:36px;

    color:#0F5FB5;

    margin-bottom:8px;

    font-weight:700;

}

.dashboard-subtitle{

    color:#64748b;

    font-size:18px;

    margin-bottom:18px;

}

.dashboard-status{

    display:inline-flex;

    align-items:center;

    gap:10px;

    background:#ecfdf5;

    color:#0F5FB5;

    padding:10px 18px;

    border-radius:50px;

    font-weight:600;

}

.status-indicator{

    width:12px;

    height:12px;

    background:#45A3E5;

    border-radius:50%;

}

.dashboard-time{

    background:#f8fafc;

    border-radius:18px;

    padding:18px;

    min-width:220px;

    text-align:center;

}

.time-title{

    color:#64748b;

    margin-bottom:8px;

    font-size:14px;

}
/*=========================================
    LMNT CARD SYSTEM
=========================================*/

.info-card{

    background:#ffffff;

    border-radius:20px;

    padding:24px;

    border:1px solid #e8edf4;

    box-shadow:0 8px 24px rgba(15,23,42,.05);

    margin-bottom:20px;

}

.info-title{

    font-size:20px;

    font-weight:700;

    color:#0F5FB5;

    margin-bottom:20px;

}

.info-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:12px 0;

    border-bottom:1px dashed #e7e7e7;

}

.info-row:last-child{

    border-bottom:none;

}

.info-label{

    color:#64748b;

    font-weight:600;

}

.info-value{

    color:#1e293b;

    font-weight:700;

    text-align:right;

}
/*=========================================
    STATUS BADGE
=========================================*/

.status-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 14px;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

}

.badge-pending{

    background:#fff7db;

    color:#b7791f;

}

.badge-supported{

    background:#e6f4ff;

    color:#2563eb;

}

.badge-approved{

    background:#dcfce7;

    color:#15803d;

}

.badge-completed{

    background:#dbeafe;

    color:#1d4ed8;

}

.badge-rejected{

    background:#fee2e2;

    color:#b91c1c;

}

.badge-maintenance{

    background:#fff3cd;

    color:#92400e;

}

.badge-available{

    background:#dcfce7;

    color:#166534;
}
/*=========================================
    PROGRESS TRACKER
=========================================*/

.progress-card{

    background:#fff;

    border-radius:20px;

    padding:28px;

    margin-bottom:24px;

    box-shadow:0 8px 24px rgba(15,23,42,.05);

}

.progress-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

}

.progress-ref{

    font-size:24px;

    font-weight:700;

    color:#0F5FB5;

}

.progress-status{

    font-size:15px;

    font-weight:700;

}

.progress-bar{

    width:100%;

    height:14px;

    background:#e5e7eb;

    border-radius:999px;

    overflow:hidden;

    margin-top:25px;

}

.progress-fill{

    height:100%;

    background:linear-gradient(90deg,#2486D7,#45A3E5);

    border-radius:999px;

    transition:.5s;

}

.progress-text{

    margin-top:15px;

    color:#64748b;

    font-size:15px;

}
/*=========================================
    STATISTICS CARD
=========================================*/

.stats-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

    gap:20px;

    margin-bottom:28px;

}

.stat-card{

    background:#fff;

    border-radius:20px;

    padding:24px;

    box-shadow:0 8px 24px rgba(15,23,42,.05);

    border:1px solid #edf2f7;

    transition:.25s;

}

.stat-card:hover{

    transform:translateY(-4px);

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.stat-icon{

    width:52px;

    height:52px;

    border-radius:14px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:24px;

    margin-bottom:16px;

}

.stat-title{

    color:#64748b;

    font-size:14px;

}

.stat-number{

    font-size:34px;

    font-weight:700;

    color:#1e293b;

    margin:8px 0;

}

.stat-desc{

    color:#94a3b8;

    font-size:13px;

}
/*=========================================
    HERO V2
=========================================*/

.hero-badge{

    display:inline-block;

    padding:8px 18px;

    background:#dcfce7;

    color:#0F5FB5;

    border-radius:999px;

    font-weight:700;

    margin-bottom:18px;

    font-size:14px;

}

.hero-actions{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

    margin-top:30px;

}
/*=========================================
    PAGE HEADER
=========================================*/

.page-header{

    margin-bottom:30px;

}

.page-badge{

    display:inline-block;

    padding:8px 16px;

    background:#dcfce7;

    color:#0F5FB5;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    margin-bottom:12px;

}

.page-title{

    font-size:38px;

    font-weight:800;

    color:#1e293b;

    margin:0;

}

.page-subtitle{

    margin-top:8px;

    color:#64748b;

    font-size:17px;

}
/*=========================================
    QUICK ACTION CARD
=========================================*/

.quick-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));

    gap:18px;

    margin:25px 0;

}

.quick-card{

    background:#fff;

    border-radius:22px;

    padding:28px;

    text-align:center;

    text-decoration:none;

    color:#1e293b;

    border:1px solid #edf2f7;

    box-shadow:0 8px 20px rgba(0,0,0,.05);

    transition:.25s;

}

.quick-card:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.quick-icon{

    font-size:42px;

    margin-bottom:15px;

}

.quick-title{

    font-size:18px;

    font-weight:700;

}

.quick-sub{

    margin-top:8px;

    color:#64748b;

    font-size:14px;

}
