/* =============================================
   SPK IZIN TRAYEK AJDP - Custom Stylesheet
   ============================================= */

:root {
    --primary: #1a5276;
    --primary-light: #2e86c1;
    --primary-dark: #154360;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --info: #3498db;
    --light-bg: #f0f4f8;
    --sidebar-w: 0px;
    --nav-h: 64px;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(26,82,118,0.10);
    --shadow-hover: 0 6px 24px rgba(26,82,118,0.18);
    --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: linear-gradient(160deg, #cfe0ee 0%, #dce8f2 50%, #d4e4f0 100%);
    background-attachment: fixed;
    color: #2c3e50;
    font-size: 14px;
}

/* ========== NAVBAR ========== */
#mainNav {
    background: linear-gradient(135deg, #0d2b3e 0%, #154360 45%, #1a5276 100%);
    min-height: var(--nav-h);
    box-shadow: 0 4px 0 #091d2a, 0 6px 20px rgba(0,0,0,0.30);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* ===== NAVBAR COLLAPSE — FIX MOBILE ===== */
/* Saat menu terbuka di mobile, posisi absolute supaya tidak mendorong konten */
@media (max-width: 991px) {
    #mainNav {
        padding: 0 1rem;
        min-height: 56px;
    }

    /* Navbar collapse jadi overlay, tidak mendorong layout */
    #mainNav .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #0d2b3e 0%, #154360 100%);
        border-top: 2px solid rgba(255,255,255,0.12);
        box-shadow: 0 8px 24px rgba(0,0,0,0.35);
        padding: 10px 14px 14px;
        z-index: 1031;
        border-radius: 0 0 12px 12px;
    }

    #mainNav .navbar-nav {
        gap: 2px !important;
    }

    #mainNav .nav-link {
        padding: 9px 14px !important;
        border-radius: 8px;
        top: 0 !important;
        box-shadow: none !important;
    }
    #mainNav .nav-link:hover {
        background: rgba(255,255,255,0.12);
        top: 0 !important;
        box-shadow: none !important;
    }
    #mainNav .nav-link.active {
        background: rgba(255,255,255,0.18);
        top: 0 !important;
        box-shadow: none !important;
    }

    /* Dropdown user di dalam menu mobile */
    #mainNav .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(0,0,0,0.18);
        border: none;
        padding: 4px 0 4px 14px;
        margin-top: 4px;
        border-radius: 8px;
    }
    #mainNav .dropdown-menu .dropdown-item {
        color: rgba(255,255,255,0.82) !important;
        border-radius: 6px;
        font-size: 13px;
        padding: 7px 12px;
    }
    #mainNav .dropdown-menu .dropdown-item:hover {
        background: rgba(255,255,255,0.12);
        transform: none;
        box-shadow: none;
    }
    #mainNav .dropdown-menu .dropdown-divider {
        border-color: rgba(255,255,255,0.15);
    }
    #mainNav .dropdown-menu .dropdown-item-text {
        color: rgba(255,255,255,0.45) !important;
        font-size: 11px;
    }
    #mainNav .dropdown-menu .text-danger {
        color: #ff7675 !important;
    }

    /* ms-2 / ms-lg-2 — hapus margin kiri di mobile */
    #mainNav .ms-lg-2 { margin-left: 0 !important; }
}

.brand-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.1s ease;
    flex-shrink: 0;
}
.brand-icon:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.brand-title { font-size: 13px; font-weight: 700; line-height: 1.2; }
.brand-sub { font-size: 10px; opacity: 0.75; line-height: 1; }

#mainNav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.1s ease;
    box-shadow: 0 3px 0 rgba(0,0,0,0.0);
    position: relative;
    top: 0;
}
#mainNav .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    box-shadow: 0 3px 0 rgba(0,0,0,0.2);
    top: -1px;
}
#mainNav .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    box-shadow: 0 3px 0 rgba(0,0,0,0.25);
    top: -1px;
}
#mainNav .nav-link:active {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    box-shadow: 0 0px 0 rgba(0,0,0,0.2) !important;
    top: 2px !important;
    transform: none;
}

.avatar-sm {
    width: 30px; height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
    box-shadow: 0 3px 0 #b8600e;
    transition: all 0.1s ease;
    flex-shrink: 0;
}
.avatar-sm:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #b8600e;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(180deg, #ffffff 0%, #f0f6fb 100%);
    border-bottom: 1px solid #ccdde8;
    box-shadow: 0 4px 0 #b8ccd8, 0 6px 16px rgba(26,82,118,0.10);
    padding: 14px 0;
    margin-bottom: 0;
}
.page-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    background: linear-gradient(135deg, #0e2d42, #2e86c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.breadcrumb { font-size: 12px; }
.breadcrumb-item a { color: var(--primary-light); text-decoration: none; }

/* ========== MAIN CONTENT ========== */
.main-content {
    min-height: calc(100vh - var(--nav-h) - 56px);
    padding: 24px 0;
}

/* ========== CARDS - 3D ========== */
.card {
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(160deg, #f8fbfe 0%, #f0f6fb 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        0 5px 0 #a8c0d6,
        0 8px 24px rgba(26,82,118,0.13);
    transition: box-shadow 0.15s ease, top 0.15s ease;
    position: relative;
    top: 0;
}
.card:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        0 7px 0 #97b0c8,
        0 14px 32px rgba(26,82,118,0.18);
    top: -3px;
}

.card-body .border-bottom {
    border-color: #cfe0ee !important;
}

.card-body h6.text-muted {
    color: #1a5276 !important;
    font-weight: 800;
    letter-spacing: 0.6px;
    font-size: 11.5px;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid #cde0f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-header {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 3px 0 #0e2d42;
    border-bottom: 3px solid #0e2d42;
}
.card-header.light {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
    color: var(--primary-dark);
    border-bottom: 2px solid #ccdde8;
    box-shadow: none;
}

/* ========== FORM SECTION PANELS ========== */
.form-section {
    border-radius: 10px;
    padding: 18px 20px 12px;
    margin-bottom: 20px;
    border: 1.5px solid #cde0f0;
    border-left-width: 4px;
    background: linear-gradient(135deg, #eef4fb 0%, #e6f0f9 100%);
    border-left-color: var(--primary-light);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 3px 0 #b0c8de,
        0 5px 14px rgba(26,82,118,0.09);
    position: relative;
    top: 0;
    transition: all 0.15s ease;
}
.form-section:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 5px 0 #9ab8ce,
        0 8px 20px rgba(26,82,118,0.13);
    top: -1px;
}
.form-section.section-identity {
    background: linear-gradient(135deg, #eaf3fb 0%, #deeef8 100%);
    border-color: #a8d4ef; border-left-color: #2e86c1;
}
.form-section.section-trayek {
    background: linear-gradient(135deg, #eaf8f0 0%, #ddf2e7 100%);
    border-color: #a3dfbd; border-left-color: #27ae60;
}
.form-section.section-kendaraan {
    background: linear-gradient(135deg, #fef6ec 0%, #fdeedd 100%);
    border-color: #f5cfa0; border-left-color: #e67e22;
}
.form-section.section-dokumen {
    background: linear-gradient(135deg, #f5eefb 0%, #ede3f6 100%);
    border-color: #d4b8e8; border-left-color: #8e44ad;
}
.form-section.section-penilaian {
    background: linear-gradient(135deg, #e8f6fb 0%, #daeef6 100%);
    border-color: #9fd3e8; border-left-color: #3498db;
}

.form-section h6,
.form-section h6.text-muted {
    font-weight: 800 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
    padding-bottom: 10px !important;
    margin-bottom: 16px !important;
    border-bottom-width: 2px !important;
    border-bottom-style: solid !important;
}
.form-section.section-identity h6 { color: #1a5276 !important; border-bottom-color: #a8d4ef !important; }
.form-section.section-trayek h6 { color: #1e6b3a !important; border-bottom-color: #a3dfbd !important; }
.form-section.section-kendaraan h6 { color: #874a1a !important; border-bottom-color: #f5cfa0 !important; }
.form-section.section-dokumen h6 { color: #6c3483 !important; border-bottom-color: #d4b8e8 !important; }
.form-section.section-penilaian h6 { color: #1a6a8a !important; border-bottom-color: #9fd3e8 !important; }

/* ========== STAT CARDS - 3D ========== */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 100%);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,1),
        0 6px 0 #b8cad9,
        0 10px 22px rgba(26,82,118,0.12);
    display: flex; align-items: center; gap: 16px;
    transition: all 0.15s ease;
    border-left: 4px solid transparent;
    position: relative;
    top: 0;
    cursor: default;
}
.stat-card:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,1),
        0 8px 0 #a8bdd0,
        0 16px 30px rgba(26,82,118,0.18);
    top: -3px;
}
.stat-card:active {
    box-shadow:
        0 2px 0 #c8d6e5,
        0 3px 8px rgba(26,82,118,0.10);
    top: 3px;
}
.stat-card.blue { border-color: var(--primary-light); }
.stat-card.orange { border-color: var(--accent); }
.stat-card.green { border-color: var(--success); }
.stat-card.red { border-color: var(--danger); }
.stat-card.purple { border-color: #8e44ad; }

.stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
    box-shadow: 0 3px 0 rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.6);
}
.stat-card.blue .stat-icon { background: linear-gradient(135deg, #d6eaf8, #ebf5fb); color: var(--primary-light); }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #fdebd0, #fef9e7); color: var(--accent); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #d5f5e3, #eafaf1); color: var(--success); }
.stat-card.red .stat-icon { background: linear-gradient(135deg, #fadbd8, #fdedec); color: var(--danger); }
.stat-card.purple .stat-icon { background: linear-gradient(135deg, #e8daef, #f5eef8); color: #8e44ad; }

.stat-value { font-size: 26px; font-weight: 700; line-height: 1; color: #1a252f; }
.stat-label { font-size: 12px; color: #7f8c8d; margin-top: 3px; }

/* ========== TABLES ========== */
.table-wrapper {
    background: #f7fafd;
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 5px 0 #a8c0d6,
        0 8px 20px rgba(26,82,118,0.12);
    overflow: hidden;
}
.table { margin: 0; font-size: 13px; }
.table thead th {
    background: linear-gradient(180deg, #1f638d 0%, #154360 100%);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 16px;
    border: none;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.table tbody td { padding: 11px 16px; vertical-align: middle; border-color: #e8f0f8; }
.table tbody tr { transition: all 0.1s ease; }
.table tbody tr:nth-child(even) td { background: rgba(232,243,251,0.45); }
.table tbody tr:hover {
    background: #deeef8;
    box-shadow: inset 3px 0 0 var(--primary-light);
}

/* ========== BADGES ========== */
.badge {
    font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 20px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.12);
    transition: all 0.1s ease;
}
a.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}
a.badge:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

/* ========== BUTTONS ========== */
.btn {
    transition: all 0.1s ease !important;
    position: relative;
    top: 0;
}

.btn-primary {
    background: linear-gradient(180deg, #2e86c1 0%, #1a5276 100%);
    border-color: #154360;
    box-shadow: 0 4px 0 #0e2d42, 0 5px 10px rgba(21,67,96,0.3) !important;
}
.btn-primary:hover {
    background: linear-gradient(180deg, #3498db 0%, #1a5276 100%);
    border-color: #154360;
    box-shadow: 0 5px 0 #0e2d42, 0 7px 14px rgba(21,67,96,0.35) !important;
    top: -1px;
}
.btn-primary:active, .btn-primary:focus:active {
    background: linear-gradient(180deg, #1a5276 0%, #154360 100%);
    box-shadow: 0 1px 0 #0e2d42, 0 2px 4px rgba(21,67,96,0.2) !important;
    top: 3px !important;
    transform: none !important;
}

.btn-secondary {
    background: linear-gradient(180deg, #aab7c4 0%, #7f8c8d 100%);
    border-color: #6c7a7b;
    box-shadow: 0 4px 0 #5a6a6b, 0 5px 10px rgba(90,106,107,0.25) !important;
}
.btn-secondary:hover { top: -1px; box-shadow: 0 5px 0 #5a6a6b, 0 7px 14px rgba(90,106,107,0.3) !important; }
.btn-secondary:active { top: 3px !important; box-shadow: 0 1px 0 #5a6a6b, 0 2px 4px rgba(90,106,107,0.15) !important; transform: none !important; }

.btn-outline-secondary {
    box-shadow: 0 3px 0 #adb5bd, 0 4px 8px rgba(0,0,0,0.08) !important;
}
.btn-outline-secondary:hover { top: -1px; box-shadow: 0 4px 0 #8d9499, 0 6px 12px rgba(0,0,0,0.12) !important; }
.btn-outline-secondary:active { top: 2px !important; box-shadow: 0 1px 0 #adb5bd !important; transform: none !important; }

.btn-success {
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
    border-color: #1e8449;
    box-shadow: 0 4px 0 #1a7a42, 0 5px 10px rgba(26,122,66,0.3) !important;
}
.btn-success:hover { top: -1px; box-shadow: 0 5px 0 #1a7a42, 0 7px 14px rgba(26,122,66,0.35) !important; }
.btn-success:active { top: 3px !important; box-shadow: 0 1px 0 #1a7a42 !important; transform: none !important; }

.btn-warning {
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
    border-color: #b07d00;
    box-shadow: 0 4px 0 #b08000, 0 5px 10px rgba(176,128,0,0.25) !important;
}
.btn-warning:hover { top: -1px; box-shadow: 0 5px 0 #b08000, 0 7px 14px rgba(176,128,0,0.3) !important; }
.btn-warning:active { top: 3px !important; box-shadow: 0 1px 0 #b08000 !important; transform: none !important; }

.btn-danger {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    border-color: #922b21;
    box-shadow: 0 4px 0 #7b241c, 0 5px 10px rgba(123,36,28,0.3) !important;
}
.btn-danger:hover { top: -1px; box-shadow: 0 5px 0 #7b241c, 0 7px 14px rgba(123,36,28,0.35) !important; }
.btn-danger:active { top: 3px !important; box-shadow: 0 1px 0 #7b241c !important; transform: none !important; }

.btn-outline-primary {
    box-shadow: 0 3px 0 #1a5276, 0 4px 8px rgba(26,82,118,0.15) !important;
}
.btn-outline-primary:hover { top: -1px; box-shadow: 0 4px 0 #154360, 0 6px 12px rgba(26,82,118,0.2) !important; }
.btn-outline-primary:active { top: 2px !important; box-shadow: 0 1px 0 #1a5276 !important; transform: none !important; }

.btn-outline-warning {
    box-shadow: 0 3px 0 #b08000, 0 4px 8px rgba(176,128,0,0.15) !important;
}
.btn-outline-warning:hover { top: -1px; box-shadow: 0 4px 0 #b08000, 0 6px 12px rgba(176,128,0,0.2) !important; }
.btn-outline-warning:active { top: 2px !important; box-shadow: 0 1px 0 #b08000 !important; transform: none !important; }

.btn-outline-danger {
    box-shadow: 0 3px 0 #7b241c, 0 4px 8px rgba(123,36,28,0.15) !important;
}
.btn-outline-danger:hover { top: -1px; box-shadow: 0 4px 0 #7b241c, 0 6px 12px rgba(123,36,28,0.2) !important; }
.btn-outline-danger:active { top: 2px !important; box-shadow: 0 1px 0 #7b241c !important; transform: none !important; }

/* ========== FORMS ========== */
.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid #b8d0e8;
    font-size: 13px;
    padding: 9px 13px;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 0 #a8c0d8, inset 0 2px 5px rgba(26,82,118,0.08);
    background: linear-gradient(180deg, #eef5fb 0%, #e6f0f8 100%);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 3px 0 #1a5276, 0 0 0 3px rgba(46,134,193,0.15), inset 0 1px 3px rgba(0,0,0,0.03);
    outline: none;
}
.form-control:active {
    box-shadow: 0 1px 0 #b0c4d8, inset 0 3px 6px rgba(26,82,118,0.08);
}
.form-control::placeholder { color: #9ab4c8; font-style: italic; font-size: 12px; }
.form-label { font-size: 12.5px; font-weight: 700; color: #2c5f7a; margin-bottom: 5px; }

.input-group .input-group-text {
    border: 1.5px solid #b8d0e8;
    background: linear-gradient(180deg, #deeaf5 0%, #d0e4f2 100%);
    box-shadow: 0 2px 0 #a8c0d8;
    font-size: 13px;
    color: #1a5276;
    font-weight: 600;
}
.input-group .form-control { border-left: none; }

.form-check-input {
    box-shadow: 0 2px 0 #b0bec5, inset 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.1s ease;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 2px 0 #154360;
}
.form-check-input:active {
    transform: scale(0.9);
    box-shadow: 0 0px 0 #b0bec5;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(180deg, #f5f9fd 0%, #fff 100%);
    border-top: 1px solid #ccdde8;
    box-shadow: 0 -3px 0 #b8ccd8;
    padding: 14px 24px;
    font-size: 12px;
    color: #7f8c8d;
}

/* ========== LOGIN PAGE ========== */
.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%; max-width: 420px;
    box-shadow:
        0 8px 0 rgba(13,43,62,0.4),
        0 16px 40px rgba(0,0,0,0.35);
}
.login-logo {
    width: 70px; height: 70px; background: var(--primary);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff; margin: 0 auto 20px;
    box-shadow: 0 5px 0 var(--primary-dark), 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.1s ease;
}
.login-logo:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--primary-dark), 0 4px 10px rgba(0,0,0,0.2);
}

/* ========== ELECTRE MATRIX TABLE ========== */
.matrix-table th, .matrix-table td {
    text-align: center; font-size: 12px; padding: 8px 10px;
}
.matrix-table thead th {
    background: var(--primary-dark);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}
.cell-highlight { background: #d4efdf !important; font-weight: 600; }
.cell-dim { background: #fef9e7; color: #999; }

/* ========== RANK BADGE ========== */
.rank-badge {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.35);
    flex-shrink: 0;
}
.rank-1 { background: linear-gradient(180deg, #ffe033 0%, #ffd700 100%); color: #333; box-shadow: 0 3px 0 #c9a800; }
.rank-2 { background: linear-gradient(180deg, #d8d8d8 0%, #c0c0c0 100%); color: #333; box-shadow: 0 3px 0 #909090; }
.rank-3 { background: linear-gradient(180deg, #e89f50 0%, #cd7f32 100%); color: #fff; box-shadow: 0 3px 0 #9a5a1a; }
.rank-other { background: linear-gradient(180deg, #edf2f7 0%, #e0e6ed 100%); color: #555; box-shadow: 0 3px 0 #b0bec5; }

/* ========== STEP INDICATOR ========== */
.step-indicator { display: flex; gap: 0; margin-bottom: 24px; }
.step-item { flex: 1; text-align: center; position: relative; }
.step-item::after {
    content: ''; position: absolute; top: 18px; left: 50%; right: -50%;
    height: 2px; background: #c8d8e8; z-index: 0;
}
.step-item:last-child::after { display: none; }
.step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(180deg, #e8edf2 0%, #d5dce6 100%);
    color: #888;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px; font-weight: 700; font-size: 14px;
    position: relative; z-index: 1;
    transition: all 0.2s ease;
    box-shadow: 0 3px 0 #b0bec5, inset 0 1px 0 rgba(255,255,255,0.6);
}
.step-item.active .step-circle {
    background: linear-gradient(180deg, #3498db 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 0 #1a5276, 0 6px 12px rgba(46,134,193,0.3);
}
.step-item.done .step-circle {
    background: linear-gradient(180deg, #2ecc71 0%, var(--success) 100%);
    color: #fff;
    box-shadow: 0 3px 0 #1a7a42;
}
.step-label { font-size: 11px; color: #7f8c8d; font-weight: 500; }
.step-item.active .step-label { color: var(--primary-light); font-weight: 600; }

/* ========== REKOMENDASI COLORS ========== */
.rek-direkomendasikan { color: var(--success); font-weight: 600; }
.rek-evaluasi { color: var(--accent); font-weight: 600; }
.rek-tidak { color: var(--danger); font-weight: 600; }

/* ========== CHART ========== */
.chart-container { position: relative; height: 300px; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #dce8f0; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #90a8be, #6e8fa8);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ========== TABLE RESPONSIVE ========== */
.table-responsive { border-radius: var(--radius); overflow: hidden; }

/* ========== DROPDOWN ========== */
.dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow:
        0 6px 0 #b8ccde,
        0 10px 30px rgba(26,82,118,0.18);
    padding: 6px;
    background: #f8fbfe;
}
.dropdown-item {
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 14px;
    transition: all 0.1s ease;
}
.dropdown-item:hover {
    background: #deeef8;
    color: var(--primary);
    transform: translateX(2px);
    box-shadow: inset 3px 0 0 var(--primary-light);
}
.dropdown-item:active {
    background: var(--primary-light);
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* ========== ALERT ========== */
.alert {
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1), 0 6px 16px rgba(0,0,0,0.07);
}

/* ========== MODAL ========== */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow:
        0 8px 0 #a8c0d6,
        0 16px 40px rgba(26,82,118,0.25);
}
.modal-header {
    background: linear-gradient(135deg, #0e2d42, #1a5276 50%, #2e86c1 100%);
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    border: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 3px 0 #091d2a;
}

/* ========== BORDER CARDS ========== */
.card.border, .border.rounded {
    background: linear-gradient(135deg, #eef4fb 0%, #e6f0f8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 3px 0 #b0c8de,
        0 5px 14px rgba(26,82,118,0.10);
    border: 1px solid #c8dcee !important;
    transition: all 0.15s ease;
    position: relative;
    top: 0;
}
.card.border:hover, .border.rounded:hover {
    background: linear-gradient(135deg, #e4eef8 0%, #dce8f4 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 5px 0 #a0b8d0,
        0 8px 20px rgba(26,82,118,0.14);
    top: -2px;
}

/* ========== PAGINATION ========== */
.page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1.5px solid #c8d8e8;
    box-shadow: 0 3px 0 #b8ccd8;
    transition: all 0.1s ease;
    color: var(--primary);
    background: linear-gradient(180deg, #f5f9fd 0%, #edf4fa 100%);
}
.page-link:hover {
    background: linear-gradient(180deg, #deeef8 0%, #d0e8f5 100%);
    border-color: var(--primary-light);
    box-shadow: 0 4px 0 #1a5276;
    color: var(--primary);
    transform: translateY(-1px);
}
.page-link:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #c8d8e8;
}
.page-item.active .page-link {
    background: linear-gradient(180deg, #3498db 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    box-shadow: 0 3px 0 #154360;
    color: #fff;
}

/* =============================================
   MOBILE RESPONSIVE — MAX 576px
   ============================================= */
@media (max-width: 576px) {

    /* Page header tetap tampil, ukuran dikecilkan */
    .page-header { padding: 8px 0; }
    .page-title  { font-size: 15px !important; }
    .breadcrumb  { font-size: 11px; }

    /* Main content padding dikecilkan */
    .main-content { padding: 12px 0; }

    /* Stat card biasa (halaman lain) */
    .stat-card { padding: 12px; gap: 10px; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 11px; }
    .stat-icon  { width: 40px; height: 40px; font-size: 18px; }

    /* Card header */
    .card-header { font-size: 13px !important; padding: 10px 14px !important; }
    .card-header .btn { font-size: 11px; padding: 2px 8px; }

    /* Tabel umum */
    .table { font-size: 12px; }
    .table thead th { padding: 8px 10px; font-size: 11px; }
    .table tbody td { padding: 7px 10px; }

    /* Footer */
    .footer { padding: 10px 14px; font-size: 11px; }

    /* Row gutter lebih rapat */
    .row.g-3 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
    .row.g-4 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.75rem; }

    /* Login card */
    .login-card { padding: 28px 20px; }
}