/* =====================================================================
   SIMES - Sistem Informasi Manajemen Ekstrakurikuler Sekolah
   Stylesheet global. Palet & tipografi mengikuti referensi simes-ui.html
   (navy #0f1c38 + gold #c9a876 + cream #f6f2ea), diperluas untuk
   halaman dashboard, tabel, form, dan komponen list per role.
   ===================================================================== */
:root{
  --navy-900:#0f1c38;
  --navy-800:#152548;
  --navy-700:#1b2f5c;
  --gold-500:#c9a876;
  --gold-600:#b3915f;
  --cream:#f6f2ea;
  --cream-card:#ffffff;
  --text-dark:#16223f;
  --text-muted:#6b7280;
  --border-soft:#e7e2d6;
  --green-bg:#e4f3e9;
  --green-text:#2f8f5b;
  --red-bg:#fbe7e6;
  --red-text:#c0392b;
  --amber-bg:#faf0dd;
  --amber-text:#b5822a;
  --peach-bg:#fbeee2;
  --purple-bg:#eeecfa;
  --purple-text:#6c63c9;
}
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  background:var(--cream);
  color:var(--text-dark);
  font-size:14.5px;
}
h1,h2,h3,.serif{font-family:'Playfair Display',serif;}
a{color:inherit;}
/* =========================
   LOGIN PAGE
========================= */

.login-page{
    min-height:100vh;
    width:100%;
    display:flex;
}

/* =========================
   LEFT PANEL
========================= */

.login-left{
    flex:1 1 45%;
    background:
        radial-gradient(circle at top left,rgba(201,168,118,.08),transparent 40%),
        repeating-linear-gradient(45deg,rgba(255,255,255,.02) 0 2px,transparent 2px 24px),
        linear-gradient(155deg,var(--navy-900),var(--navy-800));
    color:#fff;
    padding:64px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.brand-logo{
    width:72px;
    height:72px;
    border-radius:18px;
    background:linear-gradient(145deg,#dec292,var(--gold-600));
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--navy-900);
    font-size:34px;
    box-shadow:0 15px 35px rgba(0,0,0,.25);
    margin-bottom:40px;
}

.login-left h1{
    margin:0 0 20px;
    font-size:36px;
    font-weight:700;
    line-height:1.25;
    letter-spacing:.3px;
}

.login-left .lead{
    max-width:450px;
    color:#c9d0e4;
    font-size:15px;
    line-height:1.8;
}

/* =========================
   FEATURE
========================= */

.feature-row{
    display:flex;
    gap:18px;
    margin-top:45px;
}

.feature-box{
    flex:1;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:20px;
    transition:.25s;
}

.feature-box:hover{
    transform:translateY(-4px);
    background:rgba(255,255,255,.08);
}

.feature-box .icon{
    width:52px;
    height:52px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(201,168,118,.15);
    color:var(--gold-500);
    font-size:22px;
    margin-bottom:14px;
}

.feature-box strong{
    display:block;
    margin-bottom:6px;
    font-size:15px;
}

.feature-box span{
    color:#b6bfd5;
    font-size:13px;
    line-height:1.6;
}

/* =========================
   RIGHT PANEL
========================= */

.login-right{
    flex:1 1 55%;
    background:var(--cream);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
}

.login-form-wrap{
    width:100%;
    max-width:430px;
}

.login-form-wrap h2{
    margin:0 0 8px;
    color:var(--navy-900);
    font-size:28px;
}

.login-form-wrap>p{
    margin:0 0 24px;
    color:var(--text-muted);
    font-size:14px;
    line-height:1.7;
}

/* =========================
   ROLE
========================= */

.role-tabs{
    display:flex;
    gap:4px;
    background:#fff;
    border:1px solid var(--border-soft);
    border-radius:12px;
    padding:4px;
    margin-bottom:24px;
}

.role-tab{
    flex:1;
    text-align:center;
    padding:10px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    color:var(--text-muted);
    cursor:pointer;
    transition:.25s;
    user-select:none;
}

.role-tab:hover{
    color:var(--navy-900);
}

.role-tab.active{
    background:var(--navy-900);
    color:var(--gold-500);
}

/* =========================
   FORM (input biasa)
========================= */
/* ============================================
   PWA SPECIFIC STYLES
   Khusus untuk tampilan saat diinstall di HP
   ============================================ */

/* === PWA INSTALL BUTTON === */
.pwa-install-btn {
    width: 100%;
    padding: 14px 20px;
    margin-top: 15px;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: none; /* Default hidden, ditampilkan oleh JS */
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
    position: relative;
    overflow: hidden;
}

/* Efek shimmer/glow pada tombol install */
.pwa-install-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
    transform: rotate(45deg);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 35, 126, 0.4);
}

.pwa-install-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(26, 35, 126, 0.3);
}

.pwa-install-btn i {
    font-size: 22px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Badge notifikasi install */
.pwa-install-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* === STANDALONE MODE (Saat PWA diinstall) === */
@media all and (display-mode: standalone) {
    /* Hilangkan scrollbar yang tidak perlu */
    body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Perbaiki status bar di iOS */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    /* Layout lebih compact di PWA */
    .login-page {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .login-left {
        padding: 30px 25px;
        border-radius: 0;
    }

    .login-right {
        padding: 30px 25px;
        border-radius: 0;
    }

    /* Sembunyikan scrollbar di Chrome/Edge */
    .login-form-wrap::-webkit-scrollbar {
        display: none;
    }

    .login-form-wrap {
        scrollbar-width: none;
    }
}

/* === PWA SPLASH SCREEN === */
.pwa-splash {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.pwa-splash.show {
    display: flex;
}

.pwa-splash .logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pwa-splash .title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.pwa-splash .loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === PWA OFFLINE INDICATOR === */
.pwa-offline-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    z-index: 9998;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease-out;
}

.pwa-offline-banner.show {
    display: block;
}

.pwa-offline-banner i {
    margin-right: 10px;
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* === PWA UPDATE AVAILABLE === */
.pwa-update-banner {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a237e;
    color: white;
    padding: 14px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9997;
    align-items: center;
    gap: 16px;
    max-width: 90%;
    animation: slideUp 0.3s ease-out;
}

.pwa-update-banner.show {
    display: flex;
}

.pwa-update-banner .message {
    font-size: 14px;
    flex: 1;
}

.pwa-update-banner .btn-update {
    padding: 8px 20px;
    background: white;
    color: #1a237e;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pwa-update-banner .btn-update:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pwa-update-banner .btn-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.pwa-update-banner .btn-close:hover {
    color: white;
}

/* === RESPONSIVE PWA === */
/* Untuk HP kecil (max-width: 480px) */
@media (max-width: 480px) {
    .pwa-install-btn {
        font-size: 13px;
        padding: 12px 16px;
        gap: 10px;
    }

    .pwa-install-btn i {
        font-size: 18px;
    }

    .pwa-update-banner {
        padding: 12px 16px;
        bottom: 60px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pwa-update-banner .message {
        font-size: 13px;
        text-align: center;
        width: 100%;
    }

    .pwa-splash .title {
        font-size: 20px;
    }

    .pwa-splash .logo {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

/* Untuk tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .pwa-install-btn {
        padding: 16px 24px;
        font-size: 16px;
    }

    .pwa-install-btn i {
        font-size: 24px;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .pwa-install-btn {
        background: linear-gradient(135deg, #283593, #1a237e);
    }

    .pwa-install-btn:hover {
        box-shadow: 0 6px 25px rgba(40, 53, 147, 0.5);
    }

    .pwa-update-banner {
        background: #283593;
    }

    .pwa-offline-banner {
        background: #c62828;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .pwa-install-btn::before {
        animation: none;
    }
    
    .pwa-install-btn i {
        animation: none;
    }
    
    .pwa-install-btn .badge {
        animation: none;
    }
    
    .pwa-splash .logo {
        animation: none;
    }
    
    .pwa-splash .title {
        animation: none;
    }
    
    .pwa-splash .loader {
        animation: none;
    }
    
    .pwa-offline-banner {
        animation: none;
    }
    
    .pwa-update-banner {
        animation: none;
    }
}

/* === PRINT STYLES === */
@media print {
    .pwa-install-btn,
    .pwa-offline-banner,
    .pwa-update-banner,
    .pwa-splash {
        display: none !important;
    }
}
label{
    display:block;
    margin-bottom:7px;
    font-size:13px;
    font-weight:600;
    color:var(--text-dark);
}

.input-group{
    position:relative;
    margin-bottom:18px;
}

.input-group .ic{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#98a2b3;
    font-size:15px;
    pointer-events:none;
}

.input-group input,
.input-group select{
    width:100%;
    height:48px;
    border:1px solid var(--border-soft);
    border-radius:10px;
    background:#fff;
    padding:0 16px 0 46px;
    font-size:14px;
    font-family:inherit;
    transition:.2s;
}

.input-group input:focus,
.input-group select:focus{
    outline:none;
    border-color:var(--gold-500);
    box-shadow:0 0 0 4px rgba(201,168,118,.15);
}

/* =========================
   PASSWORD FIELD + TOMBOL MATA
   Wrapper (.password-group) yang jadi "kotak input"-nya,
   input & tombol mata jadi satu kesatuan di dalamnya.
========================= */

.password-group{
    display:flex;
    align-items:center;
    position:relative;
    height:48px;
    border:1px solid var(--border-soft);
    border-radius:10px;
    background:#fff;
    transition:.2s;
    /* margin-bottom sudah ikut .input-group */
}

.password-group:focus-within{
    border-color:var(--gold-500);
    box-shadow:0 0 0 4px rgba(201,168,118,.15);
}

.password-group .ic{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#98a2b3;
    font-size:15px;
    pointer-events:none;
}

.password-group input{
    flex:1 1 auto;
    width:100%;
    height:100%;
    border:none;
    background:transparent;
    padding:0 6px 0 46px;
    font-size:14px;
    font-family:inherit;
}

.password-group input:focus{
    outline:none;
    box-shadow:none;
}

.password-group .toggle-password{
    flex:0 0 auto;
    width:44px;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    background:transparent;
    color:#9aa1b5;
    cursor:pointer;
    font-size:15px;
    padding:0;
    transition:color .2s ease;
}

.password-group .toggle-password:hover{
    color:var(--navy-900);
}

.password-group .toggle-password:focus{
    outline:none;
    color:var(--navy-900);
}

/* =========================
   REMEMBER
========================= */

.row-between{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
    font-size:13px;
}

.remember{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    color:var(--text-muted);
}

.remember input{
    accent-color:var(--navy-900);
}

/* =========================
   BUTTON
========================= */

.btn-primary{
    width:100%;
    height:50px;
    border:none;
    border-radius:10px;
    background:var(--navy-900);
    color:#fff;
    font-size:15px;
    font-weight:700;
    font-family:inherit;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    transition:.25s;
}

.btn-primary:hover{
    background:var(--navy-700);
    transform:translateY(-1px);
}

.btn-primary .arrow{
    color:var(--gold-500);
    font-size:14px;
}

/* =========================
   ALERT
========================= */

.alert-box{
    margin-top:18px;
    padding:14px 16px;
    border-radius:10px;
    font-size:13px;
    line-height:1.6;
}

.alert-error{
    background:var(--red-bg);
    color:var(--red-text);
    border:1px solid #f2c8c8;
}

.alert-success{
    background:var(--green-bg);
    color:var(--green-text);
    border:1px solid #bfe5cc;
}

/* =========================
   FOOTER
========================= */

.login-footer{
    margin-top:30px;
    text-align:center;
    font-size:12px;
    color:#98a2b3;
}

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

@media(max-width:992px){

    .login-page{
        flex-direction:column;
    }

    .login-left{
        padding:40px 28px;
    }

    .login-right{
        padding:30px 20px;
    }

    .feature-row{
        flex-direction:column;
    }

    .login-left h1{
        font-size:30px;
    }

}/* ============ APP SHELL (dashboard layout, semua role) ============ */
.app-shell{width:100%; min-height:100vh; display:flex;}
.sidebar{
  width:250px; flex-shrink:0; background:var(--navy-900); color:#fff;
  padding:24px 18px; display:flex; flex-direction:column;
  position:sticky; top:0; height:100vh; overflow-y:auto;
}
.sb-brand{display:flex; align-items:center; gap:12px; padding-bottom:20px; margin-bottom:14px; border-bottom:1px solid rgba(255,255,255,0.08);}
.sb-brand .logo-sq{width:38px;height:38px;border-radius:10px; background:linear-gradient(145deg,#d8b989,var(--gold-600)); display:flex;align-items:center;justify-content:center; font-family:'Playfair Display',serif;font-weight:700; color:var(--navy-900);}
.sb-brand div strong{display:block;font-size:15px;}
.sb-brand div span{font-size:11px;color:#9aa1b5;}
.role-pill{background:var(--gold-500); color:var(--navy-900); font-size:11px; font-weight:700; letter-spacing:0.04em; padding:8px 12px; border-radius:8px; display:flex; align-items:center; gap:8px; margin-bottom:22px;}
.menu-label{font-size:11px; color:#7d84a0; letter-spacing:0.08em; margin:14px 4px 10px; font-weight:600;}
.menu-item{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; font-size:13.5px; color:#c7cde0; text-decoration:none; margin-bottom:2px; cursor:pointer;}
.menu-item:hover{background:rgba(255,255,255,0.06); color:#fff;}
.menu-item.active{background:rgba(201,168,118,0.16); color:var(--gold-500); font-weight:600;}
.menu-item .ic{width:18px; text-align:center; font-size:14px;}
.menu-item .badge{margin-left:auto; background:var(--gold-500); color:var(--navy-900); font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:20px;}
.sb-logout{margin-top:auto; padding-top:14px; border-top:1px solid rgba(255,255,255,0.08);}
.sb-logout a{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; font-size:13.5px; color:#e7b8b0; text-decoration:none;}
.sb-logout a:hover{background:rgba(255,255,255,0.06);}

.main-area{flex:1; min-width:0; display:flex; flex-direction:column;}
.topbar{display:flex; justify-content:space-between; align-items:center; padding:20px 32px; background:#fff; border-bottom:1px solid var(--border-soft); position:sticky; top:0; z-index:5;}
.breadcrumb{font-size:12px; color:var(--text-muted); margin-bottom:4px;}
.topbar h2{margin:0; font-size:19px; color:var(--navy-900); font-family:'Inter',sans-serif; font-weight:700;}
.top-actions{display:flex; align-items:center; gap:14px;}
.bell{width:38px;height:38px;border-radius:50%; background:var(--cream); display:flex;align-items:center;justify-content:center; font-size:15px; cursor:pointer;}
.avatar{width:38px;height:38px;border-radius:50%; background:var(--navy-900); color:var(--gold-500); display:flex;align-items:center;justify-content:center; font-weight:700; font-size:13px;}
.content{padding:28px 32px; flex:1;}

.btn-gold{background:var(--gold-500); border:none; color:var(--navy-900); font-weight:700; font-size:13.5px; padding:12px 20px; border-radius:9px; white-space:nowrap; cursor:pointer; display:inline-flex; align-items:center; gap:8px; text-decoration:none;}
.btn-gold:hover{background:#d8ba8d;}
.btn-outline{background:#fff; border:1px solid var(--border-soft); color:var(--text-dark); font-weight:600; font-size:13px; padding:10px 16px; border-radius:9px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; text-decoration:none;}
.btn-outline:hover{border-color:var(--gold-500);}
.btn-danger{background:var(--red-bg); border:1px solid #f3c9c6; color:var(--red-text); font-weight:600; font-size:12.5px; padding:8px 14px; border-radius:8px; cursor:pointer;}
.btn-success{background:var(--green-bg); border:1px solid #bfe4cd; color:var(--green-text); font-weight:600; font-size:12.5px; padding:8px 14px; border-radius:8px; cursor:pointer;}
.btn-sm{padding:7px 12px; font-size:12px; border-radius:7px;}

.stats-row{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:30px;}
.stat-card{background:var(--cream-card); border:1px solid var(--border-soft); border-radius:14px; padding:20px;}
.stat-icon{width:42px;height:42px;border-radius:10px; display:flex;align-items:center;justify-content:center; font-size:18px; margin-bottom:14px;}
.stat-icon.peach{background:var(--peach-bg); color:#c17a3c;}
.stat-icon.green{background:var(--green-bg); color:var(--green-text);}
.stat-icon.amber{background:var(--amber-bg); color:var(--amber-text);}
.stat-icon.purple{background:var(--purple-bg); color:var(--purple-text);}
.stat-card .num{font-size:26px; font-weight:800; color:var(--navy-900);}
.stat-card .lbl{font-size:12.5px; color:var(--text-muted); margin-top:2px;}

.welcome-banner{background:linear-gradient(120deg,var(--navy-900),var(--navy-800)); color:#fff; border-radius:16px; padding:26px 30px; display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; gap:20px; flex-wrap:wrap;}
.welcome-banner .eyebrow{font-size:11px; letter-spacing:.08em; color:var(--gold-500); font-weight:700; margin-bottom:6px;}
.welcome-banner h1{margin:0 0 8px; font-size:24px;}
.welcome-banner p{margin:0; color:#c7cde0; font-size:13.5px; max-width:480px;}

.section-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:12px; flex-wrap:wrap;}
.section-head h3{margin:0; font-size:17px; color:var(--navy-900);}

.card{background:#fff; border:1px solid var(--border-soft); border-radius:14px; padding:22px;}
.card + .card{margin-top:20px;}

/* ---------- Cards grid (ekskul, dsb) ---------- */
.grid-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.ekskul-card{background:#fff; border:1px solid var(--border-soft); border-radius:14px; overflow:hidden;}
.ekskul-cover{height:100px; display:flex;align-items:center;justify-content:center; font-size:32px; color:#fff;}
.cover-navy{background:linear-gradient(135deg,#1b2f5c,#0f1c38);}
.cover-gold{background:linear-gradient(135deg,#d8b989,#a97f4a);}
.cover-slate{background:linear-gradient(135deg,#4a5674,#2a324a);}
.ekskul-body{padding:16px 18px 18px;}
.ekskul-body h4{margin:0 0 4px; font-size:15px; color:var(--navy-900); font-weight:700;}
.ekskul-body p{margin:0 0 12px; font-size:12.5px; color:var(--text-muted);}

.status-pill{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; padding:5px 11px; border-radius:20px; white-space:nowrap;}
.status-pill.verified,.status-pill.aktif,.status-pill.hadir,.status-pill.diterima,.status-pill.terbit{background:var(--green-bg); color:var(--green-text);}
.status-pill.pending,.status-pill.menunggu,.status-pill.izin{background:var(--amber-bg); color:var(--amber-text);}
.status-pill.rejected,.status-pill.ditolak,.status-pill.nonaktif,.status-pill.alfa{background:var(--red-bg); color:var(--red-text);}
.status-pill.sakit,.status-pill.draft{background:var(--purple-bg); color:var(--purple-text);}

/* ---------- Table ---------- */
.table-wrap{overflow-x:auto; border:1px solid var(--border-soft); border-radius:14px; background:#fff;}
table.simes-table{width:100%; border-collapse:collapse; font-size:13.5px;}
table.simes-table thead th{text-align:left; background:var(--cream); color:var(--text-muted); font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; padding:12px 16px; border-bottom:1px solid var(--border-soft); white-space:nowrap;}
table.simes-table tbody td{padding:13px 16px; border-bottom:1px solid var(--border-soft); vertical-align:middle;}
table.simes-table tbody tr:last-child td{border-bottom:none;}
table.simes-table tbody tr:hover{background:#faf8f4;}
.table-actions{display:flex; gap:8px;}
.empty-state{padding:44px 20px; text-align:center; color:var(--text-muted); font-size:13.5px;}
.empty-state .icon{font-size:30px; margin-bottom:10px;}

/* ---------- Form ---------- */
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:18px 20px;}
.form-grid .full{grid-column:1/-1;}
.form-grid label{display:block; font-size:13px; font-weight:600; margin-bottom:6px; color:var(--text-dark);}
.form-grid input[type=text], .form-grid input[type=password], .form-grid input[type=number],
.form-grid input[type=date], .form-grid input[type=time], .form-grid input[type=tel]{
  width:100%; padding:11px 14px; border-radius:9px; border:1px solid var(--border-soft);
  font-family:inherit; font-size:14px; color:var(--text-dark); background:#fff;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus{outline:2px solid var(--gold-500); outline-offset:1px;}
.form-actions{display:flex; gap:12px; margin-top:8px;}
.help-text{font-size:12px; color:var(--text-muted); margin-top:5px;}
.field-error{font-size:12px; color:var(--red-text); margin-top:5px;}
textarea{width:100%; padding:12px 14px; border-radius:9px; border:1px solid var(--border-soft); font-family:inherit; font-size:14px; resize:vertical; min-height:100px;}
select{width:100%; padding:12px 14px; border-radius:9px; border:1px solid var(--border-soft); font-family:inherit; font-size:14px; background:#fff;}
input[type=radio], input[type=checkbox]{accent-color:var(--navy-900);}
.radio-inline{display:flex; gap:18px; align-items:center; padding-top:4px;}
.radio-inline label{display:flex; align-items:center; gap:6px; font-weight:500; font-size:13.5px; margin:0;}
.top-user{text-align:right; line-height:1.3;}
.top-user strong{display:block; font-size:13px; color:var(--navy-900);}
.top-user span{font-size:11.5px; color:var(--text-muted);}

.filter-bar{display:flex; gap:12px; flex-wrap:wrap; align-items:end; margin-bottom:20px; background:#fff; border:1px solid var(--border-soft); border-radius:12px; padding:16px;}
.filter-bar .field{display:flex; flex-direction:column; gap:6px;}
.filter-bar label{margin:0; font-size:12px;}
.filter-bar select, .filter-bar input{padding:9px 12px; border-radius:8px; border:1px solid var(--border-soft); font-size:13px;}

.report-menu{display:grid; grid-template-columns:repeat(2,1fr); gap:18px;}
.report-menu a{display:block; background:#fff; border:1px solid var(--border-soft); border-radius:14px; padding:22px; text-decoration:none; color:var(--text-dark);}
.report-menu a:hover{border-color:var(--gold-500);}
.report-menu .icon{font-size:24px; margin-bottom:10px;}
.report-menu strong{display:block; font-size:15px; color:var(--navy-900); margin-bottom:4px;}
.report-menu span{font-size:12.5px; color:var(--text-muted);}

.announce-item{border:1px solid var(--border-soft); border-radius:12px; padding:16px 18px; margin-bottom:14px; background:#fff;}
.announce-item h4{margin:0 0 6px; font-size:14.5px; color:var(--navy-900);}
.announce-item .meta{font-size:11.5px; color:var(--text-muted); margin-bottom:8px;}
.announce-item p{margin:0; font-size:13.5px; color:var(--text-dark); line-height:1.6;}

@media (max-width:960px){
  .login-page{flex-direction:column;}
  .login-left{padding:36px 26px;}
  .app-shell{flex-direction:column;}
  .sidebar{width:100%; height:auto; position:relative;}
  .stats-row{grid-template-columns:repeat(2,1fr);}
  .grid-cards{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .report-menu{grid-template-columns:1fr;}
}