:root{
    --pantau-blue-900:#0f2f6e;
    --pantau-blue-800:#17458f;
    --pantau-blue-700:#1d5fc2;
    --pantau-blue-600:#2563eb;
    --pantau-blue-500:#3b82f6;
    --pantau-blue-100:#dbeafe;
    --pantau-blue-50:#eff6ff;
    --pantau-slate-900:#0f172a;
    --pantau-slate-700:#334155;
    --pantau-slate-500:#64748b;
    --pantau-slate-200:#e2e8f0;
    --pantau-slate-100:#f1f5f9;
    --pantau-white:#ffffff;
}

*{
    letter-spacing:0;
}

html{
    font-size:16px;
}

body{
    background:var(--pantau-slate-100);
    color:var(--pantau-slate-900);
    font-family:'Poppins','Segoe UI',Arial,sans-serif;
    line-height:1.55;
}

a{
    color:var(--pantau-blue-700);
}

a:hover{
    color:var(--pantau-blue-500);
}

.content-wrapper{
    background:linear-gradient(180deg,var(--pantau-blue-50) 0,var(--pantau-slate-100) 240px);
    min-height:100vh;
}

.content{
    padding-bottom:32px;
}

.container-fluid{
    max-width:1280px;
}

/* Navbar */
.main-header{
    background:rgba(255,255,255,.96);
    border-bottom:1px solid rgba(148,163,184,.24);
    min-height:64px;
    backdrop-filter:blur(12px);
}

.main-header .nav-link{
    color:var(--pantau-slate-700) !important;
    border-radius:8px;
    margin:0 4px;
}

.main-header .nav-link:hover{
    background:var(--pantau-blue-50);
    color:var(--pantau-blue-700) !important;
}

.navbar-brand-text{
    color:var(--pantau-blue-900);
    font-size:1rem;
    font-weight:600;
    line-height:1;
}

.navbar {
    height: 60px;
    display: flex;
    align-items: center;
}

.logout-link{
    font-weight:500;
}

.logo-navbar{
    background:var(--pantau-white);
    border:1px solid rgba(37,99,235,.14);
    border-radius:8px;
    box-sizing:border-box;
    display:block;
    height:auto;
    margin:0 10px 0 4px;
    max-height:30px;
    object-fit:contain;
    padding:4px;
    width:auto;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Sidebar */
.main-sidebar{
    background:linear-gradient(180deg,var(--pantau-blue-900),#0b2352);
    box-shadow:8px 0 28px rgba(15,47,110,.14);
}

.brand-panel{
    padding:18px 16px 10px;
}

.brand-link{
    align-items:center;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.1);
    border-radius:8px;
    color:var(--pantau-white) !important;
    display:flex;
    gap:12px;
    min-height:64px;
    padding:10px 12px;
    white-space:normal;
}

.logo-sidebar{
    background:var(--pantau-white);
    border-radius:8px;
    flex:0 0 auto;
    height:38px;
    object-fit:contain;
    padding:4px;
    width:38px;
}

.brand-text-app{
    font-size:1rem;
    font-weight:600;
}

.sidebar{
    padding:0 10px 18px;
}

.user-panel{
    border-bottom:1px solid rgba(255,255,255,.1) !important;
    gap:10px;
}

.user-panel .info{
    overflow:hidden;
    padding-left:0;
}

.user-panel .info a{
    color:#dbeafe;
    font-size:.9rem;
    font-weight:500;
    overflow:hidden;
    text-overflow:ellipsis;
}

.user-avatar{
    align-items:center;
    background:rgba(255,255,255,.12);
    border-radius:8px;
    color:var(--pantau-white);
    display:flex;
    height:34px;
    justify-content:center;
    width:34px;
}

.nav-sidebar .nav-item{
    margin-bottom:6px;
}

.nav-sidebar .nav-link{
    border-radius:8px;
    color:#d8e7ff;
    font-weight:500;
    margin:0;
    min-height:44px;
    transition:background .2s ease,color .2s ease,box-shadow .2s ease;
}

.nav-sidebar .nav-link p{
    white-space:normal;
}

.nav-sidebar .nav-link:hover{
    background:rgba(255,255,255,.12);
    color:var(--pantau-white);
}

.nav-sidebar .nav-link.active{
    background:var(--pantau-blue-600);
    box-shadow:0 10px 24px rgba(37,99,235,.32);
    color:var(--pantau-white);
}

.nav-sidebar .nav-icon{
    color:inherit;
}

/* Content */
.content-header{
    padding:24px 1rem 12px;
}

.content-header h1{
    color:var(--pantau-slate-900);
    font-size:1.7rem;
    font-weight:600;
    margin:0;
}

.card{
    border:1px solid rgba(148,163,184,.18);
    border-radius:8px;
    box-shadow:0 14px 30px rgba(15,23,42,.06);
    margin-bottom:20px;
}

.card-header{
    align-items:center;
    background:var(--pantau-white);
    border-bottom:1px solid var(--pantau-slate-200);
    display:flex;
    justify-content:space-between;
    padding:16px 18px;
}

.card-title{
    color:var(--pantau-slate-900);
    font-size:1rem;
    font-weight:600;
    margin:0;
}

.card-body{
    padding:18px;
}

.stat-card{
    align-items:center;
    background:var(--pantau-white);
    border:1px solid rgba(148,163,184,.18);
    border-radius:8px;
    box-shadow:0 14px 30px rgba(15,23,42,.06);
    display:flex;
    justify-content:space-between;
    margin-bottom:20px;
    min-height:124px;
    padding:20px;
}

.stat-card h3{
    color:var(--pantau-blue-800);
    font-size:2rem;
    font-weight:600;
    margin:0;
}

.stat-card p{
    color:var(--pantau-slate-500);
    font-weight:500;
    margin:4px 0 0;
}

.stat-icon{
    align-items:center;
    background:var(--pantau-blue-50);
    border-radius:8px;
    color:var(--pantau-blue-600);
    display:flex;
    font-size:24px;
    height:52px;
    justify-content:center;
    width:52px;
}

/* Forms */
.form-group label{
    color:var(--pantau-slate-700);
    font-size:.92rem;
    font-weight:600;
}

.form-control{
    border:1px solid #cbd5e1;
    border-radius:8px;
    min-height:44px;
}

.form-control:focus{
    border-color:var(--pantau-blue-500);
    box-shadow:0 0 0 .2rem rgba(37,99,235,.16);
}

.input-group-text{
    background:var(--pantau-blue-50);
    border-color:#cbd5e1;
    color:var(--pantau-blue-700);
}

/* Buttons */
.btn{
    border-radius:8px;
    font-weight:500;
    min-height:38px;
    padding:.45rem .85rem;
}

.btn-sm{
    min-height:32px;
    padding:.25rem .6rem;
}

.btn-primary,
.btn-success,
.btn-info{
    background:var(--pantau-blue-600);
    border-color:var(--pantau-blue-600);
    color:var(--pantau-white);
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover{
    background:var(--pantau-blue-700);
    border-color:var(--pantau-blue-700);
    color:var(--pantau-white);
}

.btn-warning{
    background:#f59e0b;
    border-color:#f59e0b;
    color:#111827;
}

.btn-danger{
    background:#dc2626;
    border-color:#dc2626;
}

.btn-secondary{
    background:#475569;
    border-color:#475569;
}

.btn-outline-primary{
    border-color:var(--pantau-blue-600);
    color:var(--pantau-blue-700);
}

.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled).active{
    background:var(--pantau-blue-600);
    border-color:var(--pantau-blue-600);
}

.btn-group{
    flex-wrap:wrap;
    gap:8px;
}

.btn-group .btn{
    border-radius:8px !important;
    margin:0;
}

.question-card{
    background:var(--pantau-blue-50);
    border:1px solid rgba(37,99,235,.14);
    border-radius:8px;
    margin-bottom:16px;
    padding:16px;
}

.question-title{
    color:var(--pantau-slate-900);
    display:block;
    font-weight:600;
    margin-bottom:12px;
}

.answer-group{
    margin:0 0 12px;
}

.answer-text{
    color:var(--pantau-blue-700);
    font-weight:600;
}

/* Tables */
.card-body{
    overflow-x:auto;
}

.table{
    color:var(--pantau-slate-700);
    margin-bottom:0;
    min-width:640px;
}

.table-bordered,
.table-bordered td,
.table-bordered th{
    border-color:var(--pantau-slate-200);
}

.table tr:first-child th,
.table thead th{
    background:var(--pantau-blue-800);
    border-color:var(--pantau-blue-800);
    color:var(--pantau-white);
    font-weight:600;
    white-space:nowrap;
}

.table td,
.table th{
    padding:12px 14px;
    vertical-align:middle;
}

.table tbody tr:hover,
.table tr:not(:first-child):hover{
    background:var(--pantau-blue-50);
}

/* Login */
.pantau-login{
    align-items:center;
    background:linear-gradient(135deg,var(--pantau-blue-900),var(--pantau-blue-600));
    display:flex;
    justify-content:center;
    min-height:100vh;
    padding:24px;
}

.pantau-login::before{
    background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0));
    content:"";
    inset:0;
    pointer-events:none;
    position:fixed;
}

.login-box{
    max-width:390px;
    width:100%;
}

.login-card{
    border:1px solid rgba(255,255,255,.36);
    box-shadow:0 24px 60px rgba(15,23,42,.25);
    padding:26px;
    width:100%;
}

.login-card .login-card-body{
    background:transparent;
    padding:0;
}

.logo-login{
    height:72px;
    margin-bottom:12px;
    object-fit:contain;
    width:72px;
}

.login-card h4{
    color:var(--pantau-blue-900);
    font-weight:600;
    margin-bottom:6px;
}

.login-subtitle,
.login-box-msg{
    color:var(--pantau-slate-500);
    font-size:.88rem;
}

.login-box-msg{
    padding:0 0 16px;
}

.login-card .btn{
    min-height:44px;
}

@media (max-width:767.98px){
    .content-header{
        padding-top:18px;
    }

    .content-header h1{
        font-size:1.35rem;
    }

    .card-header{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
    }

    .stat-card{
        min-height:104px;
    }

    .table{
        min-width:560px;
    }

    .login-card{
        padding:22px;
    }

    .logo-login{
        height:auto;
        width:150px;
    }

    .logo-sidebar{
        width:35px;
    }

    .logo-navbar{
        height: 30px;
        width: auto;
        object-fit: contain;
    }
}
