:root {
    --primary-color: #3b71ca; /* Adjust to match the blue in the design */
    --primary-gradient: linear-gradient(135deg, #4b8df8, #2a52be);
    --bg-color-left: #f3f6fc;
    --bg-color-right: #ffffff;
    --text-main: #1a1f36;
    --text-muted: #697386;
    --border-color: #e5e7eb;
    --input-bg: #ffffff;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 50px -10px rgba(59, 113, 202, 0.3);
    --bg-body: #eef2f6;
    --bg-container: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f8fafc;
    --bg-surface-hover: #f1f5f9;

    /* Nav Active Glow (Tema Terang / Light) */
    --nav-active-color: #1d4ed8;
    --nav-active-icon: #2563eb;
    --nav-active-bg: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.12) 100%);
    --nav-active-border: rgba(37, 99, 235, 0.28);
    --nav-active-beam: linear-gradient(90deg, transparent 0%, #2563eb 20%, #38bdf8 50%, #2563eb 80%, transparent 100%);
    --nav-active-glow: rgba(37, 99, 235, 0.50);
    --nav-active-glow-ambient: rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] {
    --primary-color: #4b8df8;
    --bg-color-left: #1a1a2e;
    --bg-color-right: #16213e;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --input-bg: #1e293b;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.5);
    --bg-body: #0f172a;
    --bg-container: #16213e;
    --bg-surface: #1e293b;
    --bg-surface-alt: #0f172a;
    --bg-surface-hover: #334155;

    /* Nav Active Glow (Tema Gelap / Dark Cyber Blue) */
    --nav-active-color: #38bdf8;
    --nav-active-icon: #38bdf8;
    --nav-active-bg: linear-gradient(180deg, rgba(56, 189, 248, 0.07) 0%, rgba(56, 189, 248, 0.18) 100%);
    --nav-active-border: rgba(56, 189, 248, 0.38);
    --nav-active-beam: linear-gradient(90deg, transparent 0%, #38bdf8 20%, #e0f2fe 50%, #38bdf8 80%, transparent 100%);
    --nav-active-glow: #38bdf8;
    --nav-active-glow-ambient: rgba(56, 189, 248, 0.32);
}

/* =========================================================
   PRESET THEMES (PILIHAN TEMA TAMPILAN)
   ========================================================= */

/* 1. Emerald Oasis - Nuansa Hijau Zamrud Sejuk & Segar */
[data-theme="emerald"] {
    --primary-color: #10b981;
    --primary-gradient: linear-gradient(135deg, #10b981, #047857);
    --bg-color-left: #062419;
    --bg-color-right: #0d3627;
    --text-main: #ecfdf5;
    --text-muted: #6ee7b7;
    --border-color: #16533c;
    --input-bg: #0d3627;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.6);
    --shadow-hover: 0 15px 50px -10px rgba(16, 185, 129, 0.4);
    --bg-body: #051a12;
    --bg-container: #0b2e21;
    --bg-surface: #0e3b2b;
    --bg-surface-alt: #082419;
    --bg-surface-hover: #154c38;

    /* Nav Active Glow (Emerald) */
    --nav-active-color: #34d399;
    --nav-active-icon: #34d399;
    --nav-active-bg: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.22) 100%);
    --nav-active-border: rgba(16, 185, 129, 0.42);
    --nav-active-beam: linear-gradient(90deg, transparent 0%, #10b981 20%, #a7f3d0 50%, #10b981 80%, transparent 100%);
    --nav-active-glow: #10b981;
    --nav-active-glow-ambient: rgba(16, 185, 129, 0.32);
}

/* 2. Ocean Sapphire - Nuansa Biru Samudra Instansi */
[data-theme="ocean"] {
    --primary-color: #0ea5e9;
    --primary-gradient: linear-gradient(135deg, #38bdf8, #0369a1);
    --bg-color-left: #081d33;
    --bg-color-right: #0f2c4a;
    --text-main: #f0f9ff;
    --text-muted: #7dd3fc;
    --border-color: #1e456d;
    --input-bg: #0e2b49;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.6);
    --shadow-hover: 0 15px 50px -10px rgba(14, 165, 233, 0.4);
    --bg-body: #061526;
    --bg-container: #0b243e;
    --bg-surface: #0f2f52;
    --bg-surface-alt: #081c31;
    --bg-surface-hover: #163d66;

    /* Nav Active Glow (Ocean) */
    --nav-active-color: #38bdf8;
    --nav-active-icon: #38bdf8;
    --nav-active-bg: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0.22) 100%);
    --nav-active-border: rgba(14, 165, 233, 0.42);
    --nav-active-beam: linear-gradient(90deg, transparent 0%, #0ea5e9 20%, #bae6fd 50%, #0ea5e9 80%, transparent 100%);
    --nav-active-glow: #0ea5e9;
    --nav-active-glow-ambient: rgba(14, 165, 233, 0.32);
}

/* 3. Warm Latte / Sepia - Krem & Kopi Lembut di Mata */
[data-theme="latte"] {
    --primary-color: #b45309;
    --primary-gradient: linear-gradient(135deg, #d97706, #92400e);
    --bg-color-left: #f5ebe0;
    --bg-color-right: #fbf7f2;
    --text-main: #2d1f14;
    --text-muted: #7c6853;
    --border-color: #dfd1c0;
    --input-bg: #fffcf7;
    --shadow-soft: 0 10px 30px -10px rgba(78, 52, 34, 0.12);
    --shadow-hover: 0 15px 50px -10px rgba(180, 83, 9, 0.25);
    --bg-body: #f4ecdf;
    --bg-container: #fdfbf7;
    --bg-surface: #ffffff;
    --bg-surface-alt: #eee4d4;
    --bg-surface-hover: #e6dac6;

    /* Nav Active Glow (Latte) */
    --nav-active-color: #78350f;
    --nav-active-icon: #b45309;
    --nav-active-bg: linear-gradient(180deg, rgba(180, 83, 9, 0.07) 0%, rgba(180, 83, 9, 0.16) 100%);
    --nav-active-border: rgba(180, 83, 9, 0.35);
    --nav-active-beam: linear-gradient(90deg, transparent 0%, #b45309 20%, #fde68a 50%, #b45309 80%, transparent 100%);
    --nav-active-glow: rgba(180, 83, 9, 0.50);
    --nav-active-glow-ambient: rgba(180, 83, 9, 0.18);
}

/* 4. Royal Violet - Ungu Amethyst Mewah & Futuristik */
[data-theme="violet"] {
    --primary-color: #a855f7;
    --primary-gradient: linear-gradient(135deg, #c084fc, #7e22ce);
    --bg-color-left: #180d2b;
    --bg-color-right: #251442;
    --text-main: #faf5ff;
    --text-muted: #d8b4fe;
    --border-color: #3b2064;
    --input-bg: #23133e;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.6);
    --shadow-hover: 0 15px 50px -10px rgba(168, 85, 247, 0.4);
    --bg-body: #11091f;
    --bg-container: #1c0e33;
    --bg-surface: #261445;
    --bg-surface-alt: #160b29;
    --bg-surface-hover: #361c61;

    /* Nav Active Glow (Violet) */
    --nav-active-color: #c084fc;
    --nav-active-icon: #c084fc;
    --nav-active-bg: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, rgba(168, 85, 247, 0.22) 100%);
    --nav-active-border: rgba(168, 85, 247, 0.42);
    --nav-active-beam: linear-gradient(90deg, transparent 0%, #a855f7 20%, #f3e8ff 50%, #a855f7 80%, transparent 100%);
    --nav-active-glow: #a855f7;
    --nav-active-glow-ambient: rgba(168, 85, 247, 0.32);
}

/* 5. Sunset Fiesta - Colorful, Fun, Energetik Rose-Coral & Neon Orange */
[data-theme="sunset"] {
    --primary-color: #f43f5e;
    --primary-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 45%, #f97316 100%);
    --bg-color-left: #1e0b25;
    --bg-color-right: #2d1038;
    --text-main: #fff1f2;
    --text-muted: #f472b6;
    --border-color: #4a195c;
    --input-bg: #291034;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.65);
    --shadow-hover: 0 15px 50px -10px rgba(244, 63, 94, 0.45);
    --bg-body: #16081c;
    --bg-container: #220e2c;
    --bg-surface: #2c1238;
    --bg-surface-alt: #1a0a22;
    --bg-surface-hover: #3d194d;

    /* Nav Active Glow (Sunset Fiesta) */
    --nav-active-color: #fb7185;
    --nav-active-icon: #fb7185;
    --nav-active-bg: linear-gradient(180deg, rgba(244, 63, 94, 0.10) 0%, rgba(249, 115, 22, 0.22) 100%);
    --nav-active-border: rgba(244, 63, 94, 0.48);
    --nav-active-beam: linear-gradient(90deg, transparent 0%, #f43f5e 20%, #fdba74 50%, #f43f5e 80%, transparent 100%);
    --nav-active-glow: #f43f5e;
    --nav-active-glow-ambient: rgba(244, 63, 94, 0.35);
}

/* 6. Tropical Mint - Fresh, Fun, Colorful Aqua-Cyan & Lime Mint */
[data-theme="tropical"] {
    --primary-color: #06b6d4;
    --primary-gradient: linear-gradient(135deg, #06b6d4 0%, #10b981 50%, #84cc16 100%);
    --bg-color-left: #062322;
    --bg-color-right: #0b3836;
    --text-main: #f0fdfa;
    --text-muted: #5eead4;
    --border-color: #135552;
    --input-bg: #093230;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.65);
    --shadow-hover: 0 15px 50px -10px rgba(6, 182, 212, 0.45);
    --bg-body: #031716;
    --bg-container: #082827;
    --bg-surface: #0c3836;
    --bg-surface-alt: #051d1c;
    --bg-surface-hover: #124c49;

    /* Nav Active Glow (Tropical Mint) */
    --nav-active-color: #2dd4bf;
    --nav-active-icon: #2dd4bf;
    --nav-active-bg: linear-gradient(180deg, rgba(6, 182, 212, 0.10) 0%, rgba(16, 185, 129, 0.22) 100%);
    --nav-active-border: rgba(6, 182, 212, 0.48);
    --nav-active-beam: linear-gradient(90deg, transparent 0%, #06b6d4 20%, #a7f3d0 50%, #06b6d4 80%, transparent 100%);
    --nav-active-glow: #06b6d4;
    --nav-active-glow-ambient: rgba(6, 182, 212, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body); /* Outer background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
    transition: background-color 0.3s, color 0.3s;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 800px;
    max-height: 95vh;
    background: var(--bg-container);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: background 0.3s;
}

/* LEFT PANEL */
.branding-panel {
    flex: 1;
    background-color: var(--bg-color-left);
    position: relative;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

/* Decorative abstract background shapes */
.branding-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 113, 202, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.branding-panel::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 113, 202, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 14px;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.logo-icon::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 4px;
    top: 12px;
    left: 12px;
}
.logo-icon.has-custom-img {
    background-color: transparent !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}
.logo-icon.has-custom-img::after {
    display: none !important;
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
}

.welcome-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-text h1 span {
    color: var(--primary-color);
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 80%;
}

/* Dashboard Mockup (CSS only) */
.dashboard-mockup {
    margin-top: 3rem;
    background: var(--bg-surface);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
    height: 280px;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transform: perspective(1000px) rotateX(2deg);
    border-bottom: 5px solid var(--border-color);
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 34px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-surface-hover);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.mockup-header .search-mock {
    width: 120px;
    height: 14px;
    background: var(--bg-surface-hover);
    border-radius: 4px;
}
.mockup-header .profile-mock {
    display: flex;
    gap: 8px;
    align-items: center;
}
.mockup-header .profile-mock .bell {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-color);
}
.mockup-header .profile-mock .avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
}

.mockup-sidebar {
    width: 90px;
    background: var(--bg-surface);
    border-right: 1px solid var(--bg-surface-hover);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mockup-sidebar .logo-mock {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    width: 100%;
    padding-left: 10px;
}
.mockup-sidebar .logo-mock .icon {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 4px;
}
.mockup-sidebar .logo-mock .text {
    width: 40px;
    height: 8px;
    background: var(--text-main);
    border-radius: 4px;
}

.sidebar-item {
    width: 85%;
    height: 20px;
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 6px;
}
.sidebar-item .icon {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 2px;
}
.sidebar-item .text {
    width: 35px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
}
.sidebar-item.active {
    background: rgba(59, 113, 202, 0.08);
}
.sidebar-item.active .icon, .sidebar-item.active .text {
    background: var(--primary-color);
}

.mockup-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-surface-alt);
}

.mockup-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.mockup-stats {
    display: flex;
    gap: 10px;
}

.stat-box {
    flex: 1;
    background: var(--bg-surface);
    padding: 12px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.stat-box .stat-title {
    font-size: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.stat-box .stat-value {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.stat-box .badge {
    font-size: 0.45rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
}
.badge.green {
    background: #dcfce7;
    color: #166534;
}
.badge.red {
    background: #fee2e2;
    color: #b91c1c;
}

.mockup-table-area {
    flex: 1;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mockup-table-area .table-title {
    font-size: 0.65rem;
    font-weight: 600;
}
.mockup-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg-surface-hover);
}
.mockup-table-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.mockup-table-row .col {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
}
.mockup-table-row .col-1 { width: 45%; }
.mockup-table-row .col-2 { width: 25%; }
.mockup-table-row .col-3 { width: 15%; background: rgba(22, 163, 74, 0.2); }
.mockup-table-row.yellow .col-3 { background: rgba(202, 138, 4, 0.2); }

/* Secure Badge */
.secure-badge {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    max-width: 320px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-shrink: 0;
}
.badge-icon svg { width: 20px; height: 20px; }

.badge-text h4 {
    font-size: 0.875rem;
    margin-bottom: 2px;
}
.badge-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* RIGHT PANEL */
.login-panel {
    flex: 1.2;
    background: var(--bg-color-right);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.form-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 2.5rem;
}
.form-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 113, 202, 0.1);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
}
.toggle-password svg {
    width: 18px;
    height: 18px;
}
.toggle-password:hover {
    color: var(--text-main);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-main);
}
.remember-me input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 113, 202, 0.2);
}
.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}
.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.divider span {
    padding: 0 16px;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
}

.btn-social {
    flex: 1;
    padding: 10px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}
.btn-social:hover {
    background: var(--bg-surface-hover);
}
.btn-social svg {
    width: 18px;
    height: 18px;
}

.signup-prompt {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.signup-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.signup-prompt a:hover {
    text-decoration: underline;
}

.login-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        border-radius: 0;
    }
    
    .branding-panel {
        display: none; /* Hide on mobile to focus on form */
    }
    
    .login-panel {
        padding: 2rem;
    }
    
    .login-footer {
        position: relative;
        bottom: auto;
        margin-top: 3rem;
    }
}

/* =========================================
   DASHBOARD STYLES
   ========================================= */

.dashboard-body {
    background-color: var(--bg-body);
    padding: 0;
    margin: 0;
    align-items: flex-start;
}

.dashboard-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    height: 85px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-header .logo-icon.small {
    width: 58px;
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
}
.sidebar-header .logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 12px 4px;
    opacity: 0.7;
    user-select: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}
.nav-item,
.nav-item:visited {
    color: var(--text-muted);
}
.nav-item svg {
    width: 18px;
    height: 18px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.nav-item:hover,
.nav-item:hover:visited {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}
.nav-item:hover svg {
    color: var(--nav-active-icon, var(--primary-color));
}

/* =========================================================
   SQUIRCLE ICON BOX MODERN UNTUK SETIAP MENU SIDEBAR
   ========================================================= */
.nav-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
.nav-icon-box svg {
    width: 17px !important;
    height: 17px !important;
    color: inherit;
    transition: all 0.25s ease;
}
.submenu-item .nav-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.submenu-item .nav-icon-box svg {
    width: 14px !important;
    height: 14px !important;
}

/* Interaksi Hover & Aktif pada Icon Box */
.nav-item:hover .nav-icon-box {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.nav-item.active .nav-icon-box {
    transform: scale(1.08);
    box-shadow: 0 0 14px var(--nav-active-glow-ambient);
    filter: brightness(1.15);
}

/* Palet Warna Signature Masing-Masing Menu */
.icon-box-dashboard {
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.icon-box-laporan {
    background: rgba(244, 63, 94, 0.14);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.25);
}
.icon-box-kwitansi {
    background: rgba(6, 182, 212, 0.14);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.25);
}
.icon-box-nota {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.icon-box-gaji {
    background: rgba(168, 85, 247, 0.14);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.icon-box-tagihan {
    background: rgba(234, 179, 8, 0.14);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.25);
}
.icon-box-sppd {
    background: rgba(2, 132, 199, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(2, 132, 199, 0.3);
}
.icon-box-download {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.icon-box-checker {
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.icon-box-akun {
    background: rgba(217, 70, 239, 0.14);
    color: #e879f9;
    border: 1px solid rgba(217, 70, 239, 0.25);
}
.icon-box-pengaturan {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.icon-box-logout {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Penyesuaian Mode Terang (Light Mode & Latte) agar kontras tetap tajam */
[data-theme="light"] .icon-box-dashboard,
body:not([data-theme]) .icon-box-dashboard { color: #2563eb; background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.25); }
[data-theme="light"] .icon-box-laporan,
body:not([data-theme]) .icon-box-laporan { color: #e11d48; background: rgba(225, 29, 72, 0.12); border-color: rgba(225, 29, 72, 0.25); }
[data-theme="light"] .icon-box-kwitansi,
body:not([data-theme]) .icon-box-kwitansi { color: #0891b2; background: rgba(8, 145, 178, 0.12); border-color: rgba(8, 145, 178, 0.25); }
[data-theme="light"] .icon-box-nota,
body:not([data-theme]) .icon-box-nota { color: #d97706; background: rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.25); }
[data-theme="light"] .icon-box-gaji,
body:not([data-theme]) .icon-box-gaji { color: #9333ea; background: rgba(147, 51, 234, 0.12); border-color: rgba(147, 51, 234, 0.25); }
[data-theme="light"] .icon-box-tagihan,
body:not([data-theme]) .icon-box-tagihan { color: #ca8a04; background: rgba(202, 138, 4, 0.12); border-color: rgba(202, 138, 4, 0.25); }
[data-theme="light"] .icon-box-sppd,
body:not([data-theme]) .icon-box-sppd { color: #0284c7; background: rgba(2, 132, 199, 0.12); border-color: rgba(2, 132, 199, 0.25); }
[data-theme="light"] .icon-box-download,
body:not([data-theme]) .icon-box-download { color: #059669; background: rgba(5, 150, 105, 0.12); border-color: rgba(5, 150, 105, 0.25); }
[data-theme="light"] .icon-box-checker,
body:not([data-theme]) .icon-box-checker { color: #4f46e5; background: rgba(79, 70, 229, 0.12); border-color: rgba(79, 70, 229, 0.25); }
[data-theme="light"] .icon-box-akun,
body:not([data-theme]) .icon-box-akun { color: #c026d3; background: rgba(192, 38, 211, 0.12); border-color: rgba(192, 38, 211, 0.25); }
[data-theme="light"] .icon-box-pengaturan,
body:not([data-theme]) .icon-box-pengaturan { color: #475569; background: rgba(71, 85, 105, 0.12); border-color: rgba(71, 85, 105, 0.25); }
[data-theme="light"] .icon-box-logout,
body:not([data-theme]) .icon-box-logout { color: #dc2626; background: rgba(220, 38, 38, 0.12); border-color: rgba(220, 38, 38, 0.25); }

/* =========================================================
   EFEK CAHAYA MENYALA DI BAWAH TEKS MENU AKTIF (GLOW EFFECT)
   Disesuaikan otomatis dan tajam di setiap tema (tidak samar)
   ========================================================= */
.nav-item.active,
.nav-item.active:visited {
    background: var(--nav-active-bg) !important;
    color: var(--nav-active-color) !important;
    font-weight: 600;
    border: 1px solid var(--nav-active-border);
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.12),
        inset 0 -4px 10px -2px var(--nav-active-glow-ambient);
    letter-spacing: 0.01em;
}

/* Pendaran cahaya lembut (ambient light glow) tepat di bawah teks */
.nav-item.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    width: 84%;
    height: 55%;
    background: radial-gradient(ellipse at bottom, var(--nav-active-glow-ambient) 0%, transparent 75%);
    border-radius: 0 0 8px 8px;
    pointer-events: none;
    filter: blur(4px);
    animation: navAmbientGlow 2.5s infinite alternate ease-in-out;
}

/* Garis sorot neon menyala di dasar menu */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: var(--nav-active-beam);
    border-radius: 999px;
    box-shadow: 
        0 0 6px var(--nav-active-glow),
        0 0 14px var(--nav-active-glow),
        0 -2px 8px var(--nav-active-glow-ambient);
    animation: navLightBeam 2.5s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: 2;
}

.nav-item.active svg {
    color: var(--nav-active-icon, var(--primary-color)) !important;
    filter: drop-shadow(0 0 6px var(--nav-active-glow-ambient));
    transform: scale(1.06);
}

/* Khusus Submenu yang Aktif */
.submenu-item.active,
.submenu-item.active:visited {
    font-weight: 600;
    color: var(--nav-active-color) !important;
    background: var(--nav-active-bg) !important;
    border: 1px solid var(--nav-active-border);
}
.submenu-item.active::after {
    left: 10px;
    right: 10px;
    height: 2px;
}
.submenu-item.active::before {
    left: 5%;
    width: 90%;
    height: 55%;
}

@keyframes navLightBeam {
    0% {
        opacity: 0.82;
        transform: scaleX(0.96);
        box-shadow: 
            0 0 5px var(--nav-active-glow),
            0 0 10px var(--nav-active-glow),
            0 -1px 6px var(--nav-active-glow-ambient);
    }
    100% {
        opacity: 1;
        transform: scaleX(1.02);
        box-shadow: 
            0 0 8px var(--nav-active-glow),
            0 0 18px var(--nav-active-glow),
            0 -3px 12px var(--nav-active-glow-ambient);
    }
}

@keyframes navAmbientGlow {
    0% {
        opacity: 0.65;
        transform: scaleY(0.9);
    }
    100% {
        opacity: 1;
        transform: scaleY(1.1);
    }
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}
.text-danger {
    color: #ef4444;
}
.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.topbar {
    height: 70px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface-hover);
    padding: 7px 14px;
    border-radius: 10px;
    width: 320px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.search-bar:hover {
    border-color: var(--primary-color);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(59, 113, 202, 0.12);
}
.search-bar svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}
.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    width: 100%;
    color: var(--text-main);
    font-size: 0.88rem;
}
.search-kbd-hint {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 2px 6px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}
.notification-icon-wrapper {
    position: relative;
}
.notification-icon {
    position: relative;
    color: var(--text-muted);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.notification-icon:hover {
    background: var(--bg-surface-hover);
    color: var(--primary-color);
}
.notification-icon svg {
    width: 22px;
    height: 22px;
}
.notification-icon .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    animation: notifPulse 2.5s infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* ============================================================
   NOTIFICATION DROPDOWN PANEL
   ============================================================ */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -10px;
    width: 380px;
    max-width: 90vw;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dropSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.notification-dropdown.active {
    display: flex;
}
@keyframes dropSlide {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.notif-dropdown-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
}
.notif-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}
.notif-count-pill {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
}
.notif-header-actions {
    display: flex;
    gap: 6px;
}
.notif-btn-action {
    background: transparent;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.notif-btn-action:hover {
    background: var(--bg-surface-hover);
}
.notif-btn-clear {
    color: var(--text-muted);
}
.notif-btn-clear:hover {
    color: #ef4444;
}

.notif-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}
.notif-tab {
    background: var(--bg-surface-alt);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.notif-tab:hover {
    color: var(--text-main);
}
.notif-tab.active {
    background: var(--primary-color);
    color: white;
}

.notif-list-container {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px 0;
}
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item:hover {
    background: var(--bg-surface-hover);
}
.notif-item.unread {
    background: rgba(59, 113, 202, 0.05);
}
.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}
.notif-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-icon-box svg {
    width: 18px;
    height: 18px;
}
.notif-icon-box.alert-danger { background: #fee2e2; color: #dc2626; }
.notif-icon-box.alert-warning { background: #fef3c7; color: #d97706; }
.notif-icon-box.alert-info { background: #e0f2fe; color: #0284c7; }
.notif-icon-box.alert-success { background: #dcfce7; color: #16a34a; }
.notif-icon-box.alert-activity { background: #ede9fe; color: #7c3aed; }

.notif-item-body {
    flex: 1;
    min-width: 0;
}
.notif-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
    line-height: 1.3;
}
.notif-item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 6px;
}
.notif-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.notif-item-action-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.notif-item-action-link:hover {
    text-decoration: underline;
}

.notif-empty-state {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted);
}
.notif-empty-state svg {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.notif-dropdown-footer {
    padding: 10px 18px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   SPOTLIGHT GLOBAL SEARCH MODAL (Ctrl + K)
   ============================================================ */
.spotlight-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    animation: fadeIn 0.15s ease-out;
}
.spotlight-modal-overlay.active {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spotlight-modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 680px;
    max-width: 92vw;
    max-height: 80vh;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoomInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes zoomInModal {
    from { opacity: 0; transform: scale(0.96) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.spotlight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}
.spotlight-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    flex-shrink: 0;
}
.spotlight-header input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--text-main);
}
.spotlight-header input::placeholder {
    color: var(--text-muted);
}
.spotlight-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.spotlight-clear-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}
.spotlight-clear-btn svg {
    width: 16px;
    height: 16px;
}
.spotlight-esc-hint {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
}
.spotlight-esc-hint:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}

.spotlight-categories-bar {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}
.spotlight-cat-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.spotlight-cat-pill:hover {
    color: var(--text-main);
    border-color: var(--primary-color);
}
.spotlight-cat-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(59, 113, 202, 0.3);
}

.spotlight-results-container {
    padding: 10px 14px;
    max-height: 52vh;
    overflow-y: auto;
}
.spotlight-section-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 8px 12px 4px 12px;
}
.spotlight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 4px;
}
.spotlight-item:hover, .spotlight-item.selected {
    background: var(--bg-surface-hover);
}
.spotlight-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.spotlight-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.spotlight-item-icon.icon-menu { background: #e0f2fe; color: #0284c7; }
.spotlight-item-icon.icon-kwitansi { background: #dbeafe; color: #2563eb; }
.spotlight-item-icon.icon-nota { background: #fef3c7; color: #d97706; }
.spotlight-item-icon.icon-gaji { background: #dcfce7; color: #16a34a; }
.spotlight-item-icon svg { width: 18px; height: 18px; }

.spotlight-item-details {
    flex: 1;
    min-width: 0;
}
.spotlight-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spotlight-item-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.spotlight-highlight {
    background: rgba(245, 158, 11, 0.25);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 700;
}

.spotlight-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.spotlight-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.spotlight-btn-action {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.spotlight-btn-action:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.spotlight-btn-action.btn-secondary {
    color: var(--text-muted);
}

.spotlight-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}
.spotlight-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    opacity: 0.4;
}

.spotlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.spotlight-footer-shortcuts {
    display: flex;
    gap: 12px;
}
.spotlight-footer-shortcuts kbd {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 4px;
}

/* ============================================================
   TOAST NOTIFICATION CONTAINER
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-card {
    pointer-events: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 420px;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.2s ease;
}
.toast-card.toast-hide {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
}
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.toast-card.toast-success .toast-icon { color: #16a34a; }
.toast-card.toast-error .toast-icon { color: #ef4444; }
.toast-card.toast-warning .toast-icon { color: #f59e0b; }
.toast-card.toast-info .toast-icon { color: #3b82f6; }
.toast-msg {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
    flex: 1;
}

.avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.content-area {
    padding: 32px;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat-card[onclick],
.stat-card.clickable {
    cursor: pointer;
}
.stat-card[onclick]:hover,
.stat-card.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -5px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}
/* =========================================================
   APPLE-STYLE 3D PARALLAX TILT MONTH CARDS
   ========================================================= */
#download-months-grid,
.month-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    margin-bottom: 32px;
    perspective: 1200px;
}

@media (max-width: 1100px) {
    #download-months-grid,
    .month-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    #download-months-grid,
    .month-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    #download-months-grid,
    .month-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* Staggered Wave Entrance Animation */
@keyframes monthCardStaggerIn {
    0% {
        opacity: 0;
        transform: perspective(1000px) translateY(28px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) translateY(0) scale(1);
    }
}

.month-card.month-tilt-card {
    position: relative;
    padding: 22px 20px;
    min-height: 160px;
    border-radius: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
    animation: monthCardStaggerIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--card-index, 1) * 35ms);
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Dark theme / Custom themes styling for month card */
[data-theme="dark"] .month-card.month-tilt-card,
[data-theme="ocean"] .month-card.month-tilt-card,
[data-theme="emerald"] .month-card.month-tilt-card,
[data-theme="violet"] .month-card.month-tilt-card,
[data-theme="sunset"] .month-card.month-tilt-card,
[data-theme="tropical"] .month-card.month-tilt-card {
    background: linear-gradient(150deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 
        0 14px 35px -6px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* Hover dynamic elevation */
.month-card.month-tilt-card:hover {
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 
        0 22px 45px -8px rgba(0, 0, 0, 0.75),
        0 0 25px rgba(56, 189, 248, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .month-card.month-tilt-card:hover,
body:not([data-theme]) .month-card.month-tilt-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 18px 36px -8px rgba(37, 99, 235, 0.22);
}

/* Active click press */
.month-card.month-tilt-card:active {
    transform: perspective(1000px) scale3d(0.96, 0.96, 0.96) translateY(2px) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Flashlight Specular Shine Layer */
.month-card-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    z-index: 4;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* Ambient Radial Glow */
.month-card-glow {
    position: absolute;
    inset: -30%;
    border-radius: inherit;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.month-card.tahap-1 .month-card-glow {
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.35) 0%, rgba(59, 130, 246, 0.12) 50%, transparent 75%);
}

.month-card.tahap-2 .month-card-glow {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.35) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 75%);
}

.month-card.month-tilt-card:hover .month-card-glow {
    opacity: 1;
}

/* Card Inner & 3D Layering */
.month-card-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    pointer-events: none;
}

.month-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(28px);
    margin-bottom: 12px;
}

.month-tahap-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.month-tahap-pill.tahap-1 {
    background: rgba(14, 165, 233, 0.15);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

[data-theme="dark"] .month-tahap-pill.tahap-1,
[data-theme="ocean"] .month-tahap-pill.tahap-1,
[data-theme="emerald"] .month-tahap-pill.tahap-1,
[data-theme="violet"] .month-tahap-pill.tahap-1,
[data-theme="sunset"] .month-tahap-pill.tahap-1,
[data-theme="tropical"] .month-tahap-pill.tahap-1 {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
}

.month-tahap-pill.tahap-2 {
    background: rgba(168, 85, 247, 0.15);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

[data-theme="dark"] .month-tahap-pill.tahap-2,
[data-theme="ocean"] .month-tahap-pill.tahap-2,
[data-theme="emerald"] .month-tahap-pill.tahap-2,
[data-theme="violet"] .month-tahap-pill.tahap-2,
[data-theme="sunset"] .month-tahap-pill.tahap-2,
[data-theme="tropical"] .month-tahap-pill.tahap-2 {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.15);
    border-color: rgba(192, 132, 252, 0.35);
}

.month-num {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    opacity: 0.38;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
    transform: translateZ(32px);
}

.month-card-body {
    transform: translateZ(32px);
    margin: 4px 0 14px 0;
}

.month-card .month-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

[data-theme="dark"] .month-card .month-name,
[data-theme="ocean"] .month-card .month-name,
[data-theme="emerald"] .month-card .month-name,
[data-theme="violet"] .month-card .month-name,
[data-theme="sunset"] .month-card .month-name,
[data-theme="tropical"] .month-card .month-name {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.month-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
}

.month-card-footer {
    transform: translateZ(24px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .month-card-footer,
body:not([data-theme]) .month-card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.month-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.month-btn-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.month-card.month-tilt-card:hover .month-btn-link {
    transform: translateX(4px);
    color: #38bdf8;
}

.month-card.month-tilt-card:hover .month-btn-link svg {
    transform: translateX(3px);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card .stat-icon svg {
    width: 24px;
    height: 24px;
}
.stat-details h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}
.stat-details h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.trend {
    font-size: 0.75rem;
    font-weight: 500;
}
.trend.positive { color: #16a34a; }
.trend.negative { color: #dc2626; }

.recent-activity {
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    padding: 24px;
}
.recent-activity h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.table-container {
    overflow-x: auto;
    width: 100%;
}
.table-container table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.table-container th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    background: var(--bg-surface-alt);
}
.table-container td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
    vertical-align: middle;
}
.table-container tr:last-child td {
    border-bottom: none;
}
.table-container td.col-nowrap {
    white-space: nowrap;
}

/* =========================================================
   Table Bordered Grid (Garis Halus Pemisah Kolom & Baris)
   ========================================================= */
#sppd-table,
#download-sppd-table,
.table-bordered-grid {
    border-collapse: collapse;
    width: 100%;
}

#sppd-table th,
#sppd-table td,
#download-sppd-table th,
#download-sppd-table td,
.table-bordered-grid th,
.table-bordered-grid td {
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

#sppd-table th:last-child,
#sppd-table td:last-child,
#sppd-table td[colspan],
#download-sppd-table th:last-child,
#download-sppd-table td:last-child,
#download-sppd-table td[colspan],
.table-bordered-grid th:last-child,
.table-bordered-grid td:last-child,
.table-bordered-grid td[colspan] {
    border-right: none;
}

#sppd-table tr:last-child td,
#download-sppd-table tr:last-child td,
.table-bordered-grid tr:last-child td {
    border-bottom: none;
}

#sppd-table tbody tr:hover,
#download-sppd-table tbody tr:hover,
.table-bordered-grid tbody tr:hover {
    background-color: var(--bg-surface-hover);
    transition: background-color 0.15s ease;
}

/* Modern Action Button Group in Tables */
.table-action-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-table-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none !important;
    white-space: nowrap;
    font-family: inherit;
}
.btn-table-action svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.btn-table-action.btn-edit {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.25);
}
.btn-table-action.btn-edit:hover {
    background: #f59e0b;
    color: #ffffff !important;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
.btn-table-action.btn-preview {
    background: rgba(59, 113, 202, 0.12);
    color: #3b71ca;
    border-color: rgba(59, 113, 202, 0.25);
}
.btn-table-action.btn-preview:hover {
    background: #3b71ca;
    color: #ffffff !important;
    border-color: #3b71ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 113, 202, 0.3);
}
.btn-table-action.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}
.btn-table-action.btn-delete:hover {
    background: #ef4444;
    color: #ffffff !important;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

#kwitansi-list-section .card-container,
#nota-list-section .card-container,
#gaji-list-section .card-container,
#tagihan-list-section .card-container,
#sppd-list-section .card-container,
#download-section .card-container,
.card-container.table-card-full {
    max-width: 100% !important;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.status-badge.success { background: #dcfce7; color: #166534; }
.status-badge.pending { background: #fef08a; color: #854d0e; }

/* Dashboard Interactions & Forms */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}
.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.has-submenu {
    cursor: pointer;
}
.chevron {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.2s;
    margin-left: auto;
}
.has-submenu.open .chevron {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 10px;
    gap: 3px;
    margin-bottom: 6px;
    position: relative;
}
.submenu.active {
    display: flex;
}
/* Garis Pohon Vertikal Penghubung Submenu */
.submenu::before {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 14px;
    left: 27px;
    width: 2px;
    background: linear-gradient(180deg, var(--border-color) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 999px;
    pointer-events: none;
}
.submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px 7px 22px !important;
    font-size: 0.86rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}
/* Cabang Horizontal Pohon */
.submenu-item::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 50%;
    width: 9px;
    height: 2px;
    background: var(--border-color);
    border-radius: 999px;
    transform: translateY(-50%);
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.2s ease;
}
.submenu-item:hover::before,
.submenu-item.active::before {
    background: var(--nav-active-icon, var(--primary-color));
    opacity: 1;
    width: 11px;
}
.submenu-item svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.submenu-item:hover svg {
    opacity: 1;
    color: var(--nav-active-icon, var(--primary-color));
}
.submenu-item.active svg {
    opacity: 1;
    color: var(--nav-active-icon, var(--primary-color)) !important;
    filter: drop-shadow(0 0 6px var(--nav-active-glow-ambient));
}

/* =========================================================
   PENGATURAN APLIKASI - COMPACT STANDARD SETTINGS LIST
   Tampilan pengaturan standar yang ringkas, rapi, dan padat
   ========================================================= */
.settings-standard-container {
    max-width: 1180px;
    margin-top: 4px;
}

.settings-standard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 16px;
    align-items: start;
}

/* ============================================================
   3D GLASS RING CAROUSEL - SETTINGS SHOWCASE (Code with Nazia Style)
   ============================================================ */
.settings-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #60a5fa;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-badge-top .badge-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
    animation: badgePulseDot 1.8s infinite ease-in-out;
}

@keyframes badgePulseDot {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.25); }
}

.settings-view-toggle {
    display: inline-flex;
    padding: 4px;
    background: var(--bg-surface-secondary, rgba(30, 41, 59, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    gap: 4px;
}

.btn-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view-toggle:hover {
    color: var(--text-primary);
}

.btn-view-toggle.active {
    background: var(--primary, #3b82f6);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

/* 3D Carousel Stage */
.carousel-3d-stage {
    position: relative;
    width: 100%;
    height: 520px;
    margin-bottom: 24px;
    perspective: 1700px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 45%, #1e293b 0%, #0f172a 70%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.carousel-3d-glow-ambient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

/* 3D Container & Ring */
.carousel-3d-container {
    position: relative;
    width: 250px;
    height: 350px;
    transform-style: preserve-3d;
    z-index: 2;
}

.carousel-3d-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    cursor: grab;
    touch-action: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-3d-ring.is-dragging {
    cursor: grabbing !important;
}

/* 3D Glassmorphism Card (Semi-transparent Frosted Glass) */
.carousel-3d-card {
    position: absolute;
    width: 250px;
    height: 350px;
    left: 0;
    top: 0;
    border-radius: 22px;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    cursor: pointer;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.16) 0%, 
        rgba(255, 255, 255, 0.05) 30%, 
        rgba(15, 23, 42, 0.38) 70%, 
        rgba(15, 23, 42, 0.55) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
        inset 0 -1px 1px rgba(255, 255, 255, 0.12),
        inset 0 0 30px rgba(255, 255, 255, 0.03);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

/* Glass Specular Reflection Highlight */
.carousel-3d-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.06) 45%, transparent 100%);
    border-radius: 22px 22px 60% 60%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* Card Glow Effect Matching Video */
.carousel-3d-card::before {
    content: "";
    position: absolute;
    left: -20%;
    bottom: -28%;
    width: 140%;
    height: 75%;
    filter: blur(36px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.carousel-3d-card.card-glow-blue::before { background: radial-gradient(closest-side, #3b82f6, rgba(59, 130, 246, 0.45) 55%, transparent 75%); }
.carousel-3d-card.card-glow-rose::before { background: radial-gradient(closest-side, #f43f5e, rgba(244, 63, 94, 0.45) 55%, transparent 75%); }
.carousel-3d-card.card-glow-indigo::before { background: radial-gradient(closest-side, #6366f1, rgba(99, 102, 241, 0.45) 55%, transparent 75%); }
.carousel-3d-card.card-glow-emerald::before { background: radial-gradient(closest-side, #10b981, rgba(16, 185, 129, 0.45) 55%, transparent 75%); }
.carousel-3d-card.card-glow-sky::before { background: radial-gradient(closest-side, #0ea5e9, rgba(14, 165, 233, 0.45) 55%, transparent 75%); }
.carousel-3d-card.card-glow-purple::before { background: radial-gradient(closest-side, #a855f7, rgba(168, 85, 247, 0.45) 55%, transparent 75%); }
.carousel-3d-card.card-glow-amber::before { background: radial-gradient(closest-side, #f59e0b, rgba(245, 158, 11, 0.45) 55%, transparent 75%); }
.carousel-3d-card.card-glow-cyan::before { background: radial-gradient(closest-side, #06b6d4, rgba(6, 182, 212, 0.45) 55%, transparent 75%); }
.carousel-3d-card.card-glow-teal::before { background: radial-gradient(closest-side, #14b8a6, rgba(20, 184, 166, 0.45) 55%, transparent 75%); }

.carousel-3d-card .card-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 22px;
    transition: opacity 0.3s ease;
}

.carousel-3d-card .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-3d-card .card-num {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1.5px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-3d-card .card-icon-squircle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.carousel-3d-card .card-icon-squircle svg {
    width: 22px;
    height: 22px;
}

.carousel-3d-card .card-body-content {
    margin: auto 0;
    padding: 8px 0;
}

.carousel-3d-card .card-category-badge {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

.carousel-3d-card .card-main-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.carousel-3d-card .card-sub-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    margin: 0;
}

.carousel-3d-card .card-action-bar {
    margin-top: 10px;
}

.carousel-3d-card .btn-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.carousel-3d-card:hover .btn-card-action {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-3d-card.is-front {
    border-color: rgba(255, 255, 255, 0.55);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.22) 0%, 
        rgba(255, 255, 255, 0.08) 35%, 
        rgba(15, 23, 42, 0.32) 75%, 
        rgba(15, 23, 42, 0.5) 100%
    );
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.85),
        0 0 35px rgba(255, 255, 255, 0.2),
        inset 0 1.5px 1.2px rgba(255, 255, 255, 0.7),
        inset 0 -1px 1px rgba(255, 255, 255, 0.15);
}

/* Background Depth State for Rear Cards */
.carousel-3d-card.is-back {
    opacity: 0.58;
    filter: brightness(0.78) blur(0.35px);
}

.carousel-3d-card.is-back .card-inner {
    opacity: 0.35;
}

/* Nav Arrow Buttons */
.carousel-3d-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.carousel-3d-nav-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-3d-nav-btn.btn-prev {
    left: 20px;
}

.carousel-3d-nav-btn.btn-next {
    right: 20px;
}

.carousel-3d-nav-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.1);
}

/* Hint & Dots */
.carousel-3d-hint {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

.carousel-3d-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    width: 26px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

/* Responsive adjustments for 3D Carousel (Settings) */
@media (max-width: 768px) {
    .carousel-3d-stage {
        height: 440px;
        perspective: 1100px;
        overflow: hidden;
    }
    .carousel-3d-container {
        width: 220px;
        height: 310px;
        margin: -10px auto 0;
    }
    .carousel-3d-card {
        width: 220px;
        height: 310px;
        border-radius: 18px;
        left: 0;
        top: 0;
    }
    .carousel-3d-card .card-inner {
        padding: 15px 14px;
    }
    .carousel-3d-card .card-num {
        font-size: 1.35rem;
    }
    .carousel-3d-card .card-icon-squircle {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .carousel-3d-card .card-icon-squircle svg {
        width: 18px;
        height: 18px;
    }
    .carousel-3d-card .card-category-badge {
        font-size: 0.60rem;
        padding: 3px 8px;
    }
    .carousel-3d-card .card-main-title {
        font-size: 1.05rem;
        line-height: 1.3;
        margin: 6px 0 4px;
    }
    .carousel-3d-card .card-sub-desc {
        font-size: 0.68rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        margin: 0;
    }
    .carousel-3d-card .btn-card-action {
        padding: 8px 12px;
        font-size: 0.72rem;
        border-radius: 9px;
    }
    .carousel-3d-nav-btn {
        width: 40px;
        height: 40px;
        z-index: 30;
        background: rgba(15, 23, 42, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    }
    .carousel-3d-nav-btn.btn-prev {
        left: 6px;
    }
    .carousel-3d-nav-btn.btn-next {
        right: 6px;
    }
    .carousel-3d-hint {
        font-size: 0.56rem;
        bottom: 28px;
    }
    .carousel-3d-dots {
        bottom: 8px;
        gap: 5px;
    }
    .carousel-dot {
        width: 6px;
        height: 6px;
    }
    .carousel-dot.active {
        width: 18px;
    }
}

/* =========================================================
   3D HOLOGRAPHIC ORBIT RING WITH WET MIRROR FLOOR (MONTHS)
   ========================================================= */
.month-3d-stage {
    position: relative;
    width: 100%;
    height: 440px;
    margin-bottom: 24px;
    perspective: 1700px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 32%, #1e293b 0%, #0b1120 62%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    user-select: none;
}

.month-3d-glow-ambient {
    position: absolute;
    top: 36%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 580px;
    height: 320px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.18) 0%, rgba(168, 85, 247, 0.10) 42%, transparent 72%);
    filter: blur(55px);
    pointer-events: none;
    z-index: 1;
}

/* Wet Mirror Floor Grid & Horizon Reflection */
.month-3d-floor-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    background: 
        linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.5) 40%, transparent 100%),
        radial-gradient(ellipse at 50% 100%, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 80%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Floating Cybernetic Pedestal Halo */
.month-3d-pedestal {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotateX(74deg);
    width: 650px;
    height: 650px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.28);
    box-shadow: 
        0 0 40px rgba(56, 189, 248, 0.18),
        inset 0 0 45px rgba(168, 85, 247, 0.12);
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, rgba(15, 23, 42, 0.45) 60%, transparent 75%);
}

.month-3d-pedestal::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    animation: rotatePedestalHalo 35s linear infinite;
}

@keyframes rotatePedestalHalo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 3D Perspective Container with Camera Tilt */
.month-3d-container {
    position: relative;
    width: 175px;
    height: 235px;
    margin-top: -30px;
    transform-style: preserve-3d;
    z-index: 3;
    transition: transform 0.12s ease-out;
}

.month-3d-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    cursor: grab;
    touch-action: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.month-3d-ring.is-dragging {
    cursor: grabbing !important;
}

/* 3D Glassmorphic Month Card with Wet Floor Mirror Reflection */
.month-3d-card {
    position: absolute;
    width: 175px;
    height: 235px;
    left: 0;
    top: 0;
    border-radius: 14px;
    transform-style: preserve-3d;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    cursor: pointer;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.16) 0%, 
        rgba(255, 255, 255, 0.05) 30%, 
        rgba(15, 23, 42, 0.38) 70%, 
        rgba(15, 23, 42, 0.55) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
        inset 0 -1px 1px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
    /* Real-time Wet Floor Reflection (subtle & compact) */
    -webkit-box-reflect: below 5px linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.92) 55%);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

/* Month Card Glass Specular Reflection Highlight */
.month-3d-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.05) 45%, transparent 100%);
    border-radius: 14px 14px 60% 60%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* Glow Effect matching month spectrum */
.month-3d-card::before {
    content: "";
    position: absolute;
    left: -20%;
    bottom: -25%;
    width: 140%;
    height: 70%;
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

/* 12 Spectrum Neon Glow Colors */
.month-3d-card.month-glow-cyan::before { background: radial-gradient(closest-side, #06b6d4, rgba(6, 182, 212, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-purple::before { background: radial-gradient(closest-side, #8b5cf6, rgba(139, 92, 246, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-emerald::before { background: radial-gradient(closest-side, #10b981, rgba(16, 185, 129, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-sky::before { background: radial-gradient(closest-side, #0ea5e9, rgba(14, 165, 233, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-teal::before { background: radial-gradient(closest-side, #14b8a6, rgba(20, 184, 166, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-amber::before { background: radial-gradient(closest-side, #f59e0b, rgba(245, 158, 11, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-indigo::before { background: radial-gradient(closest-side, #6366f1, rgba(99, 102, 241, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-orange::before { background: radial-gradient(closest-side, #f97316, rgba(249, 115, 22, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-rose::before { background: radial-gradient(closest-side, #f43f5e, rgba(244, 63, 94, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-fuchsia::before { background: radial-gradient(closest-side, #d946ef, rgba(217, 70, 239, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-ruby::before { background: radial-gradient(closest-side, #e11d48, rgba(225, 29, 72, 0.45) 55%, transparent 75%); }
.month-3d-card.month-glow-diamond::before { background: radial-gradient(closest-side, #38bdf8, rgba(56, 189, 248, 0.55) 55%, transparent 75%); }

.month-3d-card.is-front {
    border-color: rgba(255, 255, 255, 0.55);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.22) 0%, 
        rgba(255, 255, 255, 0.08) 35%, 
        rgba(15, 23, 42, 0.32) 75%, 
        rgba(15, 23, 42, 0.5) 100%
    );
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.85),
        0 0 28px rgba(255, 255, 255, 0.2),
        inset 0 1.5px 1.2px rgba(255, 255, 255, 0.7);
}

/* Background Depth State for Rear Month Cards */
.month-3d-card.is-back {
    opacity: 0.58;
    filter: brightness(0.78) blur(0.35px);
}

.month-3d-card.is-back .card-inner {
    opacity: 0.35;
}

.month-3d-card .card-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 13px 12px;
}

.month-3d-card .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.month-3d-card .card-num {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.month-3d-card .month-tahap-pill {
    font-size: 0.58rem;
    padding: 2px 6px;
}

.month-3d-card .card-body-content {
    margin: auto 0;
    padding: 2px 0;
}

.month-3d-card .card-category-badge {
    display: inline-block;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2px;
}

.month-3d-card .card-main-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.month-3d-card .card-sub-desc {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.month-3d-card .card-action-bar {
    margin-top: 4px;
}

.month-3d-card .btn-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.month-3d-card:hover .btn-card-action {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hint & Dots for Month Orbit */
.month-3d-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

.month-3d-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.month-dot {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.month-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.month-dot.active {
    width: 24px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

@media (max-width: 768px) {
    .month-3d-stage {
        height: 430px;
        perspective: 1100px;
        overflow: hidden;
    }
    .month-3d-container {
        width: 210px;
        height: 290px;
        margin: -10px auto 0;
    }
    .month-3d-card {
        width: 210px;
        height: 290px;
        border-radius: 16px;
        left: 0;
        top: 0;
    }
    .month-3d-card .card-inner {
        padding: 14px 12px;
    }
    .month-3d-card .card-num {
        font-size: 1.35rem;
    }
    .month-3d-card .month-tahap-pill {
        font-size: 0.60rem;
        padding: 3px 8px;
    }
    .month-3d-card .card-category-badge {
        font-size: 0.60rem;
        padding: 2px 7px;
    }
    .month-3d-card .card-main-title {
        font-size: 1.15rem;
        margin: 4px 0;
        line-height: 1.25;
    }
    .month-3d-card .card-sub-desc {
        font-size: 0.66rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }
    .month-3d-card .btn-card-action {
        padding: 8px 12px;
        font-size: 0.72rem;
        border-radius: 9px;
    }
    .month-3d-nav-btn {
        width: 40px;
        height: 40px;
        z-index: 30;
        background: rgba(15, 23, 42, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    }
    .month-3d-nav-btn.btn-prev {
        left: 6px;
    }
    .month-3d-nav-btn.btn-next {
        right: 6px;
    }
    .month-3d-pedestal {
        width: 320px;
        height: 320px;
        bottom: 12px;
    }
    .month-3d-hint {
        font-size: 0.54rem;
        bottom: 24px;
    }
    .month-3d-dots {
        bottom: 6px;
        gap: 5px;
    }
    .month-dot {
        width: 6px;
        height: 6px;
    }
    .month-dot.active {
        width: 18px;
    }
}

@media (max-width: 640px) {
    .settings-view-toggle {
        display: flex;
        width: 100%;
        margin-top: 10px;
    }
    .settings-view-toggle .btn-view-toggle {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.76rem;
    }
}

/* Settings Standard Grid & Container */
.settings-standard-container {
    width: 100%;
    margin-bottom: 24px;
}

.settings-standard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .settings-standard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.settings-group-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-group-card:hover {
    border-color: var(--card-border-hover, var(--border-color));
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.08);
}

.settings-group-title {
    padding: 10px 14px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--border-color);
    user-select: none;
}

.settings-group-list {
    display: flex;
    flex-direction: column;
}

.settings-row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    width: 100%;
    text-align: left;
}

.settings-row-item:last-child {
    border-bottom: none;
}

.settings-row-item:hover {
    background: var(--bg-surface-hover);
    padding-left: 17px;
}

.settings-row-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.settings-row-item:active {
    transform: scale(0.995);
}

.settings-row-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.settings-row-item:hover .settings-row-icon {
    transform: scale(1.08);
}

.settings-row-icon svg {
    width: 16px;
    height: 16px;
}

.settings-row-content {
    flex: 1;
    min-width: 0;
}

.settings-row-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 1px;
}

.settings-row-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.settings-row-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    opacity: 0.45;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.settings-row-item:hover .settings-row-chevron {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Palet Warna Signature Ikon Row */
.icon-row-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.25); }
.icon-row-rose { background: rgba(244, 63, 94, 0.12); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.25); }
.icon-row-indigo { background: rgba(99, 102, 241, 0.12); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.25); }
.icon-row-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.icon-row-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.25); }
.icon-row-sky { background: rgba(2, 132, 199, 0.12); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.25); }
.icon-row-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.icon-row-cyan { background: rgba(6, 182, 212, 0.12); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.25); }
.icon-row-teal { background: rgba(13, 148, 136, 0.12); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.25); }

@media (max-width: 768px) {
    .settings-standard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .settings-row-item {
        padding: 9px 12px;
    }
}

/* =========================================================
   PROFIL & PENGATURAN AKUN - MODERN ENTERPRISE PROFILE UI
   ========================================================= */
.account-hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
}

.account-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.account-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.account-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.account-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
    background-size: cover;
    background-position: center;
    border: 3px solid var(--bg-surface);
    outline: 2px solid rgba(59, 130, 246, 0.4);
}

.account-avatar-edit-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--bg-surface);
    transition: transform 0.2s ease, background 0.2s ease;
}

.account-avatar-edit-badge:hover {
    transform: scale(1.12);
    background: #2563eb;
}

.account-avatar-edit-badge svg {
    width: 13px;
    height: 13px;
}

.account-hero-info {
    flex: 1;
    min-width: 240px;
}

.account-hero-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.account-hero-name-row h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.account-verified-badge {
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
}
.account-verified-badge svg {
    width: 18px;
    height: 18px;
}

.account-hero-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.account-badge svg {
    width: 13px;
    height: 13px;
}

.badge-role {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-status {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.badge-cloud {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.btn-account-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-account-logout:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

/* Modern Input with Leading Icon */
.input-with-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-leading-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    opacity: 0.65;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.input-leading-icon svg {
    width: 17px;
    height: 17px;
}

.input-with-icon-wrap .form-control {
    padding-left: 38px;
}
.input-with-icon-wrap:focus-within .input-leading-icon {
    color: var(--primary-color);
    opacity: 1;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    opacity: 0.65;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.btn-toggle-password:hover {
    opacity: 1;
    color: var(--primary-color);
}
.btn-toggle-password svg {
    width: 17px;
    height: 17px;
}

/* System info item card */
.system-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}
.system-info-item:hover {
    background: var(--bg-surface-hover);
}
.system-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.83rem;
}
.system-info-label svg {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
}
.system-info-val {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.83rem;
}

/* Card & Form container */
.card-container {
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    padding: 32px;
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.full-width {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 113, 202, 0.1);
}
.form-control[readonly], .form-control:disabled {
    background: var(--bg-surface-alt) !important;
    color: var(--text-main) !important;
    opacity: 1;
}
textarea.form-control {
    resize: vertical;
}

input[type="date"].form-control {
    cursor: pointer;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.15s ease;
    padding: 3px;
    border-radius: 4px;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
}
[data-theme="dark"] input[type="date"].form-control::-webkit-calendar-picker-indicator,
[data-theme="ocean"] input[type="date"].form-control::-webkit-calendar-picker-indicator,
[data-theme="emerald"] input[type="date"].form-control::-webkit-calendar-picker-indicator,
[data-theme="violet"] input[type="date"].form-control::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.9);
}

.kategori-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.kategori-card:hover {
    transform: translateY(-2px);
}
.kategori-card.active {
    transform: translateY(-1px);
}

.form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}
.form-actions .btn-primary, .form-actions .btn-secondary {
    width: auto;
    padding: 12px 24px;
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}
.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* =========================================
   PRINT TEMPLATE STYLES
   ========================================= */

#print-area {
    display: none; /* Hidden by default on screen */
}

.print-page {
    page-break-after: always;
    margin-bottom: 30px;
    width: 100%;
    max-width: 800px; /* roughly A4 width in pixels */
    background: #fff;
    color: #000;
    font-family: 'Times New Roman', Times, serif;
}

.print-page:last-child {
    page-break-after: auto;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.print-table th, .print-table td {
    border: 1px solid #000;
    padding: 8px;
    color: #000;
}
.print-table th {
    text-align: center;
    background-color: transparent;
    font-weight: bold;
}
.print-table td {
    font-size: 11pt;
}
.print-table tfoot td[id*="total"],
.print-table tfoot td.total-right {
    text-align: right !important;
    font-weight: bold;
}

.n-title-center {
    text-align: center;
    margin-bottom: 20px;
}
.n-title-center h3 {
    font-size: 14pt;
    margin-bottom: 5px;
}
.n-title-center p {
    font-size: 11pt;
    margin: 0;
}

.kwitansi-container,
.nota-pesanan-container,
.ba-pemeriksaan-container,
.lampiran-bapb-container,
.ba-penerimaan-container,
.lampiran-bapnb-container {
    width: 100%;
}

.gaji-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.gaji-print-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 15px;
    margin-bottom: 15px;
}

.gaji-print-table th, .gaji-print-table td {
    border: 1px solid #000 !important;
    padding: 7px 6px !important;
    font-size: 10.5pt !important;
    font-family: 'Times New Roman', Times, serif !important;
    color: #000 !important;
}

.gaji-print-table th {
    font-weight: bold !important;
    text-align: center !important;
}


.k-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3.5px double #000;
    padding-bottom: 6px;
    margin-bottom: 18px;
    width: 100%;
}
.k-logo {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
/* Placeholder colors for logos if image is missing */
.k-logo.left { 
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect width="80" height="80" fill="%23ddd"/><text x="50%" y="50%" font-family="sans-serif" font-size="12" fill="%23555" text-anchor="middle" dy=".3em">Logo 1</text></svg>'); 
}
.k-logo.right { 
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect width="80" height="80" fill="%23ddd"/><text x="50%" y="50%" font-family="sans-serif" font-size="12" fill="%23555" text-anchor="middle" dy=".3em">Logo 2</text></svg>'); 
}

.k-header-text {
    text-align: center;
    flex: 1;
    padding: 0 10px;
    line-height: 1.25;
}
.k-header-text h1 {
    font-size: 13.5pt;
    margin: 0 0 2px 0;
    font-weight: bold;
    letter-spacing: 0.3px;
    white-space: nowrap;
    font-family: 'Times New Roman', Times, serif;
}
.k-header-text h2 {
    font-size: 16pt;
    margin: 0 0 3px 0;
    font-weight: bold;
    letter-spacing: 0.3px;
    white-space: nowrap;
    font-family: 'Times New Roman', Times, serif;
}
.k-header-text p {
    font-size: 9.5pt;
    margin: 0 0 2px 0;
    line-height: 1.2;
    white-space: nowrap;
    font-family: 'Times New Roman', Times, serif;
}

/* Specific Landscape KOP for Gaji */
.gaji-container .k-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px double #000;
    padding-bottom: 8px;
    margin-bottom: 22px;
    width: 100%;
}
.gaji-container .k-logo.left { 
    width: 130px;
    height: 135px;
}
.gaji-container .k-logo.right { 
    width: 115px;
    height: 115px;
}
.gaji-container .k-header-text {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    line-height: 1.25;
}
.gaji-container .k-header-text h1 {
    font-size: 18.5pt;
    margin: 0 0 4px 0;
    font-weight: bold;
    letter-spacing: 0.5px;
    font-family: 'Times New Roman', Times, serif;
}
.gaji-container .k-header-text h2 {
    font-size: 21pt;
    margin: 0 0 5px 0;
    font-weight: bold;
    letter-spacing: 0.5px;
    font-family: 'Times New Roman', Times, serif;
}
.gaji-container .k-header-text p.out-alamat {
    font-size: 12.5pt;
    margin: 0 0 2px 0;
    font-style: normal;
    font-family: 'Times New Roman', Times, serif;
}
.gaji-container .k-header-text p.out-kontak {
    font-size: 11.5pt;
    margin: 0;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
}
.k-header-text p#out-alamat,
.k-header-text p.out-alamat {
    font-style: normal;
}
.k-header-text p#out-kontak,
.k-header-text p.out-kontak {
    font-style: italic;
}

.k-body {
    border: 2px solid #000;
}

.k-row-title {
    display: flex;
    border-bottom: 2px solid #000;
}
.k-row-title .k-col {
    padding: 10px;
    font-weight: bold;
    font-size: 12pt;
}
.k-row-title .k-col.k-bukti {
    flex: 1;
    border-right: 2px solid #000;
}
.k-row-title .k-col.k-title {
    flex: 1;
    background-color: #e0e0e0;
    text-align: center;
    letter-spacing: 2px;
}

.k-row-content {
    padding: 15px;
    border-bottom: 2px solid #000;
}
.k-field {
    display: flex;
    margin-bottom: 15px;
    font-size: 11pt;
}
.k-field:last-child {
    margin-bottom: 0;
}
.k-field .k-label {
    width: 200px;
    flex-shrink: 0;
}
.k-field .k-colon {
    margin-right: 15px;
}
.k-field .k-value {
    flex: 1;
}
.k-field .k-value.italic span { font-style: italic; }
.k-field .k-value.bold span { font-weight: bold; font-size: 12pt; }

.k-row-signatures {
    display: flex;
}
.k-sig-col {
    flex: 1;
    text-align: center;
    padding: 5px;
    font-size: 11pt;
    display: flex;
    flex-direction: column;
}
.k-sig-col:not(:last-child) {
    border-right: 2px solid #000;
}
.k-sig-title {
    margin-bottom: 10px;
}
.k-sig-role {
    margin-bottom: 0px; /* Space handled cleanly by .digital-sig-wrap */
}
.k-sig-name {
    margin-top: auto; /* Aligns names to the bottom across all columns */
    font-weight: bold;
}
.k-sig-name.underline {
    text-decoration: underline;
}


/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    margin-right: 12px;
}
.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .dashboard-layout {
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    .sidebar.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-content {
        width: 100%;
    }
    
    .form-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar {
        padding: 0 16px;
    }
    
    .search-bar {
        display: none;
    }
}

/* =========================================
   PRINT MEDIA QUERY
   ========================================= */
@media print {
    @page { 
        size: A4 portrait;
        margin: 0; 
    }

    @page landscape-page {
        size: A4 landscape;
        margin: 0;
    }
    
    /* Hide everything else completely during print */
    .no-print,
    #toast-container,
    #toast-container *,
    .toast-container,
    .app-toast,
    .ocr-result-toast,
    .pro-modal-backdrop,
    .spotlight-modal-overlay,
    .modal-overlay,
    .confirm-modal-overlay,
    .sidebar-overlay,
    .modal-backdrop,
    .swal2-container,
    .sidebar,
    .topbar,
    .header,
    .main-content,
    .dashboard-layout,
    body > *:not(#print-area) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    html, body, body.dashboard-body {
        background-color: white !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    /* Show print area */
    #print-area {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        padding: 0 !important;
        position: static !important;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .print-page {
        width: 210mm !important;
        min-height: 297mm !important;
        padding: 1.2cm 1.5cm !important; /* Standard A4 margins applied per page */
        box-sizing: border-box !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
    }

    .print-page.gaji-container,
    .print-page.page-landscape,
    .print-page.landscape-page {
        page: landscape-page !important;
        width: 297mm !important;
        min-height: 195mm !important;
        padding: 0.6cm 1.2cm !important;
        page-break-before: auto !important;
        page-break-after: auto !important;
        page-break-inside: avoid !important;
        break-before: auto !important;
        break-after: auto !important;
        break-inside: avoid !important;
    }

    .print-page:last-child {
        page-break-after: auto !important;
    }
    
    /* Optimize kwitansi for print */
    .kwitansi-container {
        max-width: none !important;
        width: 100% !important;
    }
    
    /* Ensure background colors print */
    .k-row-title .k-col.k-title {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Rapel month selection pills & grid */
.rapel-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
@media (max-width: 820px) {
    .rapel-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 540px) {
    .rapel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 380px) {
    .rapel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rapel-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}
.rapel-pill:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}
.rapel-pill input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.rapel-pill.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.rapel-pill.active input[type="checkbox"] {
    accent-color: #ffffff;
}

/* Gaji form item row */
.gaji-item-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    grid-template-columns: 2fr 0.8fr 1fr 1.3fr 1.1fr 1.3fr 40px;
    gap: 12px;
    align-items: center;
}

@media (max-width: 900px) {
    .gaji-item-row {
        grid-template-columns: 1fr;
    }
}

.n-signatures {
    padding: 0;
}
.sig-box {
    min-width: 180px;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
}
.sig-box p {
    margin: 0;
    line-height: 1.35;
    text-align: center !important;
    width: 100%;
}
.sig-box p:last-child {
    margin-top: 2px !important; /* Compact spacing matching official SPJ printouts */
    font-weight: bold; /* Make the name bold for better appearance */
    text-decoration: underline;
}

/* Document Verification QR Code Seal for Official Printouts */
.doc-verification-seal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1.5px solid #0f172a;
    border-radius: 8px;
    background: #ffffff;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #0f172a;
    width: fit-content;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.doc-verification-seal.seal-center {
    margin: 12px auto;
}
.doc-qr-code-img {
    width: 78px;
    height: 78px;
    min-width: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.doc-qr-code-img canvas {
    display: none !important;
}
.doc-qr-code-img img {
    width: 70px !important;
    height: 70px !important;
    display: block !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}
.doc-qr-meta {
    text-align: left;
    line-height: 1.35;
}
.doc-qr-title {
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 5px;
}
.doc-qr-title svg {
    width: 14px;
    height: 14px;
    fill: #2563eb;
    flex-shrink: 0;
}
.doc-qr-subtitle {
    font-size: 7pt;
    color: #475569;
    margin-top: 2px;
    font-weight: 500;
}
.doc-qr-id-text {
    font-size: 7.5pt;
    font-weight: 800;
    color: #0f172a;
    font-family: monospace;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

@media print {
    .doc-verification-seal {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border: 1.5px solid #000000 !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }
    .doc-qr-code-img {
        border: 1px solid #000000 !important;
        background: #ffffff !important;
    }
    .doc-qr-code-img img {
        width: 70px !important;
        height: 70px !important;
        display: block !important;
    }
}


/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

/* Header theme toggle specifically for dashboard */
.header-theme-toggle {
    position: relative;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    box-shadow: none;
    background: var(--bg-surface-hover);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--bg-surface-hover);
}
.header-theme-toggle:hover {
    background: var(--border-color);
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.theme-toggle svg *,
.theme-toggle span {
    pointer-events: none;
}
.header-theme-toggle svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.theme-toggle .moon-icon {
    display: none;
}
[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}
[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* =========================================================
   THEME PICKER DROPDOWN & SETTINGS CARD
   ========================================================= */
.theme-picker-wrapper {
    position: relative;
    display: inline-block;
}

.theme-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.35), 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 1050;
    display: none;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(12px);
    animation: themeDropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes themeDropFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.theme-dropdown-menu.active {
    display: flex !important;
}

.theme-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.theme-options-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 380px;
    overflow-y: auto;
    padding-top: 4px;
}

.theme-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
    width: 100%;
    color: var(--text-main);
    user-select: none;
}

.theme-option-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-color);
    transform: translateX(2px);
}

.theme-option-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
}

.theme-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-option-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.theme-option-info h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.theme-option-info p {
    margin: 2px 0 0 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.theme-option-check {
    color: var(--primary-color);
    display: none;
    flex-shrink: 0;
}

.theme-option-item.active .theme-option-check {
    display: block;
}

/* Theme Cards for Settings View */
.theme-card {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.theme-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.theme-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.theme-card-preview {
    height: 80px;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.theme-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: none;
}

.theme-card.active .theme-card-badge {
    display: block;
}


/* =========================================================
   EXECUTIVE MONTHLY REPORT & SPJ VIEW STYLES
   ========================================================= */
.report-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.report-header-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-header-text p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.btn-report-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-report-back:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(-2px);
}

/* KPI Stat Cards Grid */
.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.report-kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.report-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.report-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.report-kpi-card.kpi-blue::before { background: #3b82f6; }
.report-kpi-card.kpi-emerald::before { background: #10b981; }
.report-kpi-card.kpi-amber::before { background: #f59e0b; }
.report-kpi-card.kpi-purple::before { background: #8b5cf6; }
.report-kpi-card.kpi-sky::before { background: #0284c7; }

.kpi-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-blue .kpi-icon-wrap { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.kpi-emerald .kpi-icon-wrap { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.kpi-amber .kpi-icon-wrap { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.kpi-purple .kpi-icon-wrap { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.kpi-sky .kpi-icon-wrap { background: rgba(2, 132, 199, 0.12); color: #0284c7; }

.kpi-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 600;
}

/* Tabs & Filter Bar */
.report-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.report-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px 10px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.report-tab-btn:hover {
    color: var(--text-main);
    background: var(--bg-surface-hover);
}

.report-tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: var(--bg-surface);
    font-weight: 700;
}

.tab-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
}

.report-tab-btn.active .tab-badge {
    background: var(--primary-color);
    color: #ffffff;
}

/* Redesigned Section Cards with Distinct Theming */
.report-section-card {
    background: var(--bg-surface);
    border-radius: 18px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

/* Distinct Kwitansi Section (Blue / Indigo Theme) */
.report-section-card.sec-kwitansi {
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-top: 4px solid #3b82f6;
}
.report-section-card.sec-kwitansi .report-card-header {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}
.report-section-card.sec-kwitansi .report-card-header h2 {
    color: #3b82f6;
}

/* Distinct Nota Belanja Section (Emerald Green Theme) */
.report-section-card.sec-nota {
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-top: 4px solid #10b981;
}
.report-section-card.sec-nota .report-card-header {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.report-section-card.sec-nota .report-card-header h2 {
    color: #10b981;
}

/* Distinct Gaji / Honor Section (Warm Amber / Orange Theme) */
.report-section-card.sec-gaji {
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-top: 4px solid #f59e0b;
}
.report-section-card.sec-gaji .report-card-header {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}
.report-section-card.sec-gaji .report-card-header h2 {
    color: #f59e0b;
}

/* Distinct Tagihan (Listrik / WiFi / Utilitas) Section (Purple / Indigo Theme) */
.report-section-card.sec-tagihan {
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-top: 4px solid #8b5cf6;
}
.report-section-card.sec-tagihan .report-card-header {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}
.report-section-card.sec-tagihan .report-card-header h2 {
    color: #8b5cf6;
}

/* Distinct Surat Tugas & SPPD Section (Sky Blue Theme) */
.report-section-card.sec-sppd {
    border: 1px solid rgba(2, 132, 199, 0.35);
    border-top: 4px solid #0284c7;
}
.report-section-card.sec-sppd .report-card-header {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0.02) 100%);
    border-bottom: 1px solid rgba(2, 132, 199, 0.2);
}
.report-section-card.sec-sppd .report-card-header h2 {
    color: #0284c7;
}

.report-card-header {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.report-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-card-icon svg {
    width: 22px;
    height: 22px;
}

.report-card-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.report-card-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.report-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.35); }
.badge-emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.35); }

/* Themed tags for document numbers */
.tag-nomor-blue {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-family: monospace;
    font-size: 0.84rem;
    font-weight: 700;
    color: #3b82f6;
}

.tag-nomor-emerald {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-family: monospace;
    font-size: 0.84rem;
    font-weight: 700;
    color: #10b981;
}

.tag-nomor-amber {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-family: monospace;
    font-size: 0.84rem;
    font-weight: 700;
    color: #f59e0b;
}

/* Empty State */
.report-empty-state {
    text-align: center;
    padding: 42px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border: 1px dashed var(--border-color);
}

.empty-state-icon svg {
    width: 26px;
    height: 26px;
    opacity: 0.6;
}

.report-empty-state h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.report-empty-state p {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 380px;
    margin: 0 auto;
}

/* Table Pill & Currency Tag */
.tag-nomor {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    font-family: monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.nominal-highlight {
    font-weight: 800;
    color: #10b981;
    font-size: 0.92rem;
}

/* Mobile Responsiveness for Report View */
@media (max-width: 768px) {
    .report-header-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .report-header-text h1 {
        font-size: 1.3rem;
    }
    .report-kpi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .report-card-header {
        padding: 14px 16px;
    }
    .btn-report-back {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   OCR SCAN STRUK STYLES
   ========================================= */

/* Scan Button */
.btn-ocr-scan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    margin-top: 12px;
    border: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-ocr-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.btn-ocr-scan:hover::before {
    left: 100%;
}

.btn-ocr-scan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45);
}

.btn-ocr-scan:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-ocr-scan:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-ocr-scan.scanning {
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
    animation: ocrPulse 1.5s ease-in-out infinite;
}

@keyframes ocrPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* OCR Progress Bar */
.ocr-progress-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: var(--bg-surface-alt, #e2e8f0);
    border-radius: 99px;
    overflow: hidden;
    margin: 10px auto 0;
}

.ocr-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #8b5cf6, #6d28d9, #4f46e5);
    transition: width 0.3s ease;
    animation: ocrProgressShimmer 1.5s linear infinite;
    background-size: 200% 100%;
}

@keyframes ocrProgressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Engine Selector */
.ocr-engine-selector {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ocr-engine-option {
    flex: 1;
    min-width: 260px;
    cursor: pointer;
}

.ocr-engine-option input[type="radio"] {
    display: none;
}

.ocr-engine-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--bg-surface);
}

.ocr-engine-option input[type="radio"]:checked + .ocr-engine-card {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.ocr-engine-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ocr-engine-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ocr-engine-info h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ocr-engine-info p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* OCR Result Toast */
.ocr-result-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 22px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: ocrToastIn 0.4s ease;
    max-width: 400px;
}

.ocr-result-toast.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.ocr-result-toast.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@keyframes ocrToastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .ocr-engine-selector {
        flex-direction: column;
    }
    .ocr-engine-option {
        min-width: 100%;
    }
    .ocr-result-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* =========================================
   AUTO-NUMBERING STYLES
   ========================================= */

.input-with-action {
    display: flex;
    gap: 6px;
    align-items: center;
    position: relative;
}

.input-with-action .form-control {
    flex: 1;
}

.btn-auto-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-auto-num:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.btn-auto-num:active {
    transform: translateY(0);
}

.btn-auto-num svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.btn-auto-num:hover svg {
    transform: rotate(180deg);
}

.flash-highlight {
    animation: flashInput 1s ease;
}

@keyframes flashInput {
    0% { background-color: rgba(59, 130, 246, 0.25); border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
    100% { background-color: transparent; }
}

/* =========================================
   PRO TOAST & MODAL NOTIFICATION SYSTEM
   ========================================= */

#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100vw - 48px);
}

.app-toast {
    pointer-events: auto;
    background: var(--bg-surface, #1e293b);
    color: var(--text-main, #f8fafc);
    border: 1px solid var(--border-color, #334155);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.app-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.app-toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.toast-message {
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-line;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
    margin-top: -2px;
    margin-right: -4px;
}

.toast-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.toast-close-btn svg {
    width: 16px;
    height: 16px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform-origin: left;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transition: width linear;
}

/* Toast Color Themes */
.app-toast.toast-success {
    border-left: 4px solid #10b981;
}
.app-toast.toast-success .toast-icon-wrapper {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.app-toast.toast-success .toast-title {
    color: #10b981;
}
.app-toast.toast-success .toast-progress-bar {
    background: #10b981;
}

.app-toast.toast-error {
    border-left: 4px solid #ef4444;
}
.app-toast.toast-error .toast-icon-wrapper {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.app-toast.toast-error .toast-title {
    color: #ef4444;
}
.app-toast.toast-error .toast-progress-bar {
    background: #ef4444;
}

.app-toast.toast-warning {
    border-left: 4px solid #f59e0b;
}
.app-toast.toast-warning .toast-icon-wrapper {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.app-toast.toast-warning .toast-title {
    color: #f59e0b;
}
.app-toast.toast-warning .toast-progress-bar {
    background: #f59e0b;
}

.app-toast.toast-info {
    border-left: 4px solid #3b82f6;
}
.app-toast.toast-info .toast-icon-wrapper {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.app-toast.toast-info .toast-title {
    color: #3b82f6;
}
.app-toast.toast-info .toast-progress-bar {
    background: #3b82f6;
}

/* =========================================
   PRO MODAL CONFIRM & ALERT DIALOG
   ========================================= */

.pro-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.pro-modal-backdrop.show,
.pro-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.pro-modal-card {
    background: var(--bg-surface, #1e293b);
    color: var(--text-main, #f8fafc);
    border: 1px solid var(--border-color, #334155);
    border-radius: 20px;
    padding: 28px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: scale(0.92) translateY(10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    text-align: center;
}

.pro-modal-backdrop.show .pro-modal-card,
.pro-modal-backdrop.active .pro-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.pro-modal-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pro-modal-icon-badge svg {
    width: 32px;
    height: 32px;
}

.pro-modal-icon-badge.icon-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.pro-modal-icon-badge.icon-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.pro-modal-icon-badge.icon-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.pro-modal-icon-badge.icon-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.pro-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-main, #f8fafc);
}

.pro-modal-message {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 24px 0;
    line-height: 1.5;
    white-space: pre-line;
}

.pro-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pro-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pro-modal-btn.btn-cancel {
    background: var(--bg-surface-hover, #334155);
    color: var(--text-main, #f8fafc);
    border: 1px solid var(--border-color, #475569);
}

.pro-modal-btn.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pro-modal-btn.btn-danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.pro-modal-btn.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.pro-modal-btn.btn-confirm-primary {
    background: var(--primary-gradient, linear-gradient(135deg, #3b82f6, #1d4ed8));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.pro-modal-btn.btn-confirm-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}

/* =========================================
   SMART SPJ CHECKER (AUDIT INSPECTOR) STYLES
   ========================================= */
.audit-score-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: conic-gradient(#10b981 100%, rgba(16, 185, 129, 0.15) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}
.audit-score-circle::before {
    content: '';
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--bg-surface);
}
.audit-score-circle span {
    position: relative;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}
.audit-score-circle small {
    position: relative;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 1px;
}

.audit-tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.audit-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary-color);
}
.audit-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.audit-issue-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}
.audit-issue-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.audit-issue-card.crit {
    border-left: 5px solid #ef4444;
    background: rgba(239, 68, 68, 0.03);
}
.audit-issue-card.warn {
    border-left: 5px solid #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}
.audit-issue-card.pass {
    border-left: 5px solid #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.audit-fix-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.audit-fix-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

@media (max-width: 900px) {
    #spj-checker-section > div:nth-of-type(2) {
        grid-template-columns: 1fr 1fr !important;
    }
}
@media (max-width: 600px) {
    #spj-checker-section > div:nth-of-type(2) {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   DECORATIVE HANGING LAMP & GLOW EFFECT (Aesthetic Lamp UI)
   ============================================================ */
.hanging-lamp-wrapper {
    position: absolute;
    top: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    user-select: none;
    transform-origin: top center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dragging state with mouse */
.hanging-lamp-wrapper.is-dragging {
    transition: none !important;
    animation: none !important;
}

body.lamp-dragging,
body.lamp-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}

.hanging-lamp-wrapper.is-dragging .lamp-shade,
.hanging-lamp-wrapper.is-dragging .lamp-bulb,
.hanging-lamp-wrapper.is-dragging .lamp-cap,
.hanging-lamp-wrapper.is-dragging .lamp-cord {
    cursor: grabbing !important;
}

/* Physics-inspired interactive sway on pull */
.hanging-lamp-wrapper.lamp-swaying {
    animation: lampPullPhysics 1.4s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

@keyframes lampPullPhysics {
    0% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    15% { transform: translateX(-50%) rotate(3.2deg) translateY(4px); }
    35% { transform: translateX(-50%) rotate(-2.4deg) translateY(1px); }
    55% { transform: translateX(-50%) rotate(1.5deg); }
    75% { transform: translateX(-50%) rotate(-0.8deg); }
    90% { transform: translateX(-50%) rotate(0.3deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

/* 1. Sleek Braided Cable with Ceiling Mount Canopy */
.lamp-cord {
    width: 2px;
    height: 52px;
    background: linear-gradient(90deg, #334155, #64748b, #334155);
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    cursor: grab;
}

.lamp-cord::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 6px;
    background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
}

/* 2. Brushed Brass / Champagne Gold Socket Hardware */
.lamp-cap {
    width: 18px;
    height: 9px;
    background: linear-gradient(90deg, #b45309 0%, #f59e0b 25%, #fde68a 50%, #d97706 75%, #78350f 100%);
    border-radius: 3px 3px 1px 1px;
    margin-top: -1px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(254, 243, 199, 0.3);
    position: relative;
    z-index: 5;
    pointer-events: auto;
    cursor: grab;
}

/* 3. Modern Scandinavian Curved Bell Dome Lampshade */
.lamp-shade {
    width: 78px;
    height: 38px;
    background: linear-gradient(180deg, #27272a 0%, #18181b 50%, #09090b 100%);
    border-radius: 50% 50% 10px 10px / 90% 90% 12% 12%;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2.5px solid #f59e0b;
}

/* Expanded invisible grab target for easy mouse dragging */
.lamp-shade::before {
    content: '';
    position: absolute;
    top: -14px;
    bottom: -16px;
    left: -20px;
    right: -20px;
    cursor: grab;
    z-index: 1;
}

.lamp-shade::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, #d97706 0%, #fef08a 50%, #d97706 100%);
    border-radius: 50%;
    opacity: 0.9;
    filter: blur(0.5px);
}

.lamp-shade:hover {
    transform: scale(1.03);
}

/* 4. Warm Luminescent Edison Filament Bulb */
.lamp-bulb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, #fef08a 45%, #f59e0b 90%);
    margin-bottom: -10px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 16px 6px rgba(255, 255, 255, 0.9), 0 0 45px 18px rgba(251, 191, 36, 0.8), 0 0 90px 36px rgba(245, 158, 11, 0.45);
    z-index: 2;
    position: relative;
}

.lamp-bulb:hover {
    transform: scale(1.12);
}

/* 5. Realistic Beaded Brass Pull Chain (Draggable / Pullable) */
.lamp-pull-chain {
    position: absolute;
    top: 86px;
    left: calc(50% + 22px);
    pointer-events: auto;
    cursor: grab;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 16px 14px 16px;
    margin-left: -16px;
    z-index: 30;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.pull-chain-line {
    width: 2.5px;
    height: 38px;
    min-height: 20px;
    background: radial-gradient(circle at 50% 50%, #fbbf24 1.2px, #d97706 1.4px, transparent 1.6px) 0 0 / 2.5px 5px repeat-y;
    filter: drop-shadow(0 0 1.5px rgba(245, 158, 11, 0.6));
    transform-origin: top center;
    pointer-events: none;
}

.pull-chain-bead {
    width: 9px;
    height: 18px;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #92400e 100%);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-top: -1px;
    cursor: grab;
    pointer-events: none;
}

.lamp-pull-chain:hover .pull-chain-bead {
    transform: scale(1.22);
    box-shadow: 0 0 14px rgba(245, 158, 11, 1), 0 3px 10px rgba(0, 0, 0, 0.6);
}

.lamp-pull-chain.is-pulling {
    cursor: grabbing !important;
}

.lamp-pull-chain.is-pulling .pull-chain-bead {
    cursor: grabbing !important;
    transform: scale(1.28);
    box-shadow: 0 0 18px rgba(245, 158, 11, 1), 0 4px 14px rgba(0, 0, 0, 0.7);
}

.pull-chain-bead.bead-triggered {
    transform: scale(1.45) !important;
    box-shadow: 0 0 25px #ffffff, 0 0 15px rgba(245, 158, 11, 1) !important;
}

.lamp-pull-chain.pulled {
    transform: translateY(14px);
}

/* 6. Off State - Ambient Smoked Silhouette & Breathing Jewel Bead */
.hanging-lamp-wrapper.lamp-off .lamp-bulb {
    background: radial-gradient(circle at 45% 35%, #475569 0%, #1e293b 70%, #0f172a 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.85;
}

.hanging-lamp-wrapper.lamp-off .lamp-shade {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid #b45309;
}

.hanging-lamp-wrapper.lamp-off .lamp-shade::after {
    opacity: 0.3;
}

.hanging-lamp-wrapper.lamp-off .pull-chain-bead {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.9), 0 0 24px rgba(251, 191, 36, 0.6);
    animation: modernBeadBreathing 2s infinite ease-in-out;
}

@keyframes modernBeadBreathing {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
    50% { transform: scale(1.22); box-shadow: 0 0 18px rgba(251, 191, 36, 1), 0 0 32px rgba(245, 158, 11, 0.5); }
}

/* 7. Glassmorphic Floating Hint Badge */
.lamp-pull-hint {
    position: absolute;
    top: 142px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fef08a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
    animation: modernHintFloat 2.6s infinite ease-in-out;
}

@keyframes modernHintFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(245, 158, 11, 0.2); }
    50% { transform: translateX(-50%) translateY(-5px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 22px rgba(245, 158, 11, 0.45); }
}

.lamp-pull-hint:hover {
    background: rgba(15, 23, 42, 0.94);
    border-color: #fbbf24;
    transform: translateX(-50%) translateY(-3px) scale(1.04);
}

.hanging-lamp-wrapper.lamp-off .lamp-pull-hint {
    opacity: 1;
    visibility: visible;
}

/* 8. Volumetric Ambient Light Cone Beam */
.lamp-beam {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 620px;
    height: 780px;
    background: radial-gradient(ellipse at 50% 0%, rgba(254, 240, 138, 0.45) 0%, rgba(251, 191, 36, 0.22) 28%, rgba(245, 158, 11, 0.07) 58%, transparent 74%);
    clip-path: polygon(44% 0%, 56% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
    opacity: 1;
    filter: blur(10px);
    mix-blend-mode: screen;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Light & Latte Theme soft beam */
:root:not([data-theme="dark"]):not([data-theme="emerald"]):not([data-theme="ocean"]):not([data-theme="violet"]):not([data-theme="sunset"]):not([data-theme="tropical"]) .lamp-beam {
    background: radial-gradient(ellipse at 50% 0%, rgba(253, 224, 71, 0.30) 0%, rgba(251, 191, 36, 0.14) 30%, rgba(245, 158, 11, 0.04) 60%, transparent 75%);
    mix-blend-mode: normal;
}

[data-theme="sunset"] .lamp-beam {
    background: radial-gradient(ellipse at 50% 0%, rgba(244, 63, 94, 0.50) 0%, rgba(249, 115, 22, 0.28) 30%, rgba(236, 72, 153, 0.10) 60%, transparent 75%);
}

[data-theme="tropical"] .lamp-beam {
    background: radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.50) 0%, rgba(16, 185, 129, 0.28) 30%, rgba(132, 204, 22, 0.10) 60%, transparent 75%);
}

/* Off State for Lamp Fixture */
.hanging-lamp-wrapper.lamp-off .lamp-beam {
    opacity: 0;
}

/* ============================================================
   CENTERED LAMP ON LOGIN / REGISTER PAGE & BLACKOUT EFFECT
   ============================================================ */
.login-lamp-center {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.login-lamp-center .lamp-cord {
    height: 48px;
}

/* Transition for Branding Panel (Selamat Datang) and Login Panel */
.branding-panel,
.branding-panel > * {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.6s ease;
}

.login-panel .form-wrapper,
.login-panel .login-footer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: brightness(1) blur(0px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* BLACKOUT EFFECT: When lamp is off, BOTH Selamat Datang panel and Login Form disappear into darkness */
.login-container.lamp-blackout {
    background-color: #030712 !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9) !important;
    transition: background-color 0.6s ease, border-color 0.6s ease;
}

.login-container.lamp-blackout .branding-panel,
.branding-panel.lamp-blackout {
    background-color: #030712 !important;
    border-right-color: transparent !important;
    transition: background-color 0.6s ease;
}

.login-container.lamp-blackout .branding-panel::before,
.login-container.lamp-blackout .branding-panel::after,
.branding-panel.lamp-blackout::before,
.branding-panel.lamp-blackout::after {
    opacity: 0 !important;
    transition: opacity 0.6s ease;
}

.login-container.lamp-blackout .branding-panel > *,
.branding-panel.lamp-blackout > * {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(16px) scale(0.96) !important;
    filter: brightness(0) blur(8px) !important;
}

.login-panel.lamp-blackout {
    background-color: #030712 !important; /* Deep pitch black */
    transition: background-color 0.6s ease;
}

.login-panel.lamp-blackout .form-wrapper,
.login-panel.lamp-blackout .login-footer {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(16px) scale(0.96) !important;
    filter: brightness(0) blur(8px) !important;
}

/* Position in Dashboard */
.dashboard-lamp-pos {
    position: absolute;
    top: 0;
    right: 170px;
    z-index: 95;
}

@media (max-width: 1024px) {
    .dashboard-lamp-pos {
        right: 110px;
        transform: scale(0.85);
        transform-origin: top center;
    }
}

@media (max-width: 640px) {
    .dashboard-lamp-pos {
        right: 80px;
        transform: scale(0.75);
        transform-origin: top center;
    }
    .login-lamp-center {
        transform: translateX(-50%) scale(0.85);
        transform-origin: top center;
    }
}

/* ============================================================
   BAGIAN 6: FOTO DOKUMENTASI SPJ (FORM & PRINT STYLES)
   ============================================================ */
.foto-spj-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 15px;
}

@media (max-width: 1024px) {
    .foto-spj-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .foto-spj-grid-container {
        grid-template-columns: 1fr;
    }
}

.foto-spj-slot {
    background: var(--bg-surface);
    border: 1.5px dashed var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.foto-spj-slot:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.foto-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slot-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.btn-slot-delete {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-slot-delete:hover {
    background: #fca5a5;
}

.foto-dropzone {
    min-height: 115px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 12px;
    text-align: center;
    transition: background 0.2s;
}

.foto-dropzone:hover {
    background: rgba(59, 130, 246, 0.08);
}

.foto-dropzone svg {
    width: 28px;
    height: 28px;
    color: #3b82f6;
}

.dropzone-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.dropzone-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.foto-preview-wrapper {
    position: relative;
    width: 100%;
    height: 115px;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.foto-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-change-photo {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 0.72rem;
    border-radius: 6px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    font-weight: 500;
    transition: background 0.2s;
}

.btn-change-photo:hover {
    background: rgba(15, 23, 42, 0.95);
}

.foto-caption-group {
    width: 100%;
}

.foto-caption-input {
    font-size: 0.8rem;
    padding: 7px 10px;
    border-radius: 8px;
    width: 100%;
}

/* Print Styles for Foto Dokumentasi SPJ */
.foto-dokumentasi-print-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: start;
    width: 100%;
    flex: 1;
}

.print-foto-card {
    border: 1.5px solid #94a3b8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    page-break-inside: avoid;
    break-inside: avoid;
}

.print-foto-img-wrap {
    width: 100%;
    height: 74mm;
    max-height: 75mm;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #cbd5e1;
}

.print-foto-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.print-foto-caption {
    padding: 6px 10px;
    font-size: 8pt;
    line-height: 1.35;
    color: #0f172a;
    background: #f8fafc;
    font-weight: 500;
    min-height: 16px;
}

.print-foto-caption .caption-num {
    font-weight: 700;
    color: #1e3a8a;
    margin-right: 4px;
}

@media print {
    .nota-foto-container {
        display: flex !important;
        page-break-before: always !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
    }

    /* Strict hiding of print-hide and inactive print views */
    .print-hide,
    .print-hide *,
    #print-area > .print-hide,
    #print-sppd-pages.print-hide,
    #page-gaji.print-hide,
    #page-kwitansi.print-hide,
    #print-nota-pages.print-hide,
    #page-audit-report.print-hide,
    #page-tagihan-bosp.print-hide,
    #batch-print-area.print-hide,
    [style*="display: none"],
    [style*="display:none"],
    [style*="display: none"] *,
    [style*="display:none"] * {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        page-break-before: auto !important;
        page-break-after: auto !important;
        break-before: auto !important;
        break-after: auto !important;
    }

    /* When printing Daftar Gaji Guru / Perjalanan Dinas, strictly show only #page-gaji (single landscape page) */
    #print-area.print-active-page-gaji > *:not(#page-gaji),
    #print-area.print-active-page-gaji #print-sppd-pages,
    #print-area.print-active-page-gaji #print-sppd-pages *,
    #print-area.print-active-page-gaji .sppd-container {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        page-break-before: auto !important;
        page-break-after: auto !important;
        break-before: auto !important;
        break-after: auto !important;
    }

    #page-gaji {
        page-break-before: auto !important;
        page-break-after: auto !important;
        page-break-inside: avoid !important;
        break-before: auto !important;
        break-after: auto !important;
        break-inside: avoid !important;
    }

    /* SPPD print container rules (strictly active only when NOT hidden) */
    #print-sppd-pages:not(.print-hide) {
        width: 100% !important;
    }

    #print-sppd-pages:not(.print-hide) .sppd-container,
    #batch-print-area .sppd-container {
        display: flex !important;
        flex-direction: column !important;
        width: 210mm !important;
        min-height: 297mm !important;
        padding: 15mm 18mm !important;
        box-sizing: border-box !important;
        background: #fff !important;
        color: #000 !important;
        font-family: 'Times New Roman', Times, serif !important;
        font-size: 11pt !important;
    }

    #print-sppd-pages:not(.print-hide) #page-sppd-lembar1,
    #print-sppd-pages:not(.print-hide) #page-sppd-lembar2,
    #batch-print-area #page-sppd-lembar1,
    #batch-print-area #page-sppd-lembar2 {
        page-break-before: always !important;
    }

    #print-sppd-pages:not(.print-hide) #page-sppd-lembar2,
    #batch-print-area #page-sppd-lembar2 {
        page-break-after: auto !important;
    }
}

/* Screen & Common SPPD Styles */
.sppd-container {
    font-family: 'Times New Roman', Times, serif !important;
    color: #000 !important;
}

.sppd-container .k-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 3px solid #000 !important;
    padding-bottom: 6px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
}

.sppd-container .k-logo.left,
.sppd-container .k-logo.right {
    width: 75px !important;
    height: 75px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
}

.sppd-container .k-header-text {
    flex: 1 !important;
    text-align: center !important;
    padding: 0 10px !important;
    line-height: 1.25 !important;
}

.sppd-container .k-header-text h1 {
    font-size: 13pt !important;
    margin: 0 0 2px 0 !important;
    font-weight: bold !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    font-family: 'Times New Roman', Times, serif !important;
    color: #000 !important;
}

.sppd-container .k-header-text h2 {
    font-size: 15.5pt !important;
    margin: 0 0 3px 0 !important;
    font-weight: bold !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    font-family: 'Times New Roman', Times, serif !important;
    color: #000 !important;
}

.sppd-container .k-header-text p.out-alamat {
    font-size: 9.5pt !important;
    margin: 0 0 2px 0 !important;
    white-space: nowrap !important;
    font-family: 'Times New Roman', Times, serif !important;
    color: #000 !important;
}

.sppd-container .k-header-text p.out-kontak {
    font-size: 9pt !important;
    margin: 0 !important;
    white-space: nowrap !important;
    font-style: italic !important;
    font-family: 'Times New Roman', Times, serif !important;
    color: #000 !important;
}

.sppd-table-8point {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
}

.sppd-table-8point td {
    border: 1px solid #000;
    padding: 6px 8px;
    font-family: 'Times New Roman', Times, serif;
    color: #000;
}

.sppd-visum-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
}

.sppd-visum-table th,
.sppd-visum-table td {
    border: 1px solid #000;
    font-family: 'Times New Roman', Times, serif;
    color: #000;
}

/* =========================================
   STEMPEL & TANDA TANGAN DIGITAL (E-SIGN & E-STAMP)
   ========================================= */
.digital-sig-wrap {
    position: relative;
    width: 100%;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
    pointer-events: none;
}

.digital-sig-img {
    max-height: 64px;
    max-width: 165px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.digital-stamp-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-88%, -50%) rotate(-6deg);
    width: 82px;
    height: 82px;
    object-fit: contain;
    opacity: 0.88;
    z-index: 1;
    mix-blend-mode: multiply;
}

.digital-sig-wrap:not(:has(.digital-sig-img)) .digital-stamp-img {
    transform: translate(-50%, -50%) rotate(-6deg);
}

/* Quick Toggle Button di Toolbar Dokumen */
.quick-esign-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    user-select: none;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Header & Toolbar Action Buttons */
.view-section-header .btn-primary,
.view-section-header .btn-secondary,
.header-actions .btn-primary,
.header-actions .btn-secondary,
.view-section > div:first-child .btn-primary,
.view-section > div:first-child .btn-secondary {
    width: auto;
}

.quick-esign-toggle-btn:hover {
    border-color: var(--primary-color);
}

.quick-esign-toggle-btn.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #10b981;
}

.quick-esign-toggle-btn .toggle-switch-pill {
    width: 32px;
    height: 18px;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
}

.quick-esign-toggle-btn.active .toggle-switch-pill {
    background: #10b981;
}

.quick-esign-toggle-btn .toggle-switch-pill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.quick-esign-toggle-btn.active .toggle-switch-pill::after {
    transform: translateX(14px);
}

/* Styling Card Pengaturan E-Sign */
.esign-preview-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.esign-preview-box {
    width: 140px;
    height: 100px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.esign-preview-box.stamp-shape {
    border-radius: 50%;
    width: 110px;
    height: 110px;
}

.esign-preview-placeholder {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 6px;
}

@media print {
    .digital-sig-wrap {
        display: flex !important;
    }
    .digital-stamp-img {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .quick-esign-toggle-btn {
        display: none !important;
    }
}

/* Multi-step Form Wizard (SPPD) */
.sppd-step-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sppd-step-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.sppd-step-item:hover {
    border-color: rgba(2, 132, 199, 0.5);
    background: rgba(2, 132, 199, 0.05);
}

.sppd-step-item.active {
    background: rgba(2, 132, 199, 0.12);
    border-color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

.sppd-step-item.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

.sppd-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
    background: var(--card-bg, #334155);
    color: var(--text-muted);
    border: 1.5px solid var(--border-color);
}

.sppd-step-item.active .sppd-step-num {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.sppd-step-item.completed .sppd-step-num {
    background: #10b981;
    color: #fff;
    border-color: transparent;
}

.sppd-step-content-box {
    animation: fadeInSppdStep 0.25s ease forwards;
}

@keyframes fadeInSppdStep {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .sppd-step-bar {
        flex-direction: column;
        gap: 10px;
    }
}

