/* =========================================================
   SIAKAD STIKes Bhakti Pertiwi Luwu Raya — Design System
   Palet: navy metalik (kepercayaan/klinis) + biru medis (aksen/CTA)
   Tipografi: Fraunces (display) + Plus Jakarta Sans (body) + IBM Plex Mono (data)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    /* Navy → biru metalik light — warna utama (sidebar, judul, header) */
    --teal-900: #0A3D62;
    --teal-800: #135A8C;
    --teal-700: #2E86C1;
    --teal-100: #E8F3FB;

    /* Emas metalik — warna aksen (tombol utama, status aktif, garis pemisah) */
    --brass-600: #C9A227;
    --brass-700: #A9841C;
    --brass-100: #FBF3D9;

    /* Gradasi emas metalik penuh, untuk permukaan "berkilau" (tombol, badge, garis) */
    --gold-sheen: linear-gradient(135deg, #F6E7B4 0%, #D4AF37 28%, #A9841C 55%, #E8CE7A 78%, #C9A227 100%);
    --gold-sheen-hover: linear-gradient(135deg, #F9EFC7 0%, #E0BC46 28%, #B8901F 55%, #F0D98C 78%, #D4AF37 100%);

    /* Steel/stainless — untuk elemen netral berkilau (bingkai, ring) */
    --steel-100: #F4F6F8;
    --steel-300: #D7DEE4;
    --steel-500: #9FAEBA;

    --ink: #16202C;
    --ink-soft: #52616F;
    --ink-faint: #8798A6;

    --bg: #F3F6F9;
    --surface: #FFFFFF;
    --border: #E0E7ED;

    --danger: #B3413A;
    --danger-bg: #FBEAE8;
    --success: #2E7D57;
    --success-bg: #E7F4EC;
    --warning: #A66A16;
    --warning-bg: #FBF1DE;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(14, 58, 95, 0.07), 0 4px 16px rgba(14, 58, 95, 0.08);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--teal-900);
    margin: 0 0 6px;
}

:focus-visible {
    outline: 2px solid var(--brass-600);
    outline-offset: 2px;
}

/* ---------- Login page ---------- */

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 860px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { min-height: 260px; }
}

@media (max-width: 640px) {
    .login-brand {
        padding: 30px 26px 20px;
    }
    .activity-caption-wrap { margin-top: 12px; }
    .login-brand .activity-caption {
        padding: 6px 12px;
        font-size: 11px;
    }
    .login-brand h1 { margin-top: 6px; }
    .login-brand p.tagline { font-size: 13.5px; margin-top: 8px; }
    .login-brand .pulse-wrap { display: none; }
    .login-brand .footnote { margin-top: 18px; }
}

.login-brand {
    background:
        radial-gradient(circle at 88% -10%, rgba(255,255,255,0.14), transparent 45%),
        linear-gradient(155deg, rgba(10,61,98,0.93) 0%, rgba(19,90,140,0.90) 45%, rgba(46,134,193,0.86) 72%, rgba(10,61,98,0.90) 100%),
        url('../img/kegiatan-mahasiswa-v2.jpg');
    background-size: auto, auto, cover;
    background-position: center, center, center 30%;
    background-repeat: no-repeat;
    color: #EAF3EF;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-brand .seal-frame {
    width: 116px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: linear-gradient(150deg, #ffffff 0%, #f1f2f4 45%, #ffffff 75%, #e7e9eb 100%);
    border-radius: 50%;
    border: 2.5px solid var(--brass-600);
    box-shadow: 0 8px 28px rgba(4, 26, 46, 0.35), 0 0 0 5px rgba(201, 162, 39, 0.16), inset 0 1px 0 rgba(255,255,255,0.8);
}

.login-brand .seal {
    width: 92px;
    height: 92px;
    display: block;
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0;
    object-fit: contain;
}

@media (max-width: 640px) {
    .login-brand .seal-frame {
        width: 84px;
        height: 84px;
    }
    .login-brand .seal {
        width: 66px;
        height: 66px;
    }
}

.activity-caption-wrap {
    text-align: center;
    margin-top: 22px;
}

.login-brand .activity-caption {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    background: rgba(4, 26, 46, 0.38);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    padding: 7px 13px;
    border-radius: 100px;
    margin-bottom: 22px;
}

.login-brand .activity-caption .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brass-600);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35);
}

.login-brand .brand-name {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(234, 243, 239, 0.75);
    margin-top: 18px;
}

.login-brand h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    max-width: 9.5em;
    margin-top: 10px;
    text-shadow: 0 2px 12px rgba(3, 20, 35, 0.35);
}

.login-brand p.tagline {
    color: rgba(234, 243, 239, 0.88);
    max-width: 30em;
    margin-top: 12px;
    text-shadow: 0 1px 8px rgba(3, 20, 35, 0.3);
}

.pulse-wrap {
    margin-top: 40px;
}

.pulse-wrap svg { display: block; width: 100%; height: auto; }

.pulse-line {
    fill: none;
    stroke: var(--brass-600);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    animation: draw-pulse 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .pulse-line { animation: none; stroke-dashoffset: 0; }
}

@keyframes draw-pulse {
    0%   { stroke-dashoffset: 340; }
    45%  { stroke-dashoffset: 0; }
    75%  { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -340; opacity: 1; }
}

.login-brand .footnote {
    font-size: 13px;
    color: rgba(234, 243, 239, 0.55);
}

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.login-card { width: 100%; max-width: 380px; }

.login-card .eyebrow {
    font-size: 13px;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.login-card h2 { font-size: 24px; margin-top: 4px; margin-bottom: 26px; }

.role-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: var(--teal-100);
    padding: 5px;
    border-radius: var(--radius);
    margin-bottom: 22px;
}

.role-tabs input { display: none; }

.role-tabs label {
    display: block;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--teal-800);
    padding: 9px 4px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.role-tabs input:checked + label {
    background: var(--teal-800);
    color: #fff;
}

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="password"] {
    width: 100%;
    padding: 11px 13px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
}

.field input:focus { border-color: var(--teal-700); outline: none; box-shadow: 0 0 0 3px var(--teal-100); }

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--gold-sheen);
    color: #3A2C05;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 2px rgba(122, 92, 12, 0.25), 0 4px 14px rgba(169, 132, 28, 0.32);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: var(--gold-sheen-hover);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 2px rgba(122, 92, 12, 0.25), 0 6px 18px rgba(169, 132, 28, 0.4);
}

.btn-primary:active { transform: translateY(1px); }

.login-hint {
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--teal-100);
    border-radius: var(--radius);
    font-size: 12.5px;
    color: var(--teal-800);
}

.login-hint code { font-family: var(--font-mono); background: rgba(255,255,255,0.6); padding: 1px 5px; border-radius: 4px; }

.alert {
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 13.5px;
    margin-bottom: 18px;
}

.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }

/* ---------- Dashboard shell ---------- */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(170deg, #06304F 0%, #0F4C75 45%, #1F6FA8 72%, #0A3D62 100%);
    color: #EAF3EF;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 20px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    margin-bottom: 16px;
}

.sidebar .brand-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(150deg, #ffffff 0%, #f1f2f4 45%, #ffffff 75%, #e7e9eb 100%);
    border: 1.5px solid var(--brass-600);
    padding: 4px;
    box-shadow: 0 2px 8px rgba(4, 26, 46, 0.3);
    object-fit: contain;
}

@media (max-width: 768px) {
    .sidebar .brand-logo {
        width: 44px;
        height: 44px;
    }

    /* Touch-target minimum 44x44px (standar aksesibilitas mobile) untuk
       semua tombol aksi dan checkbox agar nyaman ditekan jari di HP. */
    .btn, .btn-sm, .btn-teal, .btn-danger, .btn-danger-outline,
    .btn-primary, .btn-secondary, .btn-warning, .btn-outline,
    button, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    input[type="checkbox"], input[type="radio"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }

    /* Perbesar area sentuh checkbox tanpa merusak layout tabel:
       bungkus checkbox dengan padding transparan di sekitarnya. */
    td:has(input[type="checkbox"]) {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    a.btn, a.btn-teal, a.btn-primary, a.btn-secondary, a.btn-danger, a.btn-warning {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }
}

.sidebar .brand-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.sidebar .brand-text span { display: block; font-size: 10.5px; font-weight: 400; color: rgba(234,243,239,0.6); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }

.nav-group { margin-bottom: 4px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(234, 243, 239, 0.78);
    margin-bottom: 2px;
}

.nav-link:hover { background: rgba(234, 243, 239, 0.08); color: #fff; }

.nav-link.active {
    background: var(--gold-sheen);
    color: #3A2C05;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 8px rgba(169, 132, 28, 0.3);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(234, 243, 239, 0.15);
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h1 { font-size: 19px; margin: 0; }
.topbar .subtitle { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
}

.user-chip .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--teal-100);
    color: var(--teal-800);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
}

.user-chip .avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.content { padding: 28px; flex: 1; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card h3 { font-size: 16px; margin-bottom: 4px; }
.card .card-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}

.stat-card .stat-label { font-size: 12.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--teal-900); margin-top: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    padding: 10px 12px;
    border-bottom: 1.5px solid var(--border);
}

td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }

tr:last-child td { border-bottom: none; }

.mono { font-family: var(--font-mono); font-size: 13px; }

.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.pill-success { background: var(--success-bg); color: var(--success); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-warning { background: var(--warning-bg); color: var(--warning); }
.pill-neutral { background: var(--teal-100); color: var(--teal-800); }

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn-teal { background: var(--teal-800); color: #fff; border: none; }
.btn-teal:hover { background: var(--teal-900); }

.btn-outline { background: transparent; border-color: var(--border); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--teal-700); color: var(--teal-800); }

.btn-danger-outline { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-bg); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-grid .full { grid-column: 1 / -1; }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }

.search-input {
    padding: 9px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    min-width: 220px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ink-faint);
}

/* ---------- Interaksi & micro-animasi ---------- */

.card, .stat-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover, .stat-card:hover {
    box-shadow: 0 6px 24px rgba(14, 58, 95, 0.12), 0 2px 6px rgba(14, 58, 95, 0.08);
    transform: translateY(-1px);
}

.btn { transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-teal:hover, .btn-primary:hover { box-shadow: 0 4px 14px rgba(20, 135, 201, 0.28); }

.nav-link { transition: background 0.15s ease, color 0.15s ease; }

/* ---------- Menu mobile (hamburger + drawer) ---------- */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: var(--teal-800);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }

    .app-shell { position: relative; }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 32px;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 6px 0 28px rgba(7, 31, 53, 0.3);
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .app-shell.sidebar-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .app-shell.sidebar-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .app-shell.sidebar-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(7, 31, 53, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 55;
    }

    .app-shell.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .content { padding: 18px 16px; }
    .topbar { padding: 14px 16px; }
    .topbar h1 { font-size: 17px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    table { font-size: 13px; }
    th, td { padding: 9px 8px; }
}

@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-input { width: 100%; min-width: 0; }
    .user-chip > div:last-child { display: none; }
}

/* ---------- Modul Mahasiswa: field tambahan ---------- */

.field select,
.field textarea,
.field input[type="date"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"] {
    width: 100%;
    padding: 11px 13px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
}

.field select:focus,
.field textarea:focus,
.field input[type="date"]:focus,
.field input[type="email"]:focus,
.field input[type="tel"]:focus,
.field input[type="number"]:focus {
    border-color: var(--teal-700); outline: none; box-shadow: 0 0 0 3px var(--teal-100);
}

.field textarea { resize: vertical; min-height: 90px; font-family: var(--font-body); }
.field .hint { font-size: 12px; color: var(--ink-faint); margin-top: 5px; }

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--teal-900);
    margin: 28px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brass-100);
}

.section-heading:first-child { margin-top: 0; }

.section-heading .num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--gold-sheen);
    color: #3A2C05;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ---------- Upload foto & dropzone ---------- */

.photo-upload-row { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }

.avatar-preview-lg {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brass-600);
    box-shadow: 0 4px 16px rgba(14, 58, 95, 0.18);
    flex-shrink: 0;
    background: var(--teal-100);
}

.upload-dropzone {
    flex: 1;
    min-width: 220px;
    border: 1.5px dashed var(--steel-500);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    background: var(--steel-100);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-dropzone:hover { border-color: var(--brass-600); background: var(--brass-100); }

.upload-dropzone .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--gold-sheen);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.upload-dropzone .text strong { display: block; font-size: 13.5px; color: var(--ink); }
.upload-dropzone .text span { font-size: 12px; color: var(--ink-faint); }
.upload-dropzone input[type="file"] { display: none; }

.file-chip-list { display: flex; flex-direction: column; gap: 8px; }

.file-chip .status-wrap { display: flex; align-items: center; gap: 12px; }

.doc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--teal-800);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.doc-upload-btn:hover { border-color: var(--teal-700); background: var(--teal-100); }

.doc-upload-btn.primary {
    border-color: var(--brass-600);
    background: var(--brass-100);
    color: #7A5C0C;
}

.file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 13.5px;
}

.file-chip .name { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.file-chip .name .dot-file { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.file-chip .name .dot-file.missing { background: var(--ink-faint); }
.file-chip .status { font-size: 12px; font-weight: 600; }
.file-chip .status.ok { color: var(--success); }
.file-chip .status.missing { color: var(--ink-faint); }

/* ---------- Progress bar (presensi, kuota SKS) ---------- */

.progress-row { margin-bottom: 14px; }
.progress-row .progress-label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 13px; margin-bottom: 6px;
}
.progress-row .progress-label .value { font-weight: 700; color: var(--teal-900); font-family: var(--font-mono); }

.progress-track {
    width: 100%; height: 10px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--teal-700), var(--teal-800));
    transition: width 0.4s ease;
}

.progress-fill.gold { background: var(--gold-sheen); }
.progress-fill.warning { background: linear-gradient(90deg, #E0A63B, #C9822A); }
.progress-fill.danger { background: linear-gradient(90deg, #D9756A, var(--danger)); }

/* ---------- Kartu Virtual Account ---------- */

.va-card {
    background: linear-gradient(135deg, #0A3D62 0%, #135A8C 55%, #2E86C1 100%);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    color: #EAF3EF;
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.va-card::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 90% -10%, rgba(255,255,255,0.14), transparent 50%);
}

.va-card .bank-name { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(234,243,239,0.75); position: relative; }
.va-card .va-number { font-family: var(--font-mono); font-size: 26px; font-weight: 700; letter-spacing: 0.03em; margin: 8px 0 4px; position: relative; }
.va-card .va-amount { font-size: 14px; color: rgba(234,243,239,0.85); position: relative; }
.va-card .va-badge {
    position: absolute; top: 20px; right: 22px;
    background: var(--gold-sheen);
    color: #3A2C05;
    font-size: 11px; font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

/* ---------- Badge SKS & kuota ---------- */

.badge-sks {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 22px; padding: 0 7px;
    border-radius: 6px;
    background: var(--teal-100);
    color: var(--teal-800);
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
}

/* ---------- Timeline (bimbingan skripsi, verifikasi logbook) ---------- */

.timeline { position: relative; padding-left: 28px; }

.timeline::before {
    content: "";
    position: absolute; left: 8px; top: 4px; bottom: 4px;
    width: 2px;
    background: var(--border);
}

.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: "";
    position: absolute; left: -28px; top: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--gold-sheen);
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 2px var(--brass-600);
}

.timeline-item.pending::before { background: var(--steel-300); box-shadow: 0 0 0 2px var(--steel-500); }

.timeline-item .t-date { font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); }
.timeline-item .t-title { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 3px 0 4px; }
.timeline-item .t-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- QR simulasi presensi ---------- */

.qr-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, #0A3D62 0%, #135A8C 60%, #0A3D62 100%);
    color: #fff;
    text-align: center;
}

.qr-box .qr-visual {
    width: 140px; height: 140px;
    border-radius: 14px;
    background: repeating-conic-gradient(#fff 0% 25%, #0A3D62 0% 50%) 0 0/20px 20px;
    border: 6px solid #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.qr-box .qr-caption { font-size: 13px; color: rgba(234,243,239,0.85); max-width: 260px; }

/* ---------- Info grid (praktik klinik, dsb) ---------- */

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }

.info-item { padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.info-item .info-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); margin-bottom: 5px; }
.info-item .info-value { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---------- Toast notification (umpan balik tombol) ---------- */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    max-width: 340px;
    background: var(--teal-900);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(10, 30, 50, 0.3);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    z-index: 1000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: linear-gradient(135deg, #1E7A4A, #2E7D57); }
.toast.info { background: linear-gradient(135deg, #0A3D62, #135A8C); }
.toast .toast-icon { flex-shrink: 0; font-size: 16px; line-height: 1; }

@media (max-width: 520px) {
    .toast { left: 16px; right: 16px; max-width: none; bottom: 16px; }
}

/* ---------- Baris tabel yang dinonaktifkan (mis. kelas penuh di KRS) ---------- */

tr.row-disabled { opacity: 0.55; }
tr.row-disabled td { cursor: not-allowed; }

/* ---------- Cetak (dipakai tombol Unduh Transkrip) ---------- */

@media print {
    .sidebar, .sidebar-overlay, .topbar, .menu-toggle, .toast,
    .toolbar, .btn, .btn-teal, .btn-outline, .btn-primary { display: none !important; }
    .main { margin: 0 !important; }
    .content { padding: 0 !important; }
    body { background: #fff !important; }
    .card { box-shadow: none !important; border: none !important; }
}
