/* ============================================
   CSS VARIABLES - YBM BRILiaN Brand Identity
   ============================================ */
:root {
    --nusantara-blue: #2F5CAA;
    --cakrawala-blue: #307FE2;
    --mentari-blue: #71C5E8;
    --charcoal-grey: #606161;
    --primary: #2F5CAA;
    --primary-dark: #243F7A;
    --primary-light: #71C5E8;
    --accent: #307FE2;
    --accent-light: #EAF4FE;
    --bg-body: #F3F6F9;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.92);
    --text-main: #4A5568;
    --text-muted: #8A8B8B;
    --text-dark: #1A202C;
    --border: #E2E8F0;
    --success: #22c55e;
    --success-bg: #dcfce7;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fef9c3;
    --info: #0ea5e9;
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --gradient-primary: linear-gradient(135deg, #2F5CAA 0%, #307FE2 50%, #71C5E8 100%);
    --gradient-primary-btn: linear-gradient(135deg, #2F5CAA 0%, #307FE2 100%);
    --gradient-accent: linear-gradient(135deg, #307FE2 0%, #71C5E8 100%);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: 14px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
#login-screen {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    overflow: hidden;
}

#login-screen.hidden {
    display: none;
}

#login-screen.transitioning {
    transition: opacity 0.6s 0.5s;
    opacity: 0;
}

/* Background orbs */
.login-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 12s ease-in-out infinite;
}

.login-orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #71C5E8 0%, transparent 70%);
    animation-delay: 0s;
}

.login-orb-2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    right: -80px;
    background: radial-gradient(circle, #2F5CAA 0%, transparent 70%);
    animation-delay: -4s;
}

.login-orb-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #307FE2 0%, transparent 70%);
    animation-delay: -8s;
    opacity: 0.25;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 25px) scale(0.95);
    }
}

/* Left branding panel */
.login-panel-left {
    flex: 1;
    position: relative;
    background: linear-gradient(160deg, #1a3a6d 0%, #2F5CAA 40%, #307FE2 75%, #71C5E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
}

.login-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    animation: brandEnter 0.8s ease-out 0.2s both;
}

@keyframes brandEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-brand-logo {
    width: 90px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2)) brightness(1.1);
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.login-brand-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.login-brand-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 20px;
}

.login-brand-divider {
    width: 48px;
    height: 3px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.login-brand-org {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-brand-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Right form panel */
.login-panel-right {
    flex: 1;
    position: relative;
    z-index: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
}

.login-form-wrap {
    width: 100%;
    max-width: 400px;
    padding: 40px 32px;
    animation: formEnter 0.6s ease-out 0.4s both;
}

@keyframes formEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(47, 92, 170, 0.25);
    animation: iconPulse 3s ease-in-out infinite;
}

.login-icon-circle i {
    font-size: 26px;
    color: white;
}

@keyframes iconPulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(47, 92, 170, 0.25);
    }

    50% {
        box-shadow: 0 8px 32px rgba(47, 92, 170, 0.4);
    }
}

.login-form-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Email input group */
.login-input-group {
    margin-bottom: 24px;
    animation: inputEnter 0.5s ease-out 0.6s both;
}

@keyframes inputEnter {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-input-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-input-label i {
    font-size: 16px;
    color: var(--primary);
}

.login-email-field {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
    background: white;
}

.login-email-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(47, 92, 170, 0.1);
}

.login-email-field.field-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    animation: fieldShake 0.4s ease;
}

@keyframes fieldShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.login-email-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    min-width: 0;
}

.login-email-input::placeholder {
    color: #b0b8c4;
    font-weight: 400;
}

.login-email-domain {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    border-left: 2px solid var(--border);
    white-space: nowrap;
    user-select: none;
}

/* Login button */
.login-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-primary-btn);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(47, 92, 170, 0.3);
    animation: btnEnter 0.5s ease-out 0.7s both;
}

@keyframes btnEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 92, 170, 0.4);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 16px rgba(47, 92, 170, 0.2) !important;
}

.login-btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Login error */
.login-error {
    padding: 12px 16px;
    margin-top: 16px;
    background: var(--danger-bg);
    color: var(--danger);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: errorSlide 0.3s ease-out;
}

.login-error .login-not-registered {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 8px 0;
}

.login-not-registered-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.login-not-registered-icon i {
    font-size: 28px;
    color: var(--danger);
}

.login-not-registered-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
}

.login-not-registered-detail {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
}

.login-not-registered-detail span {
    color: var(--text-muted);
    font-size: 12px;
}

.login-not-registered-msg {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 4px;
}

@keyframes errorSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer info */
.login-footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    animation: footerEnter 0.5s ease-out 0.9s both;
}

@keyframes footerEnter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.login-footer-info i {
    font-size: 18px;
    color: var(--success);
    flex-shrink: 0;
}

/* Google Sign-In fallback */
.login-gsi-fallback {
    margin-top: 20px;
    animation: fadeInUp 0.4s ease-out;
}

.login-gsi-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.login-gsi-divider::before,
.login-gsi-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-gsi-btn-wrap {
    display: flex;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loader-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neon-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--nusantara-blue);
    border-bottom-color: var(--mentari-blue);
    animation: spin 1.4s linear infinite;
    box-shadow: 0 0 10px rgba(47, 92, 170, 0.15);
}

.loader-logo {
    width: 72px;
    height: auto;
    z-index: 2;
}

.loader-text {
    margin-top: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal-grey);
    letter-spacing: 0.3px;
    animation: pulseText 1.5s infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ============================================
   LOGOUT OVERLAY
   ============================================ */
#logout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#logout-overlay.show {
    display: flex;
    opacity: 1;
}

.logout-content {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 40px 48px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#logout-overlay.show .logout-content {
    transform: scale(1);
}

.logout-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseLogout 1.8s ease-in-out infinite;
}

.logout-icon i {
    font-size: 28px;
    color: white;
}

@keyframes pulseLogout {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 92, 170, 0.5);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 16px rgba(47, 92, 170, 0);
    }
}

.logout-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.logout-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   APP CONTAINER
   ============================================ */
#app-container {
    display: none;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    height: 100vh;
    height: 100dvh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.brand img {
    height: 42px;
    width: auto;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    padding: 12px 12px 8px;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    padding: 12px 12px 6px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:hover {
    background: var(--accent-light);
    color: var(--primary);
}

.nav-item.active {
    background: var(--gradient-primary-btn);
    color: white;
    box-shadow: 0 2px 8px rgba(47, 92, 170, 0.3);
}

.nav-item.active i {
    color: white;
}

.nav-item i {
    font-size: 20px;
    color: var(--text-muted);
    transition: color 0.2s;
    flex-shrink: 0;
}

.nav-item:hover i {
    color: var(--primary);
}

/* Collapsible Submenu */
.nav-parent {
    position: relative;
}

.nav-parent .nav-caret {
    margin-left: auto;
    font-size: 14px;
    transition: transform 0.25s ease;
}

.nav-parent.expanded .nav-caret {
    transform: rotate(180deg);
}

.nav-parent.expanded {
    color: var(--primary);
    background: var(--accent-light);
}

.nav-parent.expanded i {
    color: var(--primary);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-submenu.open {
    max-height: 200px;
}

.nav-child {
    padding-left: 42px !important;
    font-size: 13px !important;
    position: relative;
}

.nav-child::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transform: translateY(-50%);
    transition: background 0.2s;
}

.nav-child.active::before {
    background: white;
}

.nav-child:hover::before {
    background: var(--primary);
}

.nav-child i {
    font-size: 16px !important;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================
   MAIN WRAPPER & TOP HEADER
   ============================================ */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed~.main-wrapper {
    margin-left: 0;
}

.top-header {
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-main);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-hamburger:hover {
    background: var(--accent-light);
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* ============================================
   NOTIFICATION BELL & PANEL
   ============================================ */
.notif-bell-wrap {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-main);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.notif-bell-wrap:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
    line-height: 1;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 7000;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease;
}

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.notif-panel-header strong {
    color: var(--text-dark);
}

.notif-mark-all {
    font-size: 12px;
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
}

.notif-mark-all:hover {
    text-decoration: underline;
}

.notif-panel-body {
    max-height: 400px;
    overflow-y: auto;
}

.notif-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
}

.notif-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.notif-empty p {
    font-size: 13px;
    margin: 0;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}

.notif-item:hover {
    background: var(--accent-light);
}

.notif-item.unread {
    background: #eff6ff;
}

.notif-item.unread:hover {
    background: #dbeafe;
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.notif-item-icon.notif-submit {
    background: linear-gradient(135deg, var(--cakrawala-blue), var(--mentari-blue));
}

.notif-item-icon.notif-verified {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.notif-item-icon.notif-rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notif-item-icon.notif-revision {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notif-item-icon.notif-resubmit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item.unread .notif-item-text {
    font-weight: 600;
    color: var(--text-dark);
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.notif-item-kelompok {
    font-size: 11px;
    color: var(--accent);
    margin-top: 1px;
}

/* Sidebar nav badges */
.nav-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    line-height: 1;
}

/* Tab badges */
.tab-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    line-height: 1;
}

.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.user-profile-pill:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.user-info-header {
    display: flex;
    flex-direction: column;
}

.user-name-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.user-unit-header {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.dropdown-chevron {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.user-profile-pill.open .dropdown-chevron {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.dropdown-avatar-link {
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.2s;
}

.dropdown-avatar-link:hover {
    transform: scale(1.08);
}

.dropdown-avatar-link::after {
    content: '\e1ab';
    font-family: 'Phosphor';
    font-size: 10px;
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    opacity: 0;
    transition: opacity 0.2s;
}

.dropdown-avatar-link:hover::after {
    opacity: 1;
}

.dropdown-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.dropdown-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.dropdown-details {
    flex: 1;
    min-width: 0;
}

.dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.dropdown-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    margin-top: 4px;
    border-radius: 20px;
    background: var(--primary-bg);
    color: var(--primary);
}

.dropdown-unit {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 4px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dropdown-item-logout:hover {
    background: #fef2f2;
    color: var(--danger);
}

.dropdown-item i {
    font-size: 18px;
}

/* ============================================
   CONTENT AREA & PAGES
   ============================================ */
.content-area {
    flex: 1;
    padding: 24px;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeInPage 0.35s ease;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInPage 0.45s ease forwards;
}

/* ============================================
   WELCOME BANNER
   ============================================ */
.welcome-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 28px 32px;
    color: white;
    margin-bottom: 20px;
}

.welcome-banner-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: 0;
}

.welcome-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.welcome-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.welcome-text-wrap h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.welcome-text-wrap p {
    font-size: 13px;
    opacity: 0.85;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.25s;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon-wrapper.blue {
    background: #dbeafe;
    color: var(--nusantara-blue);
}

.stat-icon-wrapper.teal {
    background: #ccfbf1;
    color: #0d9488;
}

.stat-icon-wrapper.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-icon-wrapper.amber {
    background: #fef3c7;
    color: #d97706;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-arrow {
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.25s;
    flex-shrink: 0;
}

.stat-card:hover .stat-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ============================================
   INFO CARD
   ============================================ */
.info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
}

.info-card-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
    min-width: 0;
}

.info-card-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.info-card-content ul {
    list-style: none;
    padding: 0;
}

.info-card-content li {
    font-size: 13px;
    color: var(--text-main);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.6;
}

.info-card-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

/* ============================================
   FORM CARD & ELEMENTS
   ============================================ */
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.card-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.2px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-label i {
    font-size: 15px;
    color: var(--accent);
}

.required {
    color: var(--danger);
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text-main);
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(48, 127, 226, 0.1);
}

.form-input.readonly {
    background: #f8fafc;
    color: var(--text-muted);
    cursor: default;
}

.form-select {
    cursor: pointer;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    word-break: break-word;
}

.period-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--gradient-primary-btn);
    color: white;
    box-shadow: 0 2px 8px rgba(47, 92, 170, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(47, 92, 170, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-large {
    padding: 12px 28px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.form-actions-spread {
    justify-content: space-between;
}

/* Progres Section Wrap */
.progres-section-wrap {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.progres-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.progres-section-title i {
    font-size: 20px;
    color: var(--primary);
}

/* ============================================
   DATA TABLE
   ============================================ */
.table-info-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.table-info-bar i {
    font-size: 16px;
    flex-shrink: 0;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 900px;
}

.data-table thead {
    background: var(--gradient-primary);
    color: white;
}

.data-table th {
    padding: 10px 8px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    position: sticky;
    top: 0;
}

.data-table th.th-group {
    background: rgba(0, 0, 0, 0.08);
    font-size: 12px;
    letter-spacing: 0.3px;
}

.data-table th.th-sub {
    font-size: 11px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
}

.th-no {
    width: 36px;
}

.th-nama {
    min-width: 140px;
}

.th-angka {
    min-width: 100px;
}

.data-table td {
    padding: 6px 8px;
    border: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.15s;
}

.data-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.data-table tbody tr:hover {
    background: #f0f7ff;
}

.td-no {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
}

.td-nama {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 13px;
    white-space: nowrap;
}

/* Table Inputs */
.table-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    font-family: var(--font);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    text-align: right;
    transition: all 0.2s ease;
    outline: none;
    background: white;
    color: var(--text-main);
    min-width: 90px;
}

.table-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(48, 127, 226, 0.1);
    background: #fafeff;
}

.table-input.readonly {
    background: #f1f5f9;
    color: var(--text-muted);
    border-color: transparent;
    cursor: default;
    font-weight: 500;
}

.readonly-cell {
    background: #f1f5f9;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    font-size: 13px;
}

.badge-tipe {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}

.badge-tipe.bulanan {
    background: #e0edff;
    color: var(--primary);
}

.badge-tipe.progres {
    background: #dcfce7;
    color: #16a34a;
}

.table-input.saldo-awal-disabled {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: transparent;
    cursor: not-allowed;
}

.table-input.positive {
    color: var(--success);
    font-weight: 600;
}

.table-input.negative {
    color: var(--danger);
    font-weight: 600;
}

.total-row {
    background: #f0f4f8 !important;
}

.total-row:hover {
    background: #e8eef4 !important;
}

.td-total-label {
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    font-size: 13px;
}

.td-total {
    font-weight: 700;
    text-align: right;
    color: var(--nusantara-blue);
    font-size: 13px;
    padding: 8px;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8000;
    opacity: 0;
    animation: modalFadeIn 0.25s ease forwards;
    padding: 16px;
}

@keyframes modalFadeIn {
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.92) translateY(16px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}

.modal-icon.confirm {
    background: linear-gradient(135deg, var(--cakrawala-blue), var(--mentari-blue));
    color: white;
}

.modal-icon.success {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
}

.modal-icon.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.modal-icon.revision {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.modal-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.modal-note {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    margin-top: 8px !important;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.success-details {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13px;
    color: #166534;
    text-align: left;
}

/* ============================================
   SUBMITTING OVERLAY & SPINNERS
   ============================================ */
.submitting-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    flex-direction: column;
}

.submitting-content {
    text-align: center;
}

.submitting-content .spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.submitting-content p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.submitting-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 32px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.35s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 380px;
    line-height: 1.5;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

.toast.warning {
    background: #d97706;
}

.toast.info {
    background: var(--accent);
}

.toast i {
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   RIWAYAT LIST
   ============================================ */
.riwayat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.riwayat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
}

.riwayat-item:hover {
    background: #f0f4ff;
    border-color: var(--accent);
}

.riwayat-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.riwayat-info {
    flex: 1;
    min-width: 0;
}

.riwayat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.riwayat-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.riwayat-badge {
    padding: 4px 10px;
    background: var(--success-bg);
    color: #16a34a;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Status Verifikasi Badges */
.status-verifikasi {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-verifikasi.pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.status-verifikasi.verified {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.status-verifikasi.rejected {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-verifikasi.revision {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.status-verifikasi i {
    font-size: 13px;
}

/* Verify/Reject Action Buttons */
.btn-success {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-revision {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.btn-revision:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #64748b;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.btn-secondary:hover {
    background: #475569;
}

/* Timeline / Riwayat Proses */
.timeline-container {
    position: relative;
    padding-left: 24px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e2e8f0;
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding: 0 0 16px 16px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    z-index: 1;
}

.timeline-submit .timeline-dot {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

.timeline-verified .timeline-dot {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

.timeline-revision .timeline-dot {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

.timeline-rejected .timeline-dot {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.timeline-header strong {
    font-size: 13px;
    color: var(--text-primary);
}

.timeline-time {
    font-size: 11px;
    color: var(--text-muted);
}

.timeline-actor {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.timeline-note {
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    line-height: 1.4;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 44px;
    margin-bottom: 12px;
    display: block;
    color: #cbd5e1;
}

.empty-state p {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 99;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-overlay.show {
    display: block;
}

/* ============================================
   SUPER ADMIN - TABS
   ============================================ */
.admin-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 5px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.admin-tab:hover {
    background: var(--accent-light);
    color: var(--primary);
}

.admin-tab.active {
    background: var(--gradient-primary-btn);
    color: white;
    box-shadow: 0 2px 8px rgba(47, 92, 170, 0.25);
}

.admin-tab i {
    font-size: 16px;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeInPage 0.3s ease;
}

/* Laporan Sub-tabs */
.laporan-sub-tab:hover {
    opacity: 0.9;
}

.laporan-sub-content {
    animation: fadeInPage 0.3s ease;
}

.sub-tab-badge {
    font-variant-numeric: tabular-nums;
}

/* ============================================
   ADMIN - FILTER BAR
   ============================================ */
.admin-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.kelompok-link {
    color: var(--cakrawala-blue);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.kelompok-link:hover {
    text-decoration: underline;
    color: var(--mentari-blue);
}

.bulk-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    animation: fadeIn 0.2s ease;
}

.admin-search-wrap {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.admin-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.admin-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    font-size: 13px;
    font-family: var(--font);
    color: var(--text-main);
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    outline: none;
}

.admin-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(48, 127, 226, 0.1);
}

/* ============================================
   ADMIN - STATUS BADGE & ACTIONS
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.aktif {
    background: var(--success-bg);
    color: #16a34a;
}

.status-badge.non-aktif {
    background: var(--danger-bg);
    color: var(--danger);
}

.admin-row-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.btn-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-icon:hover {
    transform: translateY(-1px);
}

.btn-icon.edit {
    background: #dbeafe;
    color: var(--nusantara-blue);
}

.btn-icon.edit:hover {
    background: #bfdbfe;
}

.btn-icon.toggle {
    background: #fef3c7;
    color: #d97706;
}

.btn-icon.toggle:hover {
    background: #fde68a;
}

.btn-icon.delete {
    background: var(--danger-bg);
    color: var(--danger);
}

.btn-icon.delete:hover {
    background: #fecaca;
}

/* ============================================
   PESERTA BLOCKS
   ============================================ */
.peserta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.peserta-table th,
.peserta-table td {
    padding: 6px 8px;
    border: 1px solid var(--gray-200);
    white-space: nowrap;
    vertical-align: middle;
}

.peserta-table thead th {
    background: var(--nusantara-blue);
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 12px;
    white-space: normal;
    word-wrap: break-word;
}

.peserta-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.peserta-table .form-input,
.peserta-table .form-select {
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 6px;
}

.peserta-table .peserta-num {
    text-align: center;
    font-weight: 600;
    color: var(--nusantara-blue);
    min-width: 30px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal-grey);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ============================================
   ADMIN - IMPORT SECTION
   ============================================ */
.admin-import-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-import-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary-btn);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    background: #fafbfc;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent);
    background: var(--accent-light);
}

.upload-zone i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.upload-zone p {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.upload-zone span {
    font-size: 12px;
    color: var(--text-muted);
}

.admin-form-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #fef9c3;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #854d0e;
    margin-bottom: 16px;
    line-height: 1.5;
    border: 1px solid #fde68a;
}

.admin-form-note i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .btn-hamburger {
        display: flex;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .content-area {
        padding: 16px 12px;
    }

    .login-panel-left {
        position: absolute;
        inset: 0;
        z-index: 0;
        opacity: 0.3;
    }

    .login-brand-content {
        display: none;
    }

    .login-panel-right {
        flex: 1;
        z-index: 1;
        background: rgba(248, 250, 252, 0.95);
    }

    .form-card {
        padding: 16px;
    }

    .welcome-banner {
        padding: 20px;
    }

    .welcome-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .welcome-text-wrap h2 {
        font-size: 17px;
    }

    .welcome-text-wrap p {
        font-size: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .period-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-card {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .modal-content {
        padding: 24px 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .user-info-header {
        display: none;
    }

    .user-profile-pill {
        padding: 4px;
    }

    .dropdown-chevron {
        display: none;
    }

    .notif-panel {
        width: calc(100vw - 24px);
        right: -48px;
    }

    .notif-bell-wrap {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .top-header {
        padding: 0 12px;
    }

    .page-title {
        font-size: 15px;
    }

    .card-header {
        gap: 10px;
    }

    .card-header h2 {
        font-size: 15px;
    }

    .card-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .table-responsive {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .data-table {
        font-size: 12px;
        min-width: 800px;
    }

    .data-table th {
        padding: 8px 6px;
        font-size: 11px;
    }

    .data-table td {
        padding: 5px 6px;
    }

    .table-input {
        padding: 5px 6px;
        font-size: 12px;
        min-width: 80px;
    }

    .admin-tabs {
        gap: 2px;
        padding: 4px;
    }

    .admin-tab {
        padding: 8px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .admin-tab i {
        font-size: 14px;
    }

    .laporan-sub-tabs {
        flex-direction: column !important;
    }

    .laporan-sub-tab {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }

    .admin-filter-bar {
        flex-direction: column;
        gap: 8px;
    }

    .admin-filter-bar .form-select {
        max-width: 100% !important;
    }

    .riwayat-item {
        padding: 12px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .riwayat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .toast-container {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }

    .login-panel-left {
        display: none;
    }

    .login-panel-right {
        flex: 1;
    }

    .login-form-wrap {
        padding: 32px 20px;
    }

    .sidebar {
        width: 280px;
    }

    .brand img {
        height: 38px;
    }

    .btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .btn-large {
        padding: 11px 22px;
        font-size: 13px;
    }

    .form-actions-spread {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .form-actions-spread .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-import-step {
        flex-direction: column;
        gap: 10px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .upload-zone {
        padding: 20px 16px;
    }

    .upload-zone i {
        font-size: 28px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .content-area {
        padding: 12px 8px;
    }

    .form-card {
        padding: 14px;
        border-radius: var(--radius-md);
    }

    .welcome-banner {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .welcome-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .page-title {
        font-size: 14px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-label {
        font-size: 11px;
    }

    .riwayat-badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    .status-verifikasi {
        padding: 2px 7px;
        font-size: 10px;
    }

    .sidebar {
        width: 260px;
    }
}

/* ============================================
   KELOMPOK SAYA
   ============================================ */
.kelompok-saya-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.kelompok-saya-card {
    transition: transform 0.15s, box-shadow 0.15s;
}

.kelompok-saya-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.badge-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.info-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 600px) {
    .kelompok-saya-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {

    .sidebar,
    .top-header,
    .btn,
    .toast-container,
    .modal-overlay,
    .logout-overlay,
    .submitting-overlay {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .content-area {
        padding: 0;
        max-width: 100%;
    }

    .form-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   AUTOCOMPLETE DROPDOWN
   ============================================ */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.autocomplete-list.show {
    display: block;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #eef2ff;
}

.autocomplete-item .ac-name {
    font-weight: 600;
    color: #1e293b;
}

.autocomplete-item .ac-detail {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* ============================================
   PDF DOWNLOAD BUTTON
   ============================================ */
.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-pdf i {
    font-size: 16px;
}

/* ============================================
   DASHBOARD CHARTS
   ============================================ */
.dashboard-charts {
    margin-bottom: 24px;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.chart-card-header {
    margin-bottom: 12px;
}

.chart-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-card-header h3 i {
    font-size: 18px;
    color: var(--accent);
}

.chart-card canvas {
    width: 100% !important;
    max-height: 260px;
}

@media (max-width: 768px) {
    .chart-row {
        grid-template-columns: 1fr;
    }

    .btn-pdf {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 4px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-info {
    font-size: 12px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0 8px;
}

.pagination-controls button:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination-controls button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
}

.pagination-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-controls .page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 32px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   TABLE CHECKBOX SELECTION
   ============================================ */
.select-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #1e40af;
    font-weight: 600;
    flex-wrap: wrap;
}

.select-bar .btn-sm {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
}

.cb-col {
    width: 36px;
    text-align: center;
}

.cb-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination-controls button {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .select-bar {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ============================================
   DASHBOARD V2 — Role-Based No-Scroll Layout
   ============================================ */

/* Dashboard page fills exactly the content area — no scrollbar */
.db-page.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100vh - var(--header-height) - 48px);
    overflow: hidden;
}

/* ── TOP BAR ── */
.db-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.db-greet {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.db-greet-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.db-greet-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.db-greet-main {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-greet-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── ROLE TABS ── */
.db-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 10px;
    flex-shrink: 0;
}

.db-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.db-tab i { font-size: 14px; }

.db-tab:hover {
    background: var(--bg-surface);
    color: var(--primary);
}

.db-tab.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.db-refresh-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.db-refresh-btn:hover { background: var(--accent-light); color: var(--accent); }
.db-refresh-btn.spinning i { animation: dbSpin 0.8s linear infinite; }
@keyframes dbSpin { to { transform: rotate(360deg); } }

/* ── LOADING ── */
.db-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.db-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: dbSpin 0.7s linear infinite;
}

/* ── PANEL ── */
.db-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

/* ── STATS ROW ── */
.db-stats-row {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.db-stat-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.db-stat-card[onclick] { cursor: pointer; }

.db-stat-card[onclick]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.db-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Upgraded glassmorphic gradient card designs */
.db-stat-blue {
    background: linear-gradient(135deg, rgba(47, 92, 170, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(47, 92, 170, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(47, 92, 170, 0.08) !important;
}
.db-stat-blue::before { background: linear-gradient(90deg, var(--nusantara-blue), var(--cakrawala-blue)) !important; height: 4px !important; }

.db-stat-teal {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(8, 145, 178, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(8, 145, 178, 0.08) !important;
}
.db-stat-teal::before { background: linear-gradient(90deg, #0891b2, var(--mentari-blue)) !important; height: 4px !important; }

.db-stat-green {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(22, 163, 74, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.08) !important;
}
.db-stat-green::before { background: linear-gradient(90deg, #16a34a, #4ade80) !important; height: 4px !important; }

.db-stat-orange {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(217, 119, 6, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.08) !important;
}
.db-stat-orange::before { background: linear-gradient(90deg, #d97706, #fbbf24) !important; height: 4px !important; }

.db-stat-red {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(220, 38, 38, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.08) !important;
}
.db-stat-red::before { background: linear-gradient(90deg, #dc2626, #f87171) !important; height: 4px !important; }

.db-stat-purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(124, 58, 237, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.08) !important;
}
.db-stat-purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa) !important; height: 4px !important; }

.db-stat-indigo {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.08) !important;
}
.db-stat-indigo::before { background: linear-gradient(90deg, #4f46e5, #818cf8) !important; height: 4px !important; }

.db-stat-gold {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(180, 83, 9, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(180, 83, 9, 0.08) !important;
}
.db-stat-gold::before { background: linear-gradient(90deg, #b45309, #fbbf24) !important; height: 4px !important; }

.db-stat-cyan {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(14, 116, 144, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(14, 116, 144, 0.08) !important;
}
.db-stat-cyan::before { background: linear-gradient(90deg, #0e7490, #22d3ee) !important; height: 4px !important; }

.db-stat-teal2 {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(13, 148, 136, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.08) !important;
}
.db-stat-teal2::before { background: linear-gradient(90deg, #0d9488, #2dd4bf) !important; height: 4px !important; }

.db-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.db-stat-blue   .db-stat-icon { background: rgba(47, 92, 170, 0.15); color: var(--primary); }
.db-stat-teal   .db-stat-icon { background: rgba(8, 145, 178, 0.15); color: #0891b2; }
.db-stat-green  .db-stat-icon { background: rgba(22, 163, 74, 0.15); color: #16a34a; }
.db-stat-orange .db-stat-icon { background: rgba(217, 119, 6, 0.15); color: #d97706; }
.db-stat-red    .db-stat-icon { background: rgba(220, 38, 38, 0.15); color: #dc2626; }
.db-stat-purple .db-stat-icon { background: rgba(124, 58, 237, 0.15); color: #7c3aed; }
.db-stat-indigo .db-stat-icon { background: rgba(79, 70, 229, 0.15); color: #4f46e5; }
.db-stat-gold   .db-stat-icon { background: rgba(180, 83, 9, 0.15); color: #b45309; }
.db-stat-cyan   .db-stat-icon { background: rgba(14, 116, 144, 0.15); color: #0e7490; }
.db-stat-teal2  .db-stat-icon { background: rgba(13, 148, 136, 0.15); color: #0d9488; }

.db-stat-body { flex: 1; min-width: 0; }

.db-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.db-stat-val-sm {
    font-size: 15px;
    font-weight: 700;
}

.db-stats-row-alt .db-stat-card { padding: 10px 12px; }
.db-stats-row-alt .db-stat-icon { width: 32px; height: 32px; font-size: 15px; }
.db-stats-row-alt .db-stat-val  { font-size: 18px; }

.db-stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-stat-arr {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

/* ── CHARTS GRID ── */
.db-charts-grid {
    display: grid;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

/* 2-column × 2-row */
.db-charts-grid-2-2 {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(290px, 1fr);
}

/* 3:2 ratio left, small right — 2 rows with asymmetric first row */
.db-charts-grid-3-2 {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "a b"
        "c d";
}

.db-chart-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.db-chart-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.db-chart-head i {
    font-size: 15px;
    color: var(--accent);
}

.db-chart-body {
    flex: 1;
    min-height: 0;
    position: relative;
}

.db-chart-body canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Recent list panel */
.db-recent-card .db-chart-body {
    overflow-y: auto;
}

.db-recent-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    overflow-y: auto;
}

.db-recent-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    font-size: 11px;
}

.db-recent-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.db-recent-item-dot.verified  { background: #16a34a; }
.db-recent-item-dot.pending   { background: #d97706; }
.db-recent-item-dot.rejected  { background: #dc2626; }
.db-recent-item-dot.revision  { background: #7c3aed; }

.db-recent-item-info { flex: 1; min-width: 0; }

.db-recent-item-name {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-recent-item-meta {
    color: var(--text-muted);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-recent-status {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

.db-recent-status.v { background: #dcfce7; color: #16a34a; }
.db-recent-status.p { background: #fef9c3; color: #d97706; }
.db-recent-status.r { background: #fef2f2; color: #dc2626; }
.db-recent-status.rv { background: #f5f3ff; color: #7c3aed; }

.db-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 20px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .db-page.active {
        height: auto;
        overflow: visible;
    }
    .db-stats-row { flex-wrap: wrap; }
    .db-stat-card { flex: 1 1 calc(50% - 5px); }
    .db-charts-grid-2-2 { grid-template-columns: 1fr; grid-template-rows: auto; }
    .db-charts-grid-3-2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: "a" "b" "c" "d";
    }
    .db-charts-grid .db-chart-card { min-height: 240px; }
    .db-tabs { display: none !important; }
}

@media (max-width: 640px) {
    .db-stat-card { flex: 1 1 100%; }
    .db-stat-val { font-size: 18px; }
}

/* ── FILTER PILLS ── */
.db-chart-filter-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-left: auto;
}
.db-filter-pill {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    transition: all 0.15s;
    white-space: nowrap;
}
.db-filter-pill:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.db-filter-pill.active {
    background: var(--primary, #2563eb);
    color: #fff;
    border-color: var(--primary, #2563eb);
}

/* ── FULLSCREEN CHART ── */
.db-chart-card { position: relative; }
.db-fs-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #94a3b8);
    font-size: 16px;
    z-index: 2;
    line-height: 1;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s;
}
.db-fs-btn:hover { color: var(--primary, #2563eb); }
.db-chart-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1000;
    background: var(--bg-surface, #fff);
    border-radius: 0 !important;
    padding: 16px !important;
}

/* ── POPUP MODAL ── */
.db-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.db-popup-overlay.active { display: flex; }
.db-popup-box {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 95vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.db-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.db-popup-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
}
.db-popup-close:hover { background: #f1f5f9; color: #1e293b; }
.db-popup-table-wrap {
    overflow: auto;
    padding: 16px;
    flex: 1;
}
.db-popup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.db-popup-table th {
    background: #f8fafc;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.db-popup-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.db-popup-table tr:hover td { background: #f8fafc; }
.db-popup-badge {
    display: inline-block;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}
.db-popup-badge.aktif { background: #dcfce7; color: #166534; }
.db-popup-badge.nonaktif { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   GOOGLE GEMINI AESTHETICS & BRAND UPGRADES (YBM BRILiaN)
   ========================================================================== */

/* ── 1. GLOBAL LAYOUT & BACKGROUND ── */
body {
    background: #F8FAFC !important;
    position: relative;
    overflow-x: hidden;
}

/* Glowing background ambient lights (Gemini style) */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 197, 232, 0.08) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -100px;
    right: -100px;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 92, 170, 0.06) 0%, transparent 70%);
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
}

/* ── 2. GLASSMORPHISM HEADER & SIDEBAR ── */
.top-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01) !important;
}

.sidebar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(226, 232, 240, 0.7) !important;
}

/* ── 3. MODERNIZED NAVIGATION MENU ── */
.nav-item {
    margin: 4px 12px !important;
    border-radius: 12px !important;
    padding: 11px 16px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.nav-item:not(.active):hover {
    background: rgba(47, 92, 170, 0.06) !important;
    color: var(--primary) !important;
    transform: translateX(3px);
}

.nav-item.active {
    background: var(--gradient-primary-btn) !important;
    box-shadow: 0 8px 20px rgba(47, 92, 170, 0.2) !important;
}

.nav-parent.expanded {
    background: rgba(47, 92, 170, 0.06) !important;
    color: var(--primary) !important;
}

.nav-child {
    padding-left: 46px !important;
}

.nav-child::before {
    left: 28px !important;
    width: 6px !important;
    height: 6px !important;
    transition: all 0.3s ease !important;
}

.nav-child:hover::before {
    background: var(--cakrawala-blue) !important;
    box-shadow: 0 0 8px var(--mentari-blue);
}

/* ── 4. PREMIUM CARD DESIGNS & SHADOWS ── */
.form-card, .db-chart-card, .db-stat-card, .db-recent-card, .login-form-wrap, .modal-content {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px -5px rgba(47, 92, 170, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.form-card:hover, .db-chart-card:hover, .db-recent-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px -5px rgba(47, 92, 170, 0.08), 0 25px 50px -10px rgba(47, 92, 170, 0.04) !important;
    border-color: rgba(113, 197, 232, 0.4) !important;
}

/* Custom stats cards gradient glows */
.db-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
}
.db-stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

/* ── 5. FORM INPUTS & SELECTIONS ── */
.form-input, .form-select, .login-email-field {
    border-radius: 12px !important;
    border: 1.5px solid rgba(226, 232, 240, 0.8) !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-input:focus, .form-select:focus, .login-email-field:focus-within {
    background: #ffffff !important;
    border-color: var(--cakrawala-blue) !important;
    box-shadow: 0 0 0 4px rgba(48, 127, 226, 0.15) !important;
    outline: none !important;
}

/* ── 6. BUTTON MICRO-INTERACTIONS ── */
.btn {
    border-radius: 12px !important;
    padding: 11px 22px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease, background-color 0.2s !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
}

.btn:active {
    transform: translateY(1px) scale(0.97) !important;
}

.btn-primary {
    background: var(--gradient-primary-btn) !important;
    box-shadow: 0 6px 20px rgba(47, 92, 170, 0.25) !important;
    border: none !important;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(47, 92, 170, 0.35) !important;
}

.btn-secondary {
    border: 1.5px solid rgba(226, 232, 240, 0.8) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    color: var(--text-main) !important;
}

.btn-secondary:hover {
    background: #ffffff !important;
    border-color: rgba(226, 232, 240, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

/* ── 7. MODERN BLUR MODALS & POPUPS ── */
.modal-overlay {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background: rgba(15, 23, 42, 0.45) !important;
    transition: all 0.3s ease-in-out !important;
}

.modal-content {
    border-radius: 24px !important;
    transform: scale(0.96) !important;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease !important;
}

.modal-overlay[style*="display: flex"] .modal-content,
.modal-overlay[style*="display: block"] .modal-content,
.modal-overlay.active .modal-content {
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* ── 8. MODERN CLEAN TABLE DESIGN ── */
table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

table th {
    background: rgba(47, 92, 170, 0.05) !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    padding: 14px 16px !important;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8) !important;
}

table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5) !important;
    transition: background-color 0.2s ease !important;
}

table tr:hover td {
    background-color: rgba(47, 92, 170, 0.02) !important;
}

/* Custom banner upgrades */
.welcome-banner {
    border-radius: 20px !important;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(47, 92, 170, 0.15) !important;
}

.welcome-banner-bg {
    filter: brightness(0.95) saturate(1.1);
}

.welcome-icon-wrap {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

/* ── 9. SCROLLBARS ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(47, 92, 170, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 92, 170, 0.3);
}

/* ── 10. LOADING STATE ANIMATIONS ── */
.loading-inline, .db-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
}

.spinner-small, .db-loading-spinner {
    border: 3px solid rgba(47, 92, 170, 0.1);
    border-top-color: var(--cakrawala-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}