:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    background-color: var(--bg-color);
    color-scheme: dark;
}
[data-theme="light"],
html[data-theme="light"] {
    color-scheme: light;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body.role-siswa {
    background-color: var(--bg-color) !important;
    border: none !important;
    color: var(--text-main) !important;
}

/* Navigasi & Panel Khusus Role Orang Tua: 3 Menu (Dashboard, Rincian & Riwayat, Pengaturan Akun) */
body.role-orang-tua .sidebar-nav .nav-item:not(#nav-orang-tua):not(#nav-orang-tua-riwayat):not(#nav-profile),
html.role-orang-tua body .sidebar-nav .nav-item:not(#nav-orang-tua):not(#nav-orang-tua-riwayat):not(#nav-profile) {
    display: none !important;
}
body.role-orang-tua #nav-orang-tua,
body.role-orang-tua #nav-orang-tua-riwayat,
body.role-orang-tua #nav-profile,
html.role-orang-tua body #nav-orang-tua,
html.role-orang-tua body #nav-orang-tua-riwayat,
html.role-orang-tua body #nav-profile {
    display: flex !important;
}
body.role-orang-tua #panel-overview,
html.role-orang-tua body #panel-overview {
    display: none !important;
}
body.role-orang-tua #panel-orang-tua.active,
body.role-orang-tua #panel-orang-tua-riwayat.active,
body.role-orang-tua #panel-profile.active,
html.role-orang-tua body #panel-orang-tua.active,
html.role-orang-tua body #panel-orang-tua-riwayat.active,
html.role-orang-tua body #panel-profile.active {
    display: block !important;
}
body.role-orang-tua #panel-orang-tua:not(.active),
body.role-orang-tua #panel-orang-tua-riwayat:not(.active),
body.role-orang-tua #panel-profile:not(.active),
html.role-orang-tua body #panel-orang-tua:not(.active),
html.role-orang-tua body #panel-orang-tua-riwayat:not(.active),
html.role-orang-tua body #panel-profile:not(.active) {
    display: none !important;
}

[data-theme="light"] body.role-siswa,
body.light-mode.role-siswa {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Background Shapes for Glassmorphism Effect */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(79, 70, 229, 0.4);
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(236, 72, 153, 0.3);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(16, 185, 129, 0.2);
    top: 40%;
    left: 40%;
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* General Layout */
.view-section {
    display: none !important;
    min-height: 100vh;
}

.view-section.active {
    display: flex !important;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================================================= */
/* AURORA PREMIUM DESIGN SYSTEM - SMARTAPP v2.0 (DEEP NAVY, CYAN, VIOLET)   */
/* ========================================================================= */
:root {
    --aurora-deep-navy: #071426;
    --aurora-midnight: #0B1B35;
    --aurora-blue: #1769FF;
    --aurora-cyan: #00D9FF;
    --aurora-violet: #8B5CF6;
    --aurora-purple: #A855F7;
    --aurora-text-primary: #F8FAFC;
    --aurora-text-secondary: #A7B7D0;
    --aurora-card-bg: rgba(11, 27, 53, 0.72);
    --aurora-card-border: rgba(255, 255, 255, 0.09);
    --aurora-panel-bg: rgba(7, 20, 38, 0.88);
}

#view-login {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: #071426;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 217, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 45% at 90% 70%, rgba(139, 92, 246, 0.09) 0%, transparent 55%),
        linear-gradient(180deg, #071426 0%, #0B1B35 100%);
    color: var(--aurora-text-primary);
}

/* Aurora Dynamic Floating Blobs & Light Trails */
.smartapp-aurora-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.aurora-glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
    animation: none !important; /* Statis: 0% GPU repainting overhead */
}

.aurora-blob-cyan {
    top: -8%;
    right: 15%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.32) 0%, rgba(23, 105, 255, 0.12) 50%, transparent 70%);
}

.aurora-blob-blue {
    bottom: -5%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(23, 105, 255, 0.30) 0%, rgba(139, 92, 246, 0.12) 50%, transparent 70%);
}

.aurora-blob-violet {
    top: 35%;
    left: 40%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(0, 217, 255, 0.08) 50%, transparent 70%);
}

/* Light Trails / Ambient Glow Arcs (Statis & Ringan) */
.aurora-light-trail {
    display: none !important;
}

/* Luminous Celestial Aurora Ribbon Arcs: Dinonaktifkan karena SVG GaussianBlur 35px membebani GPU */
.aurora-ribbon-canvas {
    display: none !important;
}

/* Ambient Starlight Particles */
.aurora-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.aurora-stars .star {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 217, 255, 0.6);
    opacity: 0.6;
    animation: none !important;
}

.star.s1 { top: 12%; left: 18%; opacity: 0.7; }
.star.s2 { top: 25%; left: 42%; opacity: 0.5; }
.star.s3 { top: 78%; left: 12%; opacity: 0.8; }
.star.s4 { top: 68%; left: 55%; opacity: 0.6; }
.star.s5 { top: 18%; left: 75%; opacity: 0.75; }
.star.s6 { top: 85%; left: 82%; opacity: 0.65; }
.star.s7 { top: 40%; left: 22%; opacity: 0.55; }
.star.s8 { top: 52%; left: 92%; opacity: 0.7; }

/* Subtle Digital Grid Overlay */
.aurora-grid-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(0, 217, 255, 0.10) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

@keyframes auroraFloatCyan {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-40px, 60px) scale(1.12); opacity: 0.65; }
    100% { transform: translate(50px, -30px) scale(0.95); opacity: 0.45; }
}

@keyframes auroraFloatBlue {
    0% { transform: translate(0, 0) scale(1); opacity: 0.45; }
    50% { transform: translate(60px, -50px) scale(1.15); opacity: 0.6; }
    100% { transform: translate(-30px, 40px) scale(0.92); opacity: 0.4; }
}

@keyframes auroraFloatViolet {
    0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    50% { transform: translate(-50px, -40px) scale(1.1); opacity: 0.55; }
    100% { transform: translate(40px, 30px) scale(0.9); opacity: 0.3; }
}

@keyframes auroraTrailSweep {
    0% { opacity: 0.3; transform: rotate(-25deg) scale(0.95); }
    100% { opacity: 0.55; transform: rotate(-18deg) scale(1.08); }
}

/* Aura Light Mode: Luminous Daylight Sky Atmosphere */
[data-theme="light"] #view-login,
body.light-mode #view-login {
    background-color: #f0f7ff !important;
    background-image: 
        radial-gradient(ellipse 90% 65% at 50% -15%, rgba(56, 189, 248, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 65%, rgba(139, 92, 246, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse 65% 55% at 15% 75%, rgba(2, 132, 199, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #eef5ff 100%) !important;
    color: #0f172a !important;
}

[data-theme="light"] .smartapp-aurora-bg,
body.light-mode .smartapp-aurora-bg {
    display: block !important;
    opacity: 0.95;
}

[data-theme="light"] .aurora-glow-blob,
body.light-mode .aurora-glow-blob {
    mix-blend-mode: multiply;
    filter: blur(65px);
    opacity: 0.45;
}

[data-theme="light"] .aurora-blob-cyan,
body.light-mode .aurora-blob-cyan {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.5) 0%, rgba(2, 132, 199, 0.2) 50%, transparent 70%);
}

[data-theme="light"] .aurora-blob-blue,
body.light-mode .aurora-blob-blue {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.38) 0%, rgba(139, 92, 246, 0.18) 50%, transparent 70%);
}

[data-theme="light"] .aurora-blob-violet,
body.light-mode .aurora-blob-violet {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.32) 0%, rgba(56, 189, 248, 0.18) 50%, transparent 70%);
}

[data-theme="light"] .aurora-ribbon-canvas,
body.light-mode .aurora-ribbon-canvas {
    mix-blend-mode: multiply;
    opacity: 0.55;
}

[data-theme="light"] .aurora-grid-overlay,
body.light-mode .aurora-grid-overlay {
    background-image: radial-gradient(rgba(2, 132, 199, 0.14) 1px, transparent 1px);
    opacity: 0.5;
}

[data-theme="light"] .aurora-stars .star,
body.light-mode .aurora-stars .star {
    background: #0284c7;
    box-shadow: 0 0 6px #0284c7, 0 0 10px rgba(56, 189, 248, 0.8);
}

.login-page-container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    position: relative;
    z-index: 5;
}

/* ================= Bagian Hero Showcase di Sisi Kiri (Desktop) ================= */
.login-hero-showcase {
    flex: 1.25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 10px;
    z-index: 5;
    animation: fadeInHero 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Eyebrow Badge */
.hero-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.10);
    border: 1.5px solid rgba(0, 217, 255, 0.38);
    color: #00D9FF;
    font-size: 0.73rem;
    font-weight: 750;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    width: fit-content;
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.22);
}

.eyebrow-sparkle {
    font-size: 0.85rem;
    color: #00D9FF;
}

/* Headline */
.login-hero-headline {
    font-size: 2.35rem;
    font-weight: 850;
    line-height: 1.2;
    color: #F8FAFC;
    margin: 0 0 8px 0;
    letter-spacing: -0.6px;
}

.gradient-text-hero {
    background: linear-gradient(90deg, #00D9FF 0%, #1769FF 55%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 25px rgba(0, 217, 255, 0.3));
}

/* Lead text */
.login-hero-lead {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--aurora-text-secondary);
    margin: 0 0 16px 0;
    max-width: 600px;
}

/* ================= 3-Row Interactive Feature Carousel ================= */
.login-hero-carousel-container {
    width: 100%;
    position: relative;
    margin-top: 2px;
}

.carousel-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
    flex-wrap: nowrap; /* SEJAJAR: JANGAN KE BAWAH */
    width: 100%;
    box-sizing: border-box;
}

.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap; /* SEJAJAR */
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.carousel-dots::-webkit-scrollbar {
    display: none;
}

.carousel-dot {
    background: rgba(11, 27, 53, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--aurora-text-secondary);
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.carousel-dot .dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
    transition: all 0.24s ease;
}

.carousel-dot:hover {
    background: rgba(0, 217, 255, 0.12);
    border-color: rgba(0, 217, 255, 0.4);
    color: #F8FAFC;
    transform: translateY(-1px);
}

.carousel-dot.active {
    background: rgba(0, 217, 255, 0.18);
    border: 1.5px solid #00D9FF;
    color: #00D9FF;
    font-weight: 750;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.42), inset 0 0 10px rgba(0, 217, 255, 0.15);
}

.carousel-dot.active .dot-indicator {
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: #00D9FF;
    border-radius: 1.5px;
    box-shadow: 0 0 10px #00D9FF, 0 0 20px #00D9FF;
}

.carousel-arrows {
    display: flex;
    gap: 7px;
    align-items: center;
}

.carousel-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(11, 27, 53, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--aurora-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.carousel-arrow-btn:hover {
    background: rgba(0, 217, 255, 0.18);
    border-color: #00D9FF;
    color: #00D9FF;
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.35);
    transform: translateY(-1px);
}

.hero-carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 18px;
    contain: paint;
}

.hero-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    will-change: transform;
}

.hero-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

/* ================= 3-Row Fixed Grid per Slide (2 Kolom x 3 Baris = 6 Kartu) ================= */
.login-hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 10px;
    overflow: visible;
    padding: 2px;
}

.hero-glass-card {
    display: flex;
    flex-direction: column;
    padding: 13px 15px 12px 15px;
    border-radius: 16px;
    background: rgba(11, 27, 53, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    contain: content;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hero-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.35), transparent);
    opacity: 0.7;
    transition: all 0.25s ease;
}

.hero-glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 217, 255, 0.55);
    background: rgba(15, 34, 64, 0.85);
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        0 14px 30px -4px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 217, 255, 0.24);
}

.hero-glass-card:hover::before {
    background: linear-gradient(90deg, transparent, #00D9FF, transparent);
    opacity: 1;
}

.hero-glass-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hero-glass-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

/* Individual Icon Themes */
.hero-glass-icon.icon-ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.hero-glass-icon.icon-cbt {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(16, 185, 129, 0.25));
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}

.hero-glass-icon.icon-lms {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.hero-glass-icon.icon-meet {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.hero-glass-icon.icon-ortu {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(244, 63, 94, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.hero-glass-icon.icon-mapel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

.hero-glass-icon.icon-rapor {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(244, 63, 94, 0.25));
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f472b6;
}

.hero-glass-icon.icon-bk {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.25), rgba(249, 115, 22, 0.25));
    border: 1px solid rgba(251, 113, 133, 0.4);
    color: #fda4af;
}

.hero-glass-icon.icon-pelanggaran {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.25));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.hero-glass-icon.icon-izin {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(20, 184, 166, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.hero-glass-icon.icon-tugas {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
}

.hero-glass-icon.icon-sarpras {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}

.hero-glass-icon.icon-evoting {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(217, 70, 239, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.hero-glass-icon.icon-suara {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(245, 158, 11, 0.25));
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #facc15;
}

.hero-glass-icon.icon-chat {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(20, 184, 166, 0.25));
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #22d3ee;
}

.hero-glass-icon.icon-fiturplus {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.hero-glass-icon.icon-keuangan {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(132, 204, 22, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.hero-glass-icon.icon-mesin {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(234, 179, 8, 0.25));
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fb923c;
}

.hero-glass-icon.icon-telegram {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.hero-glass-icon.icon-bukutamu {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.hero-glass-icon.icon-persuratan {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

.hero-glass-icon.icon-aset {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.hero-glass-icon.icon-qr {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}

.hero-glass-icon.icon-mutasi {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(249, 115, 22, 0.25));
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #facc15;
}

.hero-glass-icon.icon-security {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

/* Slide 5 Icon Themes: Koperasi, Finansial & Akademik */
.hero-glass-icon.icon-koperasi {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.hero-glass-icon.icon-simpanpinjam {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #2dd4bf;
}

.hero-glass-icon.icon-tapel {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.hero-glass-icon.icon-promosi {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #10b981;
}

.hero-glass-icon.icon-kasir {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(20, 184, 166, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.hero-glass-icon.icon-laporankop {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(16, 185, 129, 0.25));
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #c084fc;
}

/* Slide 5 Chips */
.chip-koperasi {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.chip-simpanpinjam {
    background: rgba(20, 184, 166, 0.12);
    color: #5eead4;
    border: 1px solid rgba(20, 184, 166, 0.35);
}

.chip-tapel {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.chip-promosi {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.chip-kasir {
    background: rgba(245, 158, 11, 0.12);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.chip-laporankop {
    background: rgba(139, 92, 246, 0.12);
    color: #d8b4fe;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Micro Chip Tags */
.card-chip {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chip-ai {
    background: rgba(168, 85, 247, 0.12);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.chip-cbt {
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.chip-lms {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.chip-meet {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.chip-ortu {
    background: rgba(245, 158, 11, 0.12);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.chip-mapel {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.chip-rapor {
    background: rgba(236, 72, 153, 0.12);
    color: #fbcfe8;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.chip-bk {
    background: rgba(251, 113, 133, 0.12);
    color: #ffe4e6;
    border: 1px solid rgba(251, 113, 133, 0.3);
}

.chip-pelanggaran {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.chip-izin {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.chip-tugas {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.chip-sarpras {
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.chip-evoting {
    background: rgba(168, 85, 247, 0.12);
    color: #e879f9;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.chip-suara {
    background: rgba(234, 179, 8, 0.12);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.chip-chat {
    background: rgba(6, 182, 212, 0.12);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.chip-fiturplus {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.chip-keuangan {
    background: rgba(16, 185, 129, 0.12);
    color: #86efac;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.chip-mesin {
    background: rgba(249, 115, 22, 0.12);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.chip-telegram {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.chip-bukutamu {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.chip-persuratan {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.chip-aset {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.chip-qr {
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.chip-mutasi {
    background: rgba(234, 179, 8, 0.12);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.chip-security {
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-glass-content {
    display: flex;
    flex-direction: column;
}

.hero-glass-title {
    margin: 0 0 3px 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.hero-glass-desc {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #94a3b8;
}

/* =========================================================================
   LIGHT MODE OVERRIDES: HERO BRAND SHOWCASE (SISI KIRI)
   ========================================================================= */
[data-theme="light"] .hero-eyebrow-badge,
body.light-mode .hero-eyebrow-badge {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #0369a1;
}

[data-theme="light"] .eyebrow-sparkle,
body.light-mode .eyebrow-sparkle {
    color: #0284c7;
}

[data-theme="light"] .login-hero-headline,
body.light-mode .login-hero-headline {
    color: #0f172a !important;
}

[data-theme="light"] .gradient-text-hero,
body.light-mode .gradient-text-hero {
    background: linear-gradient(90deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.25));
}

[data-theme="light"] .login-hero-lead,
body.light-mode .login-hero-lead {
    color: #334155 !important;
}

[data-theme="light"] .carousel-dot,
body.light-mode .carousel-dot {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .carousel-dot .dot-indicator,
body.light-mode .carousel-dot .dot-indicator {
    background: #94a3b8;
}

[data-theme="light"] .carousel-dot:hover,
body.light-mode .carousel-dot:hover {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

[data-theme="light"] .carousel-dot.active,
body.light-mode .carousel-dot.active {
    background: rgba(2, 132, 199, 0.12) !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .carousel-dot.active .dot-indicator,
body.light-mode .carousel-dot.active .dot-indicator {
    background: #0284c7 !important;
    box-shadow: 0 0 8px #0284c7 !important;
}

[data-theme="light"] .carousel-arrow-btn,
body.light-mode .carousel-arrow-btn {
    background: rgba(255, 255, 255, 0.90) !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .carousel-arrow-btn:hover,
body.light-mode .carousel-arrow-btn:hover {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.20) !important;
}

[data-theme="light"] .hero-glass-card,
body.light-mode .hero-glass-card {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1.5px solid rgba(203, 213, 225, 0.85) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    backdrop-filter: blur(16px) !important;
}

[data-theme="light"] .hero-glass-card:hover,
body.light-mode .hero-glass-card:hover {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.16) !important;
    transform: translateY(-3px) !important;
}

[data-theme="light"] .hero-glass-title,
body.light-mode .hero-glass-title {
    color: #0f172a;
}

[data-theme="light"] .hero-glass-desc,
body.light-mode .hero-glass-desc {
    color: #475569;
}

/* Card Icons (Light Mode) */
[data-theme="light"] .hero-glass-icon,
body.light-mode .hero-glass-icon {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-glass-icon.icon-ai,
body.light-mode .hero-glass-icon.icon-ai {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.10), rgba(6, 182, 212, 0.10));
    border: 1px solid rgba(147, 51, 234, 0.22);
    color: #7e22ce;
}

[data-theme="light"] .hero-glass-icon.icon-cbt,
body.light-mode .hero-glass-icon.icon-cbt {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.10), rgba(16, 185, 129, 0.10));
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0284c7;
}

[data-theme="light"] .hero-glass-icon.icon-lms,
body.light-mode .hero-glass-icon.icon-lms {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(99, 102, 241, 0.10));
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
}

[data-theme="light"] .hero-glass-icon.icon-ortu,
body.light-mode .hero-glass-icon.icon-ortu {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.10), rgba(244, 63, 94, 0.10));
    border: 1px solid rgba(217, 119, 6, 0.22);
    color: #b45309;
}

[data-theme="light"] .hero-glass-icon.icon-mapel,
body.light-mode .hero-glass-icon.icon-mapel {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(124, 58, 237, 0.10));
    border: 1px solid rgba(79, 70, 229, 0.22);
    color: #4338ca;
}

[data-theme="light"] .hero-glass-icon.icon-rapor,
body.light-mode .hero-glass-icon.icon-rapor {
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.10), rgba(225, 29, 72, 0.10));
    border: 1px solid rgba(219, 39, 119, 0.22);
    color: #be185d;
}

[data-theme="light"] .hero-glass-icon.icon-bk,
body.light-mode .hero-glass-icon.icon-bk {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.10), rgba(234, 88, 12, 0.10));
    border: 1px solid rgba(225, 29, 72, 0.22);
    color: #be123c;
}

[data-theme="light"] .hero-glass-icon.icon-pelanggaran,
body.light-mode .hero-glass-icon.icon-pelanggaran {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.10), rgba(217, 119, 6, 0.10));
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #b91c1c;
}

[data-theme="light"] .hero-glass-icon.icon-izin,
body.light-mode .hero-glass-icon.icon-izin {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.10), rgba(13, 148, 136, 0.10));
    border: 1px solid rgba(5, 150, 105, 0.22);
    color: #047857;
}

[data-theme="light"] .hero-glass-icon.icon-tugas,
body.light-mode .hero-glass-icon.icon-tugas {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(37, 99, 235, 0.10));
    border: 1px solid rgba(124, 58, 237, 0.22);
    color: #6d28d9;
}

[data-theme="light"] .hero-glass-icon.icon-sarpras,
body.light-mode .hero-glass-icon.icon-sarpras {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.10), rgba(8, 145, 178, 0.10));
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0284c7;
}

[data-theme="light"] .hero-glass-icon.icon-evoting,
body.light-mode .hero-glass-icon.icon-evoting {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.10), rgba(192, 38, 211, 0.10));
    border: 1px solid rgba(147, 51, 234, 0.22);
    color: #7e22ce;
}

[data-theme="light"] .hero-glass-icon.icon-suara,
body.light-mode .hero-glass-icon.icon-suara {
    background: linear-gradient(135deg, rgba(202, 138, 4, 0.10), rgba(217, 119, 6, 0.10));
    border: 1px solid rgba(202, 138, 4, 0.22);
    color: #a16207;
}

[data-theme="light"] .hero-glass-icon.icon-chat,
body.light-mode .hero-glass-icon.icon-chat {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.10), rgba(13, 148, 136, 0.10));
    border: 1px solid rgba(8, 145, 178, 0.22);
    color: #0e7490;
}

[data-theme="light"] .hero-glass-icon.icon-fiturplus,
body.light-mode .hero-glass-icon.icon-fiturplus {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.10), rgba(124, 58, 237, 0.10));
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0284c7;
}

[data-theme="light"] .hero-glass-icon.icon-keuangan,
body.light-mode .hero-glass-icon.icon-keuangan {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.10), rgba(101, 163, 13, 0.10));
    border: 1px solid rgba(5, 150, 105, 0.22);
    color: #047857;
}

[data-theme="light"] .hero-glass-icon.icon-mesin,
body.light-mode .hero-glass-icon.icon-mesin {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.10), rgba(202, 138, 4, 0.10));
    border: 1px solid rgba(234, 88, 12, 0.22);
    color: #c2410c;
}

[data-theme="light"] .hero-glass-icon.icon-telegram,
body.light-mode .hero-glass-icon.icon-telegram {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.10), rgba(37, 99, 235, 0.10));
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0284c7;
}

/* Card Chips (Light Mode) */
[data-theme="light"] .chip-ai,
body.light-mode .chip-ai {
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(147, 51, 234, 0.25);
    color: #6b21a8;
}

[data-theme="light"] .chip-cbt,
body.light-mode .chip-cbt {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0369a1;
}

[data-theme="light"] .chip-lms,
body.light-mode .chip-lms {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1e40af;
}

[data-theme="light"] .chip-ortu,
body.light-mode .chip-ortu {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.25);
    color: #92400e;
}

[data-theme="light"] .chip-mapel,
body.light-mode .chip-mapel {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.25);
    color: #3730a3;
}

[data-theme="light"] .chip-rapor,
body.light-mode .chip-rapor {
    background: rgba(219, 39, 119, 0.08);
    border-color: rgba(219, 39, 119, 0.25);
    color: #9d174d;
}

[data-theme="light"] .chip-bk,
body.light-mode .chip-bk {
    background: rgba(225, 29, 72, 0.08);
    border-color: rgba(225, 29, 72, 0.25);
    color: #9f1239;
}

[data-theme="light"] .chip-pelanggaran,
body.light-mode .chip-pelanggaran {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.25);
    color: #991b1b;
}

[data-theme="light"] .chip-izin,
body.light-mode .chip-izin {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.25);
    color: #065f46;
}

[data-theme="light"] .chip-tugas,
body.light-mode .chip-tugas {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
    color: #5b21b6;
}

[data-theme="light"] .chip-sarpras,
body.light-mode .chip-sarpras {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0369a1;
}

[data-theme="light"] .chip-evoting,
body.light-mode .chip-evoting {
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(147, 51, 234, 0.25);
    color: #6b21a8;
}

[data-theme="light"] .chip-suara,
body.light-mode .chip-suara {
    background: rgba(202, 138, 4, 0.08);
    border-color: rgba(202, 138, 4, 0.25);
    color: #854d0e;
}

[data-theme="light"] .chip-chat,
body.light-mode .chip-chat {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.25);
    color: #155e75;
}

[data-theme="light"] .chip-fiturplus,
body.light-mode .chip-fiturplus {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0369a1;
}

[data-theme="light"] .chip-keuangan,
body.light-mode .chip-keuangan {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.25);
    color: #065f46;
}

[data-theme="light"] .chip-mesin,
body.light-mode .chip-mesin {
    background: rgba(234, 88, 12, 0.08);
    border-color: rgba(234, 88, 12, 0.25);
    color: #9a3412;
}

[data-theme="light"] .chip-telegram,
body.light-mode .chip-telegram {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0369a1;
}

/* Bagian Form Login di Sisi Kanan */
.login-wrapper {
    flex: 0 0 440px;
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    position: relative;
    z-index: 5;
    animation: fadeInLogin 0.8s ease-out;
}

@keyframes fadeInLogin {
    from {
        opacity: 0;
        transform: translateX(25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sembunyikan ikon mata bawaan browser (Edge/Chrome) pada login password */
#password::-ms-reveal,
#password::-ms-clear {
    display: none !important;
}
#password::-webkit-credentials-auto-fill-button,
#password::-webkit-textfield-decoration-container {
    visibility: hidden;
    pointer-events: none;
}

.login-container {
    width: 100%;
    position: relative;
    z-index: 5;
    margin-top: 0;
    padding: 30px 32px 24px 32px;
    border-radius: 28px;
    background: rgba(8, 20, 42, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(2, 132, 199, 0.2);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    animation: none !important; /* Statis & Bebas Lag: Hilangkan continuous keyframe repaint */
    contain: layout style;
}

.smartapp-version-badge {
    font-size: 0.38em;
    font-weight: 750;
    color: #00D9FF;
    letter-spacing: 0.5px;
    vertical-align: super;
    background: rgba(0, 217, 255, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(0, 217, 255, 0.35);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.25);
    margin-left: 4px;
}

/* Responsive Tablet & Mobile (<= 991px): Pusatkan Form, Sembunyikan Hero */
@media (max-width: 991px) {
    #view-login {
        padding: 16px 12px !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #070e1b !important; /* Warna midnight solid tanpa lag */
        background-image: none !important; /* Hapus semua radial-gradient multi-layer */
    }

    /* HILANGKAN SEMUA AURA, GLOW BLOBS, LIGHT TRAILS & ANIMASI BACKGROUND DI MOBILE */
    .smartapp-aurora-bg,
    .aurora-ribbon-canvas,
    .aurora-glow-blob,
    .aurora-light-trail,
    .aurora-grid-overlay,
    .aurora-stars,
    .bg-shape,
    .star,
    .login-background-mesh {
        display: none !important;
        animation: none !important;
        filter: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .login-page-container {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .login-hero-showcase,
    .mobile-features-trigger-wrapper,
    .btn-features-mobile-modal,
    #modalAllFeaturesShowcase {
        display: none !important;
    }

    .login-wrapper {
        flex: 1 !important;
        max-width: 410px !important;
        width: 100% !important;
        margin: 0 auto !important;
        animation: none !important;
        transform: none !important;
    }

    /* CARD LOGIN MOBILE: Bersih, Mewah, Ringan (Tanpa Aura / Glow Neon, Tanpa Filter Berat) */
    .login-container {
        padding: 22px 18px 18px 18px !important;
        border-radius: 20px !important;
        background: #0d192e !important; /* Solid modern dark navy, 0% drop-frame */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important; /* Hapus aura neon cyan tebal */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important; /* Shadow bersih tanpa glow halo */
        animation: none !important; /* Hentikan continuous repaint GPU */
    }

    .login-container .header {
        margin-bottom: 14px !important;
    }

    .login-container .header h1 {
        font-size: 1.6rem !important;
        margin: 4px 0 2px 0 !important;
    }

    .login-container .header p {
        font-size: 0.78rem !important;
    }

    .mobile-login-icon img {
        width: 44px !important;
        height: 44px !important;
    }

    .input-group {
        margin-bottom: 12px !important;
    }

    .input-group input {
        height: 44px !important;
        font-size: 0.92rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-radius: 12px !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .login-portal-group {
        margin-bottom: 12px !important;
    }

    .login-portal-selector {
        padding: 3px !important;
        gap: 4px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .btn-portal-choice {
        padding: 6px 2px !important;
        border-radius: 8px !important;
    }

    .btn-portal-choice i {
        font-size: 0.95rem !important;
    }

    .btn-portal-choice .portal-choice-title {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.2px !important;
    }

    .login-submit-row {
        gap: 8px !important;
        margin-top: 4px !important;
    }

    .login-submit-row .btn-primary {
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
    }

    .btn-face-login-icon {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(147, 51, 234, 0.16) !important;
        border: 1px solid rgba(168, 85, 247, 0.35) !important;
        color: #c084fc !important;
    }

    .google-login-section {
        margin-top: 10px !important;
    }

    .btn-google-login-native {
        height: 42px !important;
        font-size: 0.84rem !important;
        border-radius: 12px !important;
    }

    .public-feature-buttons-grid {
        margin-top: 10px !important;
        gap: 8px !important;
    }

    .public-feature-buttons-grid button {
        height: 40px !important;
        min-height: 40px !important;
        font-size: 0.82rem !important;
        border-radius: 12px !important;
    }
}

[data-theme="light"] .login-container,
body.light-mode .login-container {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
    animation: none !important;
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

[data-theme="light"] .login-brand-badge,
body.light-mode .login-brand-badge {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0284c7;
}

.login-container .header {
    text-align: center;
    margin-bottom: 16px;
}

.login-container .header h1 {
    font-size: 1.85rem;
    letter-spacing: -0.5px;
    margin: 0 0 2px 0;
    color: #f8fafc;
}

[data-theme="light"] .login-container .header h1,
body.light-mode .login-container .header h1 {
    color: #0f172a;
}

.login-container .header h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .login-container .header h1 span,
body.light-mode .login-container .header h1 span {
    background: linear-gradient(135deg, #0284c7, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-container .header p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

[data-theme="light"] .login-container .header p,
body.light-mode .login-container .header p {
    color: #64748b;
}

.login-container .input-group {
    position: relative;
    margin-bottom: 14px;
}

.login-container .input-group input {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 42px;
    background: rgba(3, 11, 24, 0.70);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

[data-theme="light"] .login-container .input-group input,
body.light-mode .login-container .input-group input {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.login-container .input-group input:focus {
    outline: none;
    border-color: #00D9FF;
    background: rgba(3, 11, 24, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.20), 0 0 18px rgba(0, 217, 255, 0.35);
}

.login-container .input-group-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #00D9FF;
    font-size: 0.90rem;
    pointer-events: none;
    z-index: 3;
    transition: all 0.25s ease;
}

.login-container .input-group label {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    color: #8FA6C1;
    font-size: 0.88rem;
    pointer-events: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.login-container .input-group input:focus ~ label,
.login-container .input-group input:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #00D9FF;
    background: #08172F;
    padding: 1px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 217, 255, 0.40);
}

[data-theme="light"] .login-container .input-group input:focus ~ label,
[data-theme="light"] .login-container .input-group input:not(:placeholder-shown) ~ label,
body.light-mode .login-container .input-group input:focus ~ label,
body.light-mode .login-container .input-group input:not(:placeholder-shown) ~ label {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7;
}

/* ========================================================================== */
/* LOGIN PORTAL SELECTOR (SMARTAPP, SMARTAPP CBT, SMARTAPP LMS)               */
/* ========================================================================== */
.login-portal-group {
    margin-bottom: 14px;
    width: 100%;
}

.login-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 0 2px;
}

.login-portal-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-portal-label i {
    color: #38bdf8;
    font-size: 0.8rem;
}

.login-portal-selected-badge {
    font-size: 0.72rem;
    font-weight: 750;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.15);
    color: #00D9FF;
    border: 1px solid #00D9FF;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.35);
    transition: all 0.2s ease;
}

.login-portal-selected-badge.badge-cbt {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}

.login-portal-selected-badge.badge-lms {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
}

.login-portal-selected-badge.badge-meet {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

[data-theme="light"] .login-portal-label,
body.light-mode .login-portal-label {
    color: #475569;
}

[data-theme="light"] .login-portal-label i,
body.light-mode .login-portal-label i {
    color: #0284c7;
}

[data-theme="light"] .login-portal-selected-badge,
body.light-mode .login-portal-selected-badge {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .login-portal-selected-badge.badge-cbt,
body.light-mode .login-portal-selected-badge.badge-cbt {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .login-portal-selected-badge.badge-lms,
body.light-mode .login-portal-selected-badge.badge-lms {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="light"] .login-portal-selected-badge.badge-meet,
body.light-mode .login-portal-selected-badge.badge-meet {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.25);
}

.login-portal-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(11, 27, 53, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 4px;
    transition: all 0.25s ease;
}

[data-theme="light"] .login-portal-selector,
body.light-mode .login-portal-selector {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-portal-choice {
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--aurora-text-secondary, #94a3b8);
    text-align: center;
    user-select: none;
}

[data-theme="light"] .btn-portal-choice,
body.light-mode .btn-portal-choice {
    color: #64748b;
}

.btn-portal-choice i {
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-portal-choice .portal-choice-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    white-space: nowrap;
}

.btn-portal-choice:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .btn-portal-choice:hover,
body.light-mode .btn-portal-choice:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

/* Active State: SMARTAPP */
.btn-portal-choice.active[data-portal="smartapp"] {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.btn-portal-choice.active[data-portal="smartapp"] i {
    color: #38bdf8;
    transform: scale(1.1);
}

[data-theme="light"] .btn-portal-choice.active[data-portal="smartapp"],
body.light-mode .btn-portal-choice.active[data-portal="smartapp"] {
    background: #ffffff;
    border-color: #38bdf8;
    color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

/* Active State: SMARTAPP CBT */
.btn-portal-choice.active[data-portal="cbt"] {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.45);
    color: #10b981;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.btn-portal-choice.active[data-portal="cbt"] i {
    color: #10b981;
    transform: scale(1.1);
}

[data-theme="light"] .btn-portal-choice.active[data-portal="cbt"],
body.light-mode .btn-portal-choice.active[data-portal="cbt"] {
    background: #ffffff;
    border-color: #10b981;
    color: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

/* Active State: SMARTAPP LMS */
.btn-portal-choice.active[data-portal="lms"] {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.45);
    color: #f59e0b;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.btn-portal-choice.active[data-portal="lms"] i {
    color: #f59e0b;
    transform: scale(1.1);
}

[data-theme="light"] .btn-portal-choice.active[data-portal="lms"],
body.light-mode .btn-portal-choice.active[data-portal="lms"] {
    background: #ffffff;
    border-color: #f59e0b;
    color: #d97706;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

/* Active State: SMARTAPP Meet */
.btn-portal-choice.active[data-portal="meet"] {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.btn-portal-choice.active[data-portal="meet"] i {
    color: #38bdf8;
    transform: scale(1.1);
}

[data-theme="light"] .btn-portal-choice.active[data-portal="meet"],
body.light-mode .btn-portal-choice.active[data-portal="meet"] {
    background: #ffffff;
    border-color: #38bdf8;
    color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.login-container #btnLogin {
    width: 100%;
    padding: 12px 18px;
    min-height: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, #00D9FF 0%, #1769FF 100%);
    border: none;
    color: #FFFFFF;
    box-shadow: 0 4px 22px rgba(0, 217, 255, 0.45), 0 0 16px rgba(23, 105, 255, 0.30);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    margin-top: 0;
}

.login-container #btnLogin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.65), 0 0 24px rgba(23, 105, 255, 0.45);
    filter: brightness(1.10);
}

.login-container #btnLogin:active {
    transform: translateY(0);
}

.btn-face-login-icon {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.16) !important;
    border: 1.8px solid #A855F7 !important;
    color: #D8B4FE !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.35) !important;
    transition: all 0.22s ease !important;
}

.btn-face-login-icon:hover {
    background: rgba(168, 85, 247, 0.30) !important;
    border-color: #C084FC !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 26px rgba(168, 85, 247, 0.65) !important;
    transform: translateY(-2px);
}

.btn-face-login-icon:active {
    transform: translateY(0);
}

.login-hint {
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Getar saat Login Gagal */
@keyframes shakeFormAnimation {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(2px); }
}

.shake-animation {
    animation: shakeFormAnimation 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Password visibility toggle button */
.input-group-password {
    position: relative;
}

.input-group-password input {
    padding-right: 44px !important;
}

.btn-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 4;
}

.btn-toggle-password:hover,
.btn-toggle-password:active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}

[data-theme="light"] .btn-toggle-password,
body.light-mode .btn-toggle-password {
    color: #64748b;
}

[data-theme="light"] .btn-toggle-password:hover,
body.light-mode .btn-toggle-password:hover {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
}

.mobile-login-icon {
    display: none;
}

/* ========================================================================= */
/* PREMIUM GOOGLE SIGN-IN & SSO CARD STYLING                                 */
/* ========================================================================= */
.google-login-section {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
}

.google-login-separator {
    display: flex;
    align-items: center;
    margin: 10px 0 8px 0;
}

.google-separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.25), rgba(66, 133, 244, 0.45));
}

.google-separator-line.reverse {
    background: linear-gradient(90deg, rgba(66, 133, 244, 0.45), rgba(56, 189, 248, 0.25), transparent);
}

.google-separator-badge {
    padding: 0 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.google-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#g_id_signin_btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#g_id_signin_btn > div {
    margin: 0 auto !important;
}

#g_id_signin_btn iframe {
    border-radius: 10px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.22s ease !important;
}

#g_id_signin_btn iframe:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.35) !important;
}

.btn-google-login-native {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #dadce0;
    color: #3c4043;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0 14px;
}

.btn-google-login-native:hover {
    background: #f8fafc;
    border-color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.25);
    color: #1a73e8;
}

/* Light mode adjustments for Google Login */
[data-theme="light"] .google-login-separator .google-separator-line,
body.light-mode .google-login-separator .google-separator-line {
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.25), rgba(66, 133, 244, 0.45));
}

[data-theme="light"] .google-login-separator .google-separator-line.reverse,
body.light-mode .google-login-separator .google-separator-line.reverse {
    background: linear-gradient(90deg, rgba(66, 133, 244, 0.45), rgba(66, 133, 244, 0.25), transparent);
}

[data-theme="light"] .google-separator-badge,
body.light-mode .google-separator-badge {
    color: #64748b;
}

[data-theme="light"] .btn-google-login-native,
body.light-mode .btn-google-login-native {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-google-login-native:hover,
body.light-mode .btn-google-login-native:hover {
    background: #f8fafc;
    border-color: #4285f4;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.2);
}

/* Theme Toggle Button Inside Login Form Card */
.login-card-theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(11, 27, 53, 0.75);
    border: 1.5px solid rgba(0, 217, 255, 0.38);
    color: #00D9FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.login-card-theme-toggle:hover {
    background: rgba(0, 217, 255, 0.18);
    border-color: #00D9FF;
    color: #FFFFFF;
    transform: scale(1.08) rotate(12deg);
    box-shadow: 0 0 22px rgba(0, 217, 255, 0.55);
}

.login-card-theme-toggle:active {
    transform: scale(0.95);
}

.login-card-theme-toggle .theme-icon-toggle {
    font-size: 1.05rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .login-card-theme-toggle,
body.light-mode .login-card-theme-toggle {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #d97706 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .login-card-theme-toggle:hover,
body.light-mode .login-card-theme-toggle:hover {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
    color: #b45309 !important;
    transform: scale(1.08) rotate(12deg) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25) !important;
}

/* =========================================================================
   PROFILE GOOGLE LINKING CARD & BADGES (DARK & LIGHT MODE)
   ========================================================================= */
.profile-google-card {
    margin-top: 15px;
    border: 1px solid rgba(66, 133, 244, 0.35);
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12), rgba(15, 23, 42, 0.6));
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.25s ease;
}

[data-theme="light"] .profile-google-card,
body.light-mode .profile-google-card {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), #ffffff);
    border: 1px solid rgba(66, 133, 244, 0.28);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.08);
}

[data-theme="light"] .profile-google-card .profile-avatar-title,
body.light-mode .profile-google-card .profile-avatar-title {
    color: #0f172a;
}

[data-theme="light"] .profile-google-card .profile-avatar-desc,
body.light-mode .profile-google-card .profile-avatar-desc {
    color: #475569;
}

.profile-avatar-circle#profileGoogleBox {
    border: 2px solid #4285F4;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .profile-avatar-circle#profileGoogleBox,
body.light-mode .profile-avatar-circle#profileGoogleBox {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
}

.badge-google-status {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.badge-google-unlinked {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid #94a3b8;
    color: #94a3b8;
}

[data-theme="light"] .badge-google-unlinked,
body.light-mode .badge-google-unlinked {
    background: rgba(100, 116, 139, 0.10);
    border: 1px solid #94a3b8;
    color: #475569;
}

.badge-google-linked {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

[data-theme="light"] .badge-google-linked,
body.light-mode .badge-google-linked {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid #10b981;
    color: #047857;
}

.text-highlight-email {
    color: #60a5fa;
}

[data-theme="light"] .text-highlight-email,
body.light-mode .text-highlight-email {
    color: #0284c7;
}

/* =========================================================================
   MODE MOBILE (<= 768px): SIMPEL & LIGHTWEIGHT
   ========================================================================= */
@media (max-width: 768px) {
    #view-login {
        padding: 18px 16px;
        min-height: 100dvh;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-wrapper {
        width: 100%;
        max-width: 380px;
        margin: auto;
        padding: 0;
    }

    /* 2. Kartu Login: Sangat bersih, elegan, dan ringan */
    .login-container {
        margin-top: 0 !important;
        padding: 20px 16px 16px 16px !important;
        border-radius: 18px !important;
        background: rgba(15, 23, 42, 0.92) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(56, 189, 248, 0.22) !important;
        box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.08) !important;
    }

    [data-theme="light"] .login-container,
    body.light-mode .login-container {
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid rgba(2, 132, 199, 0.22) !important;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06), 0 0 20px rgba(2, 132, 199, 0.06) !important;
    }

    /* Ikon identitas aplikasi yang bersih dan ringan di mobile */
    .mobile-login-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 10px auto;
    }

    .mobile-login-icon img {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(56, 189, 248, 0.22);
        border: 1.5px solid rgba(56, 189, 248, 0.35);
        object-fit: cover;
    }

    [data-theme="light"] .mobile-login-icon img,
    body.light-mode .mobile-login-icon img {
        border-color: rgba(2, 132, 199, 0.35);
        box-shadow: 0 8px 20px rgba(2, 132, 199, 0.18);
    }

    .login-container .header {
        margin-bottom: 14px !important;
    }

    .login-container .header h1 {
        font-size: 1.75rem !important;
        letter-spacing: -0.5px;
    }

    .login-container .header p {
        font-size: 0.78rem !important;
    }

    /* Input: Nyaman disentuh & cegah auto-zoom pada iOS */
    .login-container .input-group {
        margin-bottom: 12px !important;
    }

    .login-container .input-group input {
        font-size: 16px !important; /* Cegah auto zoom di iPhone/iPad */
        padding: 9px 12px !important;
        border-radius: 10px !important;
    }

    .login-container #btnLogin {
        padding: 10px 14px !important;
        min-height: 40px !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }

    /* Posisi tombol Light/Dark mode di pojok atas form login mobile */
    .login-card-theme-toggle {
        top: 14px !important;
        right: 14px !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
    }
}


/* Connection Status Badge */
.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.connection-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.connection-status.checking {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.connection-status.checking .status-dot {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
    animation: pulse 1.2s infinite;
}

.connection-status.connected {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.connection-status.connected .status-dot {
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.connection-status.disconnected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.connection-status.disconnected .status-dot {
    background: #f87171;
    box-shadow: 0 0 8px #f87171;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* ================= MAIN APP VIEW ================= */
#view-app {
    flex-direction: row;
}

/* Sidebar & Main Content Base Layout System */
@media (min-width: 769px) {
    .sidebar {
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
        height: 100vh !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0 !important;
        border-right: 1px solid var(--card-border) !important;
        border-top: none !important;
        border-bottom: none !important;
        border-left: none !important;
        z-index: 1000 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-content {
        margin-left: 250px !important;
        width: calc(100% - 250px) !important;
        max-width: calc(100% - 250px) !important;
        flex: 1 !important;
        padding: 18px 24px !important;
        min-height: 100vh !important;
        box-sizing: border-box !important;
        position: relative !important;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @media (min-width: 1200px) {
        .main-content {
            padding: 20px 28px !important;
        }
    }

    @media (min-width: 1600px) {
        .main-content {
            padding: 22px 32px !important;
        }
    }

    .mobile-bottom-nav,
    .mob-radial-backdrop {
        display: none !important;
    }
}


.sidebar-brand {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-border);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sidebar-brand h2 span {
    color: var(--primary);
}

.user-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--card-border);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.user-info .user-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.user-info .avatar,
#sidebarUserAvatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    font-size: 1.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.user-info .avatar i,
#sidebarUserAvatar i {
    font-size: 1.5rem !important;
    line-height: 1 !important;
}

.user-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--text-main, #f8fafc);
    word-break: normal;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-info-baris1 {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.user-info-baris2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#currentUserTelegramBadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 142px;
    line-height: 1.2;
    cursor: pointer;
    border-radius: 6px;
    padding: 2px 4px 2px 0;
    transition: opacity 0.2s ease;
}

#currentUserTelegramBadge:hover {
    opacity: 0.85;
}

#currentUserTelegramBadge .fa-telegram,
#currentUserTelegramBadge .tg-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

#currentUserTelegramBadge .tg-status-text {
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#currentUserTelegramBadge .tg-status-icon {
    font-size: 0.82rem;
    flex-shrink: 0;
}

.user-info-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chat-shortcut-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.35);
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
}

.chat-shortcut-btn i {
    color: #06b6d4;
    font-size: 0.92rem;
}

.notification-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
}

.notification-bell-btn i {
    color: #f59e0b;
    font-size: 0.95rem;
}

.notification-badge-count {
    position: absolute !important;
    top: -3px !important;
    right: -5px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    padding: 1px 4px !important;
    min-width: 15px !important;
    height: 15px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #1e293b !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.chat-shortcut-badge {
    position: absolute !important;
    top: -3px !important;
    right: -5px !important;
    background: #06b6d4 !important;
    color: #ffffff !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    padding: 1px 4px !important;
    min-width: 15px !important;
    height: 15px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #1e293b !important;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.6) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.user-info .chat-shortcut-btn:hover {
    background: rgba(6, 182, 212, 0.25) !important;
    transform: scale(1.08);
}

.user-info .notification-bell-btn:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    transform: scale(1.08);
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 10px 35px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* ========================================================================= */
/* DESKTOP SIDEBAR MENU GROUPING STYLES (HANYA UNTUK TAMPILAN DESKTOP)       */
/* ========================================================================= */
.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.sidebar-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px 4px 10px;
    margin-top: 4px;
    user-select: none;
}

.sidebar-nav-group:first-child .sidebar-group-header {
    padding-top: 2px;
    margin-top: 0;
}

.sidebar-group-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.85px;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.sidebar-group-title i {
    font-size: 0.65rem;
    opacity: 0.8;
}

.sidebar-group-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    margin-left: 6px;
}

[data-theme="light"] .sidebar-group-title,
body.light-mode .sidebar-group-title {
    color: #94a3b8;
}

[data-theme="light"] .sidebar-group-header::after,
body.light-mode .sidebar-group-header::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
}

/* Sembunyikan group jika seluruh nav-item di dalamnya hidden / display: none */
.sidebar-nav-group:not(:has(.nav-item:not([style*="display: none"]):not([style*="display:none"]):not(.hidden))) {
    display: none !important;
}

/* Hanya untuk tampilan desktop: pada mobile (< 769px), sembunyikan grouping header jika dibuka */
@media (max-width: 768px) {
    .sidebar-group-header {
        display: none !important;
    }
    .sidebar-nav-group {
        gap: 0;
    }
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-align: left;
    padding: 12px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.nav-item .nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
}

.nav-item .nav-icon i {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
}

.nav-item:hover .nav-icon i,
.nav-item.active .nav-icon i {
    filter: drop-shadow(0 0 6px currentColor) brightness(1.25);
    transform: scale(1.15);
}

/* Warna Ikon Sidebar Khusus Setiap Menu (Vibrant & Colorful) */
#nav-overview .nav-icon i,
.nav-item[data-target="panel-overview"] .nav-icon i { color: #818cf8 !important; }

#nav-absen-siswa .nav-icon i,
.nav-item[data-target="panel-scan"] .nav-icon i { color: #34d399 !important; }

.nav-item[data-target="panel-dashboard"] .nav-icon i { color: #38bdf8 !important; }

.nav-item[data-target="panel-pelanggaran"] .nav-icon i { color: #f87171 !important; }

#nav-konseling .nav-icon i,
.nav-item[data-target="panel-konseling"] .nav-icon i { color: #fb7185 !important; }

#nav-absen-mapel .nav-icon i,
.nav-item[data-target="panel-absen-mapel"] .nav-icon i { color: #a78bfa !important; }

#nav-izin-guru .nav-icon i,
.nav-item[data-target="panel-izin-guru"] .nav-icon i { color: #fbbf24 !important; }

#nav-approval-kepsek .nav-icon i,
.nav-item[data-target="panel-approval-kepsek"] .nav-icon i { color: #2dd4bf !important; }

#nav-scan-qr-siswa .nav-icon i { color: #38bdf8 !important; }

#nav-izin-siswa .nav-icon i,
.nav-item[data-target="panel-izin-siswa"] .nav-icon i { color: #f472b6 !important; }

#nav-pemenuhan-tugas .nav-icon i,
.nav-item[data-target="panel-pemenuhan-tugas"] .nav-icon i { color: #60a5fa !important; }

#nav-materi .nav-icon i,
.nav-item[data-target="panel-materi"] .nav-icon i { color: #a3e635 !important; }

#nav-kelola-data .nav-icon i,
.nav-item[data-target="panel-kelola-data"] .nav-icon i { color: #3b82f6 !important; }

#nav-absen-guru-admin .nav-icon i,
.nav-item[data-target="panel-absen-guru-admin"] .nav-icon i { color: #14b8a6 !important; }

#nav-broadcast-telegram .nav-icon i,
.nav-item[data-target="panel-broadcast-telegram"] .nav-icon i { color: #0ea5e9 !important; }

#nav-audit-logs .nav-icon i,
.nav-item[data-target="panel-audit-logs"] .nav-icon i { color: #38bdf8 !important; }

#navRaporTengahSemester .nav-icon i,
.nav-item[data-target="panelRaporTengahSemester"] .nav-icon i { color: #fb923c !important; }

#nav-evoting-osis .nav-icon i,
.nav-item[data-target="panel-evoting-osis"] .nav-icon i { color: #c084fc !important; }

#nav-sarpras .nav-icon i,
.nav-item[data-target="panel-sarpras"] .nav-icon i { color: #facc15 !important; }

#nav-suara-siswa .nav-icon i,
.nav-item[data-target="panel-suara-siswa"] .nav-icon i { color: #f59e0b !important; }

#nav-obrolan .nav-icon i,
.nav-item[data-target="panel-obrolan"] .nav-icon i { color: #06b6d4 !important; }

#nav-fitur-tambahan .nav-icon i,
.nav-item[data-target="panel-fitur-tambahan"] .nav-icon i { color: #38bdf8 !important; }

#nav-profile .nav-icon i,
.nav-item[data-target="panel-profile"] .nav-icon i { color: #94a3b8 !important; }

.nav-item .nav-label {
    transition: opacity 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

#btnNavLogout,
.nav-item-logout {
    display: none !important;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--card-border);
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 101;
    transition: all 0.3s ease;
}

.btn-logout {
    width: 100%;
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout:hover {
    background: var(--error);
    color: white;
}

/* Toggle Buttons */
.btn-toggle-sidebar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-toggle-sidebar:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-floating-sidebar-toggle {
    display: none;
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 99;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-floating-sidebar-toggle:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Desktop Collapsed State (width: 72px) - Only active on desktop screens (>768px) */
@media (min-width: 769px) {
    body.sidebar-collapsed .sidebar {
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    body.sidebar-collapsed .main-content {
        margin-left: 72px !important;
        width: calc(100% - 72px) !important;
        max-width: calc(100% - 72px) !important;
        padding: 32px 36px !important;
        box-sizing: border-box !important;
    }

    @media (min-width: 1200px) {
        body.sidebar-collapsed .main-content {
            padding: 36px 48px !important;
        }
    }

    body.sidebar-collapsed .btn-floating-sidebar-toggle {
        display: flex;
    }

    body.sidebar-collapsed .sidebar-brand {
        padding: 10px 4px 8px 4px !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
    }

    body.sidebar-collapsed .sidebar-brand > div {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
    }

    body.sidebar-collapsed .btn-toggle-sidebar {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    body.sidebar-collapsed .sidebar-brand .brand-text {
        display: none !important;
    }

    body.sidebar-collapsed .user-info {
        padding: 10px 4px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        border-bottom: 1px solid var(--card-border) !important;
    }

    body.sidebar-collapsed .user-info-baris1 {
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        width: 100% !important;
    }

    body.sidebar-collapsed .user-info .avatar,
    body.sidebar-collapsed #sidebarUserAvatar {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
        margin: 0 auto !important;
    }

    body.sidebar-collapsed .user-info .user-details {
        display: none !important;
    }

    body.sidebar-collapsed .user-info-baris2 {
        border-top: none !important;
        padding-top: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body.sidebar-collapsed #currentUserTelegramBadge {
        display: none !important;
    }

    body.sidebar-collapsed .user-info-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body.sidebar-collapsed #chatShortcutWrapper,
    body.sidebar-collapsed #notificationBellWrapper {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    body.sidebar-collapsed #chatShortcutWrapper i {
        font-size: 0.82rem !important;
    }

    body.sidebar-collapsed #notificationBellWrapper i {
        font-size: 0.85rem !important;
    }

    body.sidebar-collapsed .sidebar-nav {
        padding: 10px 4px 30px 4px !important;
        gap: 4px !important;
        align-items: center !important;
        overflow-x: hidden !important;
        scrollbar-width: none !important;
    }

    body.sidebar-collapsed .sidebar-nav-group {
        align-items: center !important;
        width: 100% !important;
        gap: 4px !important;
    }

    body.sidebar-collapsed .sidebar-group-header {
        padding: 6px 0 !important;
        margin: 4px auto !important;
        width: 28px !important;
        justify-content: center !important;
    }

    body.sidebar-collapsed .sidebar-group-title {
        display: none !important;
    }

    body.sidebar-collapsed .sidebar-group-header::after {
        content: '' !important;
        display: block !important;
        width: 24px !important;
        height: 1px !important;
        margin: 0 auto !important;
        background: rgba(255, 255, 255, 0.12) !important;
    }

    body.sidebar-collapsed[data-theme="light"] .sidebar-group-header::after,
    body.sidebar-collapsed.light-mode .sidebar-group-header::after {
        background: rgba(0, 0, 0, 0.12) !important;
    }

    body.sidebar-collapsed .sidebar-nav::-webkit-scrollbar {
        width: 0 !important;
        display: none !important;
    }

    body.sidebar-collapsed .nav-item {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        position: relative !important;
        transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
    }

    body.sidebar-collapsed .nav-item .nav-icon {
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        font-size: 1.22rem !important;
    }

    body.sidebar-collapsed .nav-item .nav-label {
        display: none !important;
    }

    body.sidebar-collapsed .nav-item:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        transform: scale(1.08) !important;
    }

    body.sidebar-collapsed .nav-item.active {
        background: rgba(56, 189, 248, 0.16) !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
        box-shadow: 0 4px 14px rgba(56, 189, 248, 0.22) !important;
    }

    /* Floating Tooltip in Collapsed Mode */
    body.sidebar-collapsed .nav-item[data-tooltip]::after {
        content: attr(data-tooltip) !important;
        position: absolute !important;
        left: calc(100% + 12px) !important;
        top: 50% !important;
        transform: translateY(-50%) scale(0.95) !important;
        background: #0f172a !important;
        color: #f8fafc !important;
        padding: 6px 12px !important;
        border-radius: 8px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s !important;
        z-index: 99999 !important;
    }

    body.sidebar-collapsed .nav-item[data-tooltip]:hover::after {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(-50%) scale(1) !important;
    }

    body.sidebar-collapsed .sidebar-footer {
        padding: 10px 4px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    body.sidebar-collapsed .sidebar-footer .btn-logout {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        font-size: 1.15rem !important;
    }

    body.sidebar-collapsed .sidebar-footer .btn-logout-text {
        display: none !important;
    }
}

.panel,
.panel-section {
    display: none !important;
}

.panel.active,
.panel-section.active {
    display: block !important;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    margin-bottom: 25px;
}

.panel-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.panel-header p {
    color: var(--text-muted);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.overview-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ================= COMPONENTS ================= */

/* Forms & Inputs */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-static {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group-static label {
    position: static !important;
    transform: none !important;
    display: block !important;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    pointer-events: auto !important;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-color);
    padding: 0 6px;
    color: var(--primary);
    border-radius: 4px;
}

.input-group .select-label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-color);
    padding: 0 6px;
    color: var(--text-muted);
}

select option {
    background: var(--bg-color);
    color: var(--text-main);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(79, 70, 229, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #475569;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fa-spin,
.spin-icon {
    animation: spin 0.75s linear infinite !important;
    display: inline-block !important;
}

/* Tabs (Scanner) */
.tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s;
}

.tab-content.active {
    display: block;
}

.panel-body {
    padding: 30px;
}

/* Dashboard Specific */
.filter-group {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
}

.filter-group select {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    outline: none;
}

.filter-group button {
    padding: 10px 20px;
}

.stats-container,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.bg-success-light {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bg-warning-light {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.bg-primary-light {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 500;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Matrix Table Styling (Matching User Screenshot Layout) */
.matrix-table {
    min-width: 700px;
    border-collapse: collapse;
    margin-top: 10px;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid var(--card-border);
    padding: 10px 12px;
    text-align: center;
    font-size: 0.9rem;
}

.matrix-table th {
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
}

.matrix-table tfoot td {
    background: rgba(255, 255, 255, 0.06);
    font-weight: bold;
    font-size: 0.95rem;
}

/* QR Reader Overrides */
#reader {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#reader button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    font-family: 'Outfit';
}

#reader select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px;
    border-radius: 8px;
    margin: 10px;
    outline: none;
}

#reader select option {
    background: var(--bg-color);
}

#reader a {
    display: none;
}

#reader video {
    border-radius: 16px;
    width: 100%;
}

.scan-instructions {
    text-align: center;
    margin-top: 15px;
    color: var(--text-muted);
}

/* ========================================================= */
/* PREMIUM ULTRA-MODERN TOAST & MODAL ALERTS SYSTEM */
/* ========================================================= */

.toast {
    position: fixed;
    top: -120px;
    right: 16px;
    bottom: auto;
    background: rgba(11, 23, 44, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f8fafc;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
    font-weight: 500;
    font-size: 0.84rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999999;
    width: max-content;
    max-width: calc(100vw - 32px);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: auto;
    transform: translateY(-20px);
}

.toast.show {
    top: 14px;
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.toast-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.toast-message {
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Toast Variants */
.toast.success {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 12px 30px -5px rgba(16, 185, 129, 0.35), 0 0 15px rgba(16, 185, 129, 0.2);
    color: #ecfdf5;
}

.toast.success .toast-icon {
    color: #34d399;
}

.toast.success .toast-title {
    color: #6ee7b7;
}

.toast.error {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 12px 30px -5px rgba(239, 68, 68, 0.35), 0 0 15px rgba(239, 68, 68, 0.2);
    color: #fef2f2;
}

.toast.error .toast-icon {
    color: #f87171;
}

.toast.error .toast-title {
    color: #fca5a5;
}

.toast.warning {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 12px 30px -5px rgba(245, 158, 11, 0.35), 0 0 15px rgba(245, 158, 11, 0.2);
    color: #fffbeb;
}

.toast.warning .toast-icon {
    color: #fbbf24;
}

.toast.warning .toast-title {
    color: #fde68a;
}

.toast.info {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 30px -5px rgba(59, 130, 246, 0.35), 0 0 15px rgba(59, 130, 246, 0.2);
    color: #eff6ff;
}

.toast.info .toast-icon {
    color: #60a5fa;
}

.toast.info .toast-title {
    color: #93c5fd;
}

/* Custom Modal Alert & Confirm Overlay */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-alert-box {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 30px 26px;
    max-width: min(440px, 92vw);
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #f8fafc;
}

.custom-alert-overlay.active .custom-alert-box {
    transform: scale(1) translateY(0);
}

.custom-alert-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.custom-alert-icon-wrap.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.custom-alert-icon-wrap.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.custom-alert-icon-wrap.success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.custom-alert-icon-wrap.info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.custom-alert-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.custom-alert-message {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 24px;
    word-break: break-word;
}

.custom-alert-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-alert-btn {
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.custom-alert-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.custom-alert-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.custom-alert-btn-confirm {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.custom-alert-btn-confirm.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.custom-alert-btn-confirm:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* Mobile Navigation & Header Default Styles */
.mobile-top-bar,
.mobile-bottom-nav,
.mob-radial-backdrop,
.mob-bottom-sheet {
    display: none;
}

/* Responsive - Mobile Bottom Navigation Bar & Top Header */
@media (max-width: 768px) {
    #view-app {
        flex-direction: column;
    }

    /* Mobile Top Header Bar - Fixed Header at Top (Single Row Horizontal Restored) */
    .mobile-top-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        z-index: 9999 !important;
        margin: 0 !important;
        border-radius: 0 0 16px 16px !important;
        background: rgba(15, 23, 42, 0.94) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
        transition: all 0.3s ease;
    }

    .mobile-header-brand {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .mobile-brand-title {
        font-weight: 800 !important;
        font-size: 1.15rem !important;
        letter-spacing: -0.5px !important;
        color: var(--text-main) !important;
    }

    .mobile-brand-title span {
        color: var(--primary) !important;
    }

    .btn-mobile-theme-toggle {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }

    .btn-mobile-theme-toggle:active {
        transform: scale(0.92);
    }

    .mobile-header-user {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .mobile-header-user .avatar-sm,
    #mobileUserAvatar {
        font-size: 1.05rem !important;
        background: rgba(255, 255, 255, 0.12) !important;
        padding: 0 !important;
        border-radius: 50% !important;
        color: #818cf8 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        overflow: hidden !important;
        position: relative !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    .mobile-header-user .avatar-sm i,
    #mobileUserAvatar i {
        font-size: 1.05rem !important;
        line-height: 1 !important;
    }

    .mobile-user-details {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        min-width: 0 !important;
        max-width: 82px !important;
        flex-shrink: 1 !important;
    }

    .mobile-user-name {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        color: var(--text-main) !important;
        width: 100% !important;
        max-width: 82px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    .mobile-user-details .badge {
        font-size: 0.62rem !important;
        padding: 1.5px 6px !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        max-width: 82px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-top: 2px !important;
    }

    @media (min-width: 410px) and (max-width: 768px) {
        .mobile-user-details,
        .mobile-user-name,
        .mobile-user-details .badge {
            max-width: 105px !important;
        }
    }

    .btn-mobile-logout-icon {
        background: rgba(239, 68, 68, 0.16) !important;
        color: #ef4444 !important;
        border: 1px solid rgba(239, 68, 68, 0.35) !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 0.95rem !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }

    .btn-mobile-logout-icon:active {
        background: #ef4444 !important;
        color: #ffffff !important;
        transform: scale(0.92) !important;
    }

    /* Hide desktop sidebar on mobile */
    .sidebar,
    .sidebar-overlay,
    .btn-floating-sidebar-toggle {
        display: none !important;
    }

    /* ==========================================================================
       Mobile Bottom Navigation Bar & Semi-Circular Radial Arc Menu (Glassmorphism)
       ========================================================================== */
    .mob-radial-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 15, 29, 0.65);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mob-radial-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    [data-theme="light"] .mob-radial-backdrop {
        background: rgba(15, 23, 42, 0.4);
    }

    /* Redesigned Bottom Bar - Modern Rounded Upper Corners */
    .mobile-bottom-nav {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        height: calc(64px + env(safe-area-inset-bottom));
        padding: 4px 10px calc(4px + env(safe-area-inset-bottom)) 10px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
        transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        box-sizing: border-box;
    }

    [data-theme="light"] .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
    }

    /* Focus on floating menu: Blur and fade the background navbar items when radial menu is open */
    .mobile-bottom-nav.radial-open {
        background: rgba(15, 23, 42, 0.35) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top-color: transparent !important;
        box-shadow: none !important;
    }

    [data-theme="light"] .mobile-bottom-nav.radial-open {
        background: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top-color: transparent !important;
        box-shadow: none !important;
    }

    .mobile-bottom-nav.radial-open .mob-nav-link {
        filter: blur(5px);
        opacity: 0.15;
        transform: scale(0.9);
        pointer-events: none;
    }

    .mob-nav-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #94a3b8;
        text-decoration: none;
        cursor: pointer;
        padding: 4px 2px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        border: none;
        background: transparent;
    }

    .mob-nav-link:active {
        transform: scale(0.92);
    }

    .mob-nav-icon-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 24px;
        font-size: 1.15rem;
        transition: transform 0.2s ease;
    }

    .mob-nav-label {
        font-size: 0.64rem;
        font-weight: 700;
        line-height: 1.1;
        white-space: nowrap;
    }

    .mob-nav-link.active {
        color: #818cf8;
    }

    .mob-nav-link.active .mob-nav-icon-wrapper {
        transform: translateY(-1px);
    }

    [data-theme="light"] .mob-nav-link {
        color: #64748b;
    }

    [data-theme="light"] .mob-nav-link.active {
        color: #4f46e5;
    }

    /* Center Elevated Floating Action Button (FAB) */
    .mob-nav-center-wrapper {
        position: relative;
        width: 62px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mob-nav-fab {
        position: relative;
        top: -16px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        border: 4px solid #0f172a;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(79, 70, 229, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 10001;
        outline: none;
        padding: 0;
    }

    [data-theme="light"] .mob-nav-fab {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        border-color: #ffffff;
        box-shadow: 0 8px 22px rgba(79, 70, 229, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .mob-nav-fab:active {
        transform: scale(0.92);
    }

    .mob-fab-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Rotate into Ã— when active */
    .mob-nav-fab.active {
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.55) !important;
        border-color: #0f172a !important;
    }

    [data-theme="light"] .mob-nav-fab.active {
        border-color: #ffffff !important;
    }

    .mob-nav-fab.active .mob-fab-icon {
        transform: rotate(135deg);
    }

    .mob-fab-active-dot {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #10b981;
        border: 2px solid #0f172a;
        display: none;
        box-shadow: 0 0 8px #10b981;
    }

    [data-theme="light"] .mob-fab-active-dot {
        border-color: #ffffff;
    }

    .mob-nav-fab.has-active-sub:not(.active) .mob-fab-active-dot {
        display: block;
        animation: pulseSubDot 2s infinite;
    }

    /* ==========================================================================
       SMART HYBRID MOBILE BOTTOM SHEET DRAWER (> 5 MENUS)
       ========================================================================== */
    .mob-bottom-sheet {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border: 1px solid rgba(99, 102, 241, 0.28);
        border-bottom: none;
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(99, 102, 241, 0.18);
        z-index: 10001;
        transform: translateY(105%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
        flex-direction: column;
        max-height: 82vh;
    }

    .mob-bottom-sheet.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    [data-theme="light"] .mob-bottom-sheet {
        background: rgba(255, 255, 255, 0.97);
        border-color: rgba(99, 102, 241, 0.22);
        box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.15), 0 0 25px rgba(99, 102, 241, 0.08);
    }

    .mob-sheet-handle-bar {
        padding: 12px 0 6px;
        display: flex;
        justify-content: center;
        cursor: pointer;
    }

    .mob-sheet-drag-pill {
        width: 44px;
        height: 5px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.25);
        transition: background 0.2s ease;
    }

    [data-theme="light"] .mob-sheet-drag-pill {
        background: rgba(0, 0, 0, 0.2);
    }

    .mob-sheet-header {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 4px 20px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    [data-theme="light"] .mob-sheet-header {
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }

    .mob-sheet-title-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .mob-sheet-badge {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #818cf8;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .mob-sheet-title {
        font-size: 1.02rem;
        font-weight: 700;
        color: #f8fafc;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        letter-spacing: -0.2px;
    }

    [data-theme="light"] .mob-sheet-title {
        color: #0f172a;
    }

    .mob-sheet-body {
        padding: 16px 16px 10px;
        overflow-y: auto;
        max-height: calc(75vh - 120px);
        -webkit-overflow-scrolling: touch;
    }

    /* Bottom Close Bar - Red Elevated Circular FAB (Identik dengan tombol mode 5 menu) */
    .mob-sheet-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 8px));
        background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 75%, rgba(15, 23, 42, 0));
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
        z-index: 10;
        margin-top: auto;
    }

    [data-theme="light"] .mob-sheet-footer {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 75%, rgba(255, 255, 255, 0));
        border-top-color: rgba(0, 0, 0, 0.06);
    }

    .mob-sheet-close-fab {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        border: 3px solid #0f172a !important;
        color: #ffffff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.55), 0 0 16px rgba(239, 68, 68, 0.35);
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mob-sheet-close-fab:hover {
        transform: scale(1.08);
        box-shadow: 0 10px 28px rgba(239, 68, 68, 0.7);
    }

    .mob-sheet-close-fab:active {
        transform: scale(0.92);
        box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    }

    [data-theme="light"] .mob-sheet-close-fab {
        border-color: #ffffff !important;
    }

    .mob-sheet-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px 10px;
    }

    @media (max-width: 350px) {
        .mob-sheet-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .mob-sheet-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        background: transparent;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 6px 2px;
        border-radius: 16px;
        transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mob-sheet-item:active {
        transform: scale(0.9);
    }

    .mob-sheet-icon-box {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
        border: 1.5px solid transparent;
        transition: all 0.22s ease;
        position: relative;
    }

    .mob-sheet-item.active .mob-sheet-icon-box {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.7);
        border-color: #c7d2fe !important;
        background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
        color: #ffffff !important;
    }

    .mob-sheet-item-label {
        font-size: 0.74rem;
        font-weight: 600;
        color: #cbd5e1;
        text-align: center;
        line-height: 1.25;
        max-width: 78px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    [data-theme="light"] .mob-sheet-item-label {
        color: #334155;
    }

    .mob-sheet-item.active .mob-sheet-item-label {
        color: #818cf8;
        font-weight: 700;
    }

    [data-theme="light"] .mob-sheet-item.active .mob-sheet-item-label {
        color: #4f46e5;
    }

    /* Semi-Circular Radial Arc Menu */
    .mob-radial-menu {
        position: absolute;
        bottom: 48px;
        left: 50%;
        width: 0;
        height: 0;
        pointer-events: none;
        z-index: 10000;
    }

    .mob-radial-item {
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 40px;
        margin-left: -20px;
        margin-top: -20px;
        border-radius: 50%;
        background: rgba(30, 41, 59, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1.5px solid rgba(99, 102, 241, 0.35);
        color: #f8fafc;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        transform: translate(0, 0) scale(0);
        pointer-events: none;
        transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) var(--delay, 0s),
                    opacity 0.25s ease var(--delay, 0s),
                    box-shadow 0.2s ease,
                    background 0.2s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        outline: none;
        padding: 0;
    }

    [data-theme="light"] .mob-radial-item {
        background: #ffffff;
        border-color: rgba(99, 102, 241, 0.25);
        color: #1e293b;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    }

    .mobile-bottom-nav.radial-open .mob-radial-item {
        opacity: 1;
        pointer-events: auto;
        transform: translate(var(--rx), var(--ry)) scale(1);
    }

    .mob-radial-item:active {
        transform: translate(var(--rx), var(--ry)) scale(1.12);
    }

    .mob-radial-item.active {
        background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
        border-color: #c7d2fe !important;
        color: #ffffff !important;
        box-shadow: 0 0 22px rgba(99, 102, 241, 0.75) !important;
    }

    .mob-radial-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .mob-radial-label {
        position: absolute;
        top: calc(100% + 4px);
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.58rem;
        font-weight: 700;
        white-space: nowrap;
        padding: 1.5px 6px;
        border-radius: 6px;
        background: rgba(15, 23, 42, 0.94);
        color: #ffffff;
        pointer-events: none;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
        letter-spacing: 0.1px;
    }

    [data-theme="light"] .mob-radial-label {
        background: #ffffff;
        color: #0f172a;
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    /* Mobile Light Mode Specific Overrides */
    [data-theme="light"] .mobile-top-bar {
        background: rgba(255, 255, 255, 0.96) !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    }

    [data-theme="light"] .mobile-brand-title {
        color: #0f172a !important;
    }

    [data-theme="light"] .btn-mobile-theme-toggle {
        background: rgba(0, 0, 0, 0.04) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }

    [data-theme="light"] .mobile-header-user .avatar-sm {
        background: rgba(99, 102, 241, 0.12) !important;
        color: #4f46e5 !important;
    }

    [data-theme="light"] .mobile-user-name {
        color: #0f172a !important;
    }

    /* Main Content Area Padding Bottom & Top for Fixed Mobile Header & Bottom Bar */
    .main-content {
        margin-left: 0 !important;
        padding-top: 74px !important;
        padding-bottom: 84px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .toast {
        right: auto !important;
        left: 50% !important;
        bottom: auto !important;
        top: -120px !important;
        transform: translateX(-50%) translateY(-20px) !important;
        max-width: calc(100vw - 24px) !important;
    }

    .toast.show {
        top: 70px !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    /* Panel Headers & Refresh Buttons on Mobile */
    .panel-header.flex-between,
    .panel-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .panel-header h2 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    .panel-header p {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
    }

    .panel-header > button:not(.overview-header-actions button) {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Overview Header Actions (SMARTAPP CBT, LMS & Refresh Analitik) Rapi & Kompak di Mobile */
    .overview-header-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 2px !important;
        box-sizing: border-box !important;
    }

    .overview-header-actions #btnOverviewCbtLms,
    .overview-header-actions #btnOverviewClassroom,
    .overview-header-actions #btnRefreshOverview {
        flex: 1 1 0 !important;
        width: 33.33% !important;
        min-width: 0 !important;
        padding: 7px 6px !important;
        font-size: 0.74rem !important;
        border-radius: 9px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        gap: 5px !important;
        margin: 0 !important;
        height: 36px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    .overview-header-actions #btnOverviewCbtLms i,
    .overview-header-actions #btnOverviewClassroom i,
    .overview-header-actions #btnRefreshOverview i {
        font-size: 0.78rem !important;
        flex-shrink: 0 !important;
    }

    /* Di layar smartphone <= 540px, sembunyikan prefix/suffix agar teks pas 1 baris tanpa wrapping */
    @media (max-width: 540px) {
        .overview-btn-prefix,
        .overview-btn-suffix {
            display: none !important;
        }

        .overview-header-actions #btnOverviewCbtLms,
        .overview-header-actions #btnOverviewClassroom,
        .overview-header-actions #btnRefreshOverview {
            padding: 6px 4px !important;
            font-size: 0.72rem !important;
            gap: 4px !important;
            height: 34px !important;
            border-radius: 8px !important;
        }

        .overview-header-actions #btnOverviewCbtLms i,
        .overview-header-actions #btnOverviewClassroom i,
        .overview-header-actions #btnRefreshOverview i {
            font-size: 0.75rem !important;
        }
    }

    .panel-header .approval-subtabs-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
    }

    .panel-header .approval-subtabs-wrapper .approval-subtab-btn {
        width: auto !important;
        flex: 1 1 auto !important;
        white-space: nowrap !important;
        padding: 9px 14px !important;
        font-size: 0.82rem !important;
    }

    .panel-header .action-btn-group-compact {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .panel-header .action-btn-group-compact button {
        width: auto !important;
        flex: 1 1 calc(50% - 4px) !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding: 9px 10px !important;
        font-size: 0.8rem !important;
    }

    /* Overview KPI Grid 2-Column Side-by-Side Boxes for Mobile */
    #overviewKpiGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #overviewKpiGrid .glass-card {
        padding: 7px 6px !important;
        border-radius: 8px !important;
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    #overviewKpiGrid .glass-card>div:first-child {
        width: 100% !important;
        padding-right: 22px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100% !important;
    }

    #overviewKpiGrid .glass-card>div:first-child>span:first-child {
        font-size: 0.55rem !important;
        line-height: 1.1 !important;
        display: block !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #overviewKpiGrid .glass-card h3 {
        font-size: 0.88rem !important;
        margin: 1px 0 !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #overviewKpiGrid .glass-card>div:first-child>span:last-child {
        font-size: 0.55rem !important;
        display: block !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #overviewKpiGrid .glass-card>div:last-child {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 0.72rem !important;
        border-radius: 5px !important;
    }

    /* Styled Cards & Widget Header Refinements */
    .styled-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
    }

    .styled-card-title {
        font-size: 0.74rem !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    #badgeTotalGuruTidakHadir {
        font-size: 0.64rem !important;
        padding: 2px 6px !important;
        margin-top: 2px !important;
    }

    /* Ultra-Compact Sizing for Catatan Pelanggaran, Presensi & Belum Absen List on Mobile */
    #overviewChartsRow1,
    #overviewChartsRow2 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    #overviewChartsRow1 .glass-card,
    #overviewChartsRow2 .glass-card {
        padding: 8px 6px !important;
    }

    #overviewChartsRow1 .glass-card h3,
    #overviewChartsRow2 .glass-card h3 {
        font-size: 0.76rem !important;
    }

    #overviewChartsRow1 div[style*="height: 260px"],
    #overviewChartsRow2 div[style*="height: 260px"] {
        height: 175px !important;
    }

    /* List Guru & Staf Belum Absen Mobile Refinement */
    #listUnabsenGuru>div>div {
        padding: 4px 5px !important;
        border-radius: 5px !important;
    }

    #listUnabsenGuru strong {
        font-size: 0.68rem !important;
    }

    #listUnabsenGuru span {
        font-size: 0.58rem !important;
    }

    #badgeUnabsenGuruCount {
        font-size: 0.62rem !important;
        padding: 1px 5px !important;
    }

    /* Catatan Pelanggaran, Presensi & Catatan Input Mobile Refinement */
    .badge-pelanggaran {
        padding: 1px 4px !important;
        font-size: 0.58rem !important;
        border-radius: 6px !important;
    }

    .data-table th,
    .data-table td,
    .matrix-table th,
    .matrix-table td {
        padding: 3px 4px !important;
        font-size: 0.68rem !important;
    }

    .status-badge,
    .badge-status {
        font-size: 0.58rem !important;
        padding: 1px 4px !important;
    }

    .input-ket-kokurikuler,
    .input-keterangan-batch,
    input[placeholder*="Catatan"],
    textarea[placeholder*="Catatan"] {
        font-size: 0.68rem !important;
        padding: 3px 5px !important;
    }

    /* Mobile Stats Container 2-Column Grid Layout (Kotak-Kotak Berdampingan) */
    .stats-container,
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-top: 10px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .stats-container .stat-card,
    .stats-grid .stat-card {
        padding: 9px 10px !important;
        border-radius: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;
        min-height: 66px !important;
        margin: 0 !important;
    }

    .stats-container .stat-card:nth-child(5):last-child,
    .stats-grid .stat-card:nth-child(5):last-child {
        grid-column: span 2 !important;
    }

    .stats-container .stat-info,
    .stats-grid .stat-info {
        width: 100% !important;
    }

    .stats-container .stat-info h3,
    .stats-grid .stat-info h3 {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
        margin: 0 0 2px 0 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .stats-container .stat-value,
    .stats-grid .stat-value {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    /* INNER MENU CONTENT RESPONSIVE REFINEMENTS */
    @media (max-width: 600px) {

        .glass-card:not(#overviewKpiGrid .glass-card),
        .panel-body,
        .styled-card {
            padding: 10px 8px !important;
        }

        form[style*="grid-template-columns"],
        div[style*="grid-template-columns"]:not(#overviewKpiGrid):not(#widget-kelas-summary):not(.overview-kelas-summary-grid):not(.student-personal-kpi-grid):not(.student-bimbel-kpi-grid):not(#konselingStatsGrid):not(#sarprasStatsGrid):not(.sarpras-stats-grid):not(.stats-container):not(.stats-grid):not(.asset-kpi-grid):not(#assetKpiGrid) {
            grid-template-columns: 1fr !important;
        }

        .data-table,
        .matrix-table {
            font-size: 0.72rem !important;
        }

        .data-table th,
        .data-table td,
        .matrix-table th,
        .matrix-table td {
            padding: 4px 4px !important;
        }
    }
}

/* Violation Badge Pills (Pills Warna-Warni Sesuai Gambar Contoh) */
.badge-pelanggaran {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.badge-pelanggaran-terlambat {
    background: #b91c1c;
    color: #ffffff;
}

.badge-pelanggaran-dasi {
    background: #991b1b;
    color: #fecaca;
}

.badge-pelanggaran-pinggang {
    background: #78716c;
    color: #f5f5f4;
}

.badge-pelanggaran-kacu {
    background: #ea580c;
    color: #ffedd5;
}

.badge-pelanggaran-ring {
    background: #ca8a04;
    color: #fef9c3;
}

.badge-pelanggaran-sepatu {
    background: #059669;
    color: #d1fae5;
}

.badge-pelanggaran-atribut {
    background: #0284c7;
    color: #e0f2fe;
}

.badge-pelanggaran-izin {
    background: #0d9488;
    color: #ccfbf1;
}

.badge-pelanggaran-solek {
    background: #c026d3;
    color: #fae8ff;
}

.badge-pelanggaran-bahasa {
    background: #6b21a8;
    color: #f3e8ff;
}

.badge-pelanggaran-lainnya {
    background: #2563eb;
    color: #dbeafe;
}

@media (max-width: 992px) {
    .pelanggaran-layout-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Screen Preview Styling for Rapor Page Card & Cover Page */
.rapor-page-card,
.rapor-page-cover {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
}

.rapor-page-card.hidden-page,
.rapor-page-cover.hidden-page {
    display: none !important;
}

.rapor-page-card.active-page {
    display: block !important;
}

.rapor-page-cover.active-page {
    display: flex !important;
}

/* Watermark Logo Sekolah di Latar Belakang (Tengah & Ukuran Besar) */
.rapor-watermark-container {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 440px !important;
    height: 440px !important;
    max-width: 80% !important;
    max-height: 80% !important;
    pointer-events: none !important;
    user-select: none !important;
    z-index: 0 !important;
    opacity: 0.085 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.rapor-watermark-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: transparent !important;
    display: block !important;
    filter: contrast(110%) !important;
}

/* Kop Rapor Resmi */
.rapor-kop-header {
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
}

.rapor-kop-header .rapor-kop-logo-wrapper {
    margin-top: 0 !important;
    background: transparent !important;
}

.rapor-kop-header .rapor-kop-logo {
    background: transparent !important;
}

.rapor-kop-header .kop-yayasan {
    color: #002060 !important;
}

.rapor-kop-header .kop-sekolah {
    color: #002080 !important;
}

.rapor-kop-header .kop-detail,
.rapor-kop-header .kop-detail * {
    color: #000080 !important;
}

.rapor-kop-header .kop-vertical-divider {
    background-color: #2b4c80 !important;
}

.rapor-kop-header .kop-double-line {
    border-top-color: #002080 !important;
    border-bottom-color: #002080 !important;
}

/* Print Media Styles for All Reports (Matrix, Pelanggaran, Rapor Tengah Semester) */
/* Print Media Styles for All Reports (Matrix, Pelanggaran, Rapor Tengah Semester) */
@media print {
    @page {
        margin: 0 !important;
        size: A4 portrait;
    }

    html,
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-family: 'Times New Roman', Arial, sans-serif !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Hide non-print UI containers */
    #mobileTopBar,
    .mobile-top-bar,
    .mobile-header-brand,
    .mobile-bottom-nav,
    .sidebar,
    .panel-header,
    .sidebar-brand,
    .sidebar-footer,
    .toast,
    button,
    nav,
    .no-print,
    .bg-shape,
    #sidebarOverlay,
    .mobile-header,
    #containerFormPelanggaran,
    #containerManageJenisModal,
    .login-container {
        display: none !important;
    }

    /* Hide inactive panels and cards */
    .view-section:not(#view-app),
    .panel:not(.active) {
        display: none !important;
    }

    /* Hide non-print cards inside #panelRaporTengahSemester */
    #panelRaporTengahSemester>div:not(#raporPrintPreviewCard) {
        display: none !important;
    }

    #raporPrintPreviewCard {
        display: block !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #raporPrintPreviewCard>div:first-child {
        display: none !important;
    }

    /* Print Rules for TaskFlow Pemenuhan Tugas Siswa */
    #panel-pemenuhan-tugas>div:not(#print-area-pemenuhan-tugas),
    #panel-pemenuhan-tugas>.panel-header {
        display: none !important;
    }

    #print-area-pemenuhan-tugas {
        display: block !important;
        visibility: visible !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 8mm 12mm !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border: none !important;
        box-shadow: none !important;
    }

    #print-area-pemenuhan-tugas * {
        color: #000000 !important;
    }

    #print-area-pemenuhan-tugas table:not(.no-border-table) {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    #print-area-pemenuhan-tugas table:not(.no-border-table) th,
    #print-area-pemenuhan-tugas table:not(.no-border-table) td {
        border: 1px solid #000000 !important;
        color: #000000 !important;
    }

    /* Outer layout wrappers must be visible blocks */
    #view-app,
    .main-content,
    #panelRaporTengahSemester,
    #raporPrintArea {
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #raporPrintArea .no-print {
        display: none !important;
        visibility: hidden !important;
    }

    /* Rapor Card & Cover Specific Print Rules */
    .rapor-page-card,
    .rapor-page-card.hidden-page,
    .rapor-page-card.active-page,
    .rapor-page-cover,
    .rapor-page-cover.hidden-page,
    .rapor-page-cover.active-page {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        opacity: 1 !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 auto !important;
        padding: 10mm 12mm !important;
        box-sizing: border-box !important;
        width: 210mm !important;
        max-width: 100% !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        overflow: hidden !important;
    }

    .rapor-page-card:last-child,
    .rapor-page-cover:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }

    /* Mode Cetak Per Anak (Single Student Print Mode) */
    body.printing-single-student .rapor-page-card:not(.active-print-target),
    body.printing-single-student .rapor-page-cover:not(.active-print-target) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    body.printing-single-student .rapor-page-card.active-print-target,
    body.printing-single-student .rapor-page-cover.active-print-target {
        display: block !important;
        visibility: visible !important;
        page-break-after: always !important;
        break-after: page !important;
    }

    body.printing-single-student .rapor-page-card.active-print-target:last-of-type,
    body.printing-single-student .rapor-page-cover.active-print-target:last-of-type {
        page-break-after: auto !important;
        break-after: auto !important;
    }

    /* Filter Cetak Massal Berdasarkan Mode */
    body.printing-batch-nilai .rapor-page-cover {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    body.printing-batch-cover .rapor-page-card {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .rapor-page-card *,
    .rapor-page-cover * {
        visibility: visible !important;
    }

    .rapor-page-card *:not(img):not(.kop-yayasan):not(.kop-sekolah):not(.kop-detail):not(.kop-detail *):not(.kop-vertical-divider):not(.kop-double-line),
    .rapor-page-cover *:not(img):not(.kop-yayasan):not(.kop-sekolah):not(.kop-detail):not(.kop-detail *):not(.kop-vertical-divider):not(.kop-double-line) {
        color: #000000 !important;
        background: transparent !important;
    }

    /* Preservasi Warna Biru Kop Surat Resmi saat Print / PDF */
    .rapor-kop-header .kop-yayasan {
        color: #002060 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .rapor-kop-header .kop-sekolah {
        color: #002080 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .rapor-kop-header .kop-detail,
    .rapor-kop-header .kop-detail * {
        color: #000080 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .rapor-kop-header .kop-vertical-divider {
        background-color: #2b4c80 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .rapor-kop-header .kop-double-line {
        border-top-color: #002080 !important;
        border-bottom-color: #002080 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Watermark di Print */
    .rapor-watermark-container {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 440px !important;
        height: 440px !important;
        opacity: 0.085 !important;
        z-index: 0 !important;
        display: flex !important;
        background: transparent !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .rapor-watermark-container img {
        background: transparent !important;
        opacity: 1 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .rapor-page-card img:not(.rapor-watermark-container img),
    .rapor-page-cover img:not(.rapor-watermark-container img) {
        background: transparent !important;
        display: inline-block !important;
        visibility: visible !important;
    }

    .rapor-page-card table:not(.rapor-biodata-table):not(.rapor-signature-table) {
        width: 100% !important;
        border-collapse: collapse !important;
        color: #000000 !important;
    }

    .rapor-page-card table:not(.rapor-biodata-table):not(.rapor-signature-table) th,
    .rapor-page-card table:not(.rapor-biodata-table):not(.rapor-signature-table) td {
        border: 1px solid #000000 !important;
        color: #000000 !important;
    }

    .rapor-biodata-table,
    .rapor-biodata-table tr,
    .rapor-biodata-table td,
    .rapor-signature-table,
    .rapor-signature-table tr,
    .rapor-signature-table td {
        border: none !important;
        border-color: transparent !important;
    }

    .rapor-page-card th {
        background-color: #f0f0f0 !important;
        font-weight: bold !important;
    }

    /* Matrix & Pelanggaran Print Rules */
    .soal-document-paper {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .soal-document-paper * {
        color: #000000 !important;
    }

    #headerPelanggaranPrint {
        display: block !important;
        visibility: visible !important;
    }

    .matrix-table,
    .pelanggaran-table {
        width: 100% !important;
        border-collapse: collapse !important;
        color: black !important;
        font-size: 8pt !important;
    }

    .matrix-table th,
    .matrix-table td,
    .pelanggaran-table th,
    .pelanggaran-table td {
        border: 1px solid black !important;
        color: black !important;
        background: transparent !important;
    }

    .matrix-table th,
    .pelanggaran-table th {
        font-weight: bold !important;
        background: #f0f0f0 !important;
    }

    .badge-pelanggaran {
        background: transparent !important;
        color: black !important;
        border: 1px solid #666 !important;
        font-weight: bold !important;
        padding: 1px 4px !important;
    }

    .matrix-report-header h2,
    .matrix-report-header h3,
    .matrix-report-header p {
        color: black !important;
    }

    @page {
        size: A4 portrait;
        margin: 15mm 16mm 10mm 16mm !important;
    }
}

/* Rapor Input Grid Inputs & Responsiveness */
.grid-input::-webkit-outer-spin-button,
.grid-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.grid-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.grid-input,
.grid-select,
.student-pramuka-select,
input.student-catatan-input {
    box-sizing: border-box !important;
    height: 32px !important;
    line-height: 28px !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    vertical-align: middle !important;
}

textarea.student-catatan-input {
    box-sizing: border-box !important;
    min-height: 32px !important;
    line-height: 1.35 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    resize: vertical;
}

.grid-input:focus,
.grid-select:focus,
.student-pramuka-select:focus,
.student-catatan-input:focus {
    background: rgba(124, 58, 237, 0.3) !important;
    outline: 2px solid #a855f7 !important;
}

.rapor-page-card *,
.rapor-page-card h1,
.rapor-page-card h2,
.rapor-page-card h3,
.rapor-page-card h4,
.rapor-page-card h5,
.rapor-page-card h6,
.rapor-page-card p,
.rapor-page-card span,
.rapor-page-card div,
.rapor-page-card td,
.rapor-page-card th,
.rapor-page-card strong,
.rapor-page-card table {
    color: #000000 !important;
}

.rapor-page-card .rapor-kop-header .kop-yayasan,
.rapor-page-cover .rapor-kop-header .kop-yayasan {
    color: #002060 !important;
}
.rapor-page-card .rapor-kop-header .kop-sekolah,
.rapor-page-cover .rapor-kop-header .kop-sekolah {
    color: #002080 !important;
}
.rapor-page-card .rapor-kop-header .kop-detail,
.rapor-page-card .rapor-kop-header .kop-detail *,
.rapor-page-cover .rapor-kop-header .kop-detail,
.rapor-page-cover .rapor-kop-header .kop-detail * {
    color: #000080 !important;
}

.rapor-page-card table:not(.rapor-biodata-table):not(.rapor-signature-table),
.rapor-page-card table:not(.rapor-biodata-table):not(.rapor-signature-table) th,
.rapor-page-card table:not(.rapor-biodata-table):not(.rapor-signature-table) td {
    border-color: #000000 !important;
}

.rapor-biodata-table,
.rapor-biodata-table tr,
.rapor-biodata-table td,
.rapor-signature-table,
.rapor-signature-table tr,
.rapor-signature-table td {
    border: none !important;
    border-color: transparent !important;
}

/* ================= PRESET ELEGANT STYLES FOR TEACHER ABSENSI & IZIN ================= */
.styled-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.styled-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.styled-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
}

/* Base TaskFlow Siswa Table & Card Switcher */
.tf-desktop-table {
    display: block;
}
.tf-mobile-cards {
    display: none;
}

.panel-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-icon {
    font-size: 1.6rem;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.styled-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.styled-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.styled-input,
.styled-select,
.styled-textarea,
.form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.25s ease;
}

.styled-input:focus,
.styled-select:focus,
.styled-textarea:focus,
.form-input:focus {
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.styled-input::placeholder,
.styled-textarea::placeholder,
.form-input::placeholder {
    color: #64748b;
}

.form-input option,
select option {
    background-color: #0f172a;
    color: #f8fafc;
}

/* Data Table Modern Styling */
.modern-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.4);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 650px;
}

.data-table th {
    background: rgba(30, 41, 59, 0.85);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-approved {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ========================================================================= */
/* THEME MODE: LIGHT MODE & DARK MODE OVERRIDES */
/* ========================================================================= */
/* ========================================================================= */
/* THEME MODE: LIGHT MODE & DARK MODE OVERRIDES */
/* ========================================================================= */
/* ========================================================================= */
/* THEME MODE: MASTER LIGHT MODE & DARK MODE OVERRIDES */
/* ========================================================================= */
[data-theme="light"] {
    --bg-color: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(203, 213, 225, 0.9);
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #4F46E5;
    --primary-hover: #4338CA;
}

[data-theme="light"] body {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Glass Cards & Containers */
[data-theme="light"] .glass-card,
[data-theme="light"] .modern-table-container,
[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .widget-card,
[data-theme="light"] .login-container,
[data-theme="light"] .konseling-kpi-card,
[data-theme="light"] .modal-card-konseling {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(203, 213, 225, 0.9) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

/* Sidebar Styling in Light Mode */
[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.97) !important;
    border-right: 1px solid rgba(203, 213, 225, 0.9) !important;
}

[data-theme="light"] .sidebar-brand {
    border-bottom: 1px solid rgba(203, 213, 225, 0.9) !important;
}

[data-theme="light"] .sidebar-brand h2,
[data-theme="light"] .sidebar-brand p {
    color: #0f172a !important;
}

[data-theme="light"] .user-info {
    border-bottom: 1px solid rgba(203, 213, 225, 0.9) !important;
}

[data-theme="light"] .user-info h3 {
    color: #0f172a !important;
}

[data-theme="light"] .user-info-baris2 {
    border-top: 1px solid rgba(203, 213, 225, 0.7) !important;
}

[data-theme="light"] #currentUserTelegramBadge #currentUserTelegramIdText {
    color: #334155 !important;
}

[data-theme="light"] .sidebar-footer {
    background: rgba(248, 250, 252, 0.97) !important;
    border-top: 1px solid rgba(203, 213, 225, 0.9) !important;
}

[data-theme="light"] .btn-logout,
body.light-mode .btn-logout {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
}

[data-theme="light"] .btn-logout:hover,
body.light-mode .btn-logout:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

[data-theme="light"] .nav-item,
body.light-mode .nav-item {
    color: #1e293b !important;
    font-weight: 500;
}

[data-theme="light"] .nav-item i,
body.light-mode .nav-item i {
    color: #475569 !important;
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active,
body.light-mode .nav-item:hover,
body.light-mode .nav-item.active {
    background: rgba(79, 70, 229, 0.12) !important;
    color: #4f46e5 !important;
    font-weight: 600;
}

[data-theme="light"] .nav-item:hover i,
[data-theme="light"] .nav-item.active i,
body.light-mode .nav-item:hover i,
body.light-mode .nav-item.active i {
    color: #4f46e5 !important;
}

/* Card Guru & Staf Bertugas / Tidak Hadir (Base Dark Mode) */
#cardGuruTidakHadirHariIni {
    border-radius: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-left: 5px solid #3b82f6 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

#cardGuruTidakHadirHariIni .styled-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.student-personal-kpi-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f8fafc;
    transition: color 0.3s ease;
}

/* Light Mode Overrides for Student Dashboard & Guru Widget */
[data-theme="light"] #cardGuruTidakHadirHariIni,
body.light-mode #cardGuruTidakHadirHariIni {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
    border: 1px solid #bfdbfe !important;
    border-left: 5px solid #2563eb !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08) !important;
    color: #0f172a !important;
}

[data-theme="light"] #cardGuruTidakHadirHariIni .styled-card-title,
body.light-mode #cardGuruTidakHadirHariIni .styled-card-title {
    color: #1e3a8a !important;
    font-weight: 700 !important;
}

[data-theme="light"] #txtTanggalHariIni,
body.light-mode #txtTanggalHariIni {
    color: #2563eb !important;
}

[data-theme="light"] #badgeTotalGuruTidakHadir,
body.light-mode #badgeTotalGuruTidakHadir {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd !important;
}

[data-theme="light"] #cardGuruTidakHadirHariIni .fa-bullhorn {
    color: #2563eb !important;
}

[data-theme="light"] .student-personal-kpi-val,
body.light-mode .student-personal-kpi-val {
    color: #0f172a !important;
}

[data-theme="light"] #siswaOverviewContainer h3 {
    color: #0f172a !important;
}

[data-theme="light"] #siswaOverviewContainer p {
    color: #475569 !important;
}

/* All Headings & Paragraph Text */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #0f172a !important;
}

[data-theme="light"] p:not(.badge),
[data-theme="light"] label,
[data-theme="light"] td,
[data-theme="light"] th {
    color: #1e293b;
}

/* User Role Badges in Light Mode: Pastikan Teks Guru / Admin / Siswa Putih Bersih */
[data-theme="light"] .badge,
[data-theme="light"] #currentUserRole,
[data-theme="light"] #mobileCurrentUserRole,
[data-theme="light"] .user-details .badge,
[data-theme="light"] .mobile-user-details .badge,
body.light-mode .badge,
body.light-mode #currentUserRole,
body.light-mode #mobileCurrentUserRole {
    color: #ffffff !important;
    background: #4F46E5 !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

[data-theme="light"] .user-info .avatar,
[data-theme="light"] .mobile-header-user .avatar-sm {
    background: rgba(79, 70, 229, 0.1) !important;
    color: #4F46E5 !important;
}

[data-theme="light"] small,
[data-theme="light"] .text-muted,
[data-theme="light"] .subtext {
    color: #475569 !important;
}

/* Master Inline Style Text Color Overrides */
[data-theme="light"] [style*="color: #f8fafc"],
[data-theme="light"] [style*="color:#f8fafc"],
[data-theme="light"] [style*="color: white"],
[data-theme="light"] [style*="color:white"],
[data-theme="light"] [style*="color: #ffffff"],
[data-theme="light"] [style*="color:#ffffff"],
[data-theme="light"] [style*="color: #e2e8f0"],
[data-theme="light"] [style*="color:#e2e8f0"],
[data-theme="light"] [style*="color: #cbd5e1"],
[data-theme="light"] [style*="color:#cbd5e1"] {
    color: #0f172a !important;
}

[data-theme="light"] [style*="color: var(--text-muted)"],
[data-theme="light"] [style*="color: #94a3b8"],
[data-theme="light"] [style*="color:#94a3b8"],
[data-theme="light"] [style*="color: #64748b"],
[data-theme="light"] [style*="color:#64748b"] {
    color: #475569 !important;
}

/* High Contrast Accent Colors in Light Mode */
[data-theme="light"] [style*="color: #38bdf8"],
[data-theme="light"] [style*="color:#38bdf8"] {
    color: #0284c7 !important;
}

[data-theme="light"] [style*="color: #93c5fd"],
[data-theme="light"] [style*="color:#93c5fd"] {
    color: #1d4ed8 !important;
}

[data-theme="light"] [style*="color: #60a5fa"],
[data-theme="light"] [style*="color:#60a5fa"] {
    color: #2563eb !important;
}

[data-theme="light"] [style*="color: #6ee7b7"],
[data-theme="light"] [style*="color:#6ee7b7"],
[data-theme="light"] [style*="color: #a7f3d0"],
[data-theme="light"] [style*="color:#a7f3d0"] {
    color: #047857 !important;
}

[data-theme="light"] [style*="color: #4ade80"],
[data-theme="light"] [style*="color:#4ade80"] {
    color: #15803d !important;
}

[data-theme="light"] [style*="color: #fde047"],
[data-theme="light"] [style*="color:#fde047"],
[data-theme="light"] [style*="color: #fbbf24"],
[data-theme="light"] [style*="color:#fbbf24"] {
    color: #b45309 !important;
}

[data-theme="light"] [style*="color: #fca5a5"],
[data-theme="light"] [style*="color:#fca5a5"],
[data-theme="light"] [style*="color: #f87171"],
[data-theme="light"] [style*="color:#f87171"] {
    color: #b91c1c !important;
}

[data-theme="light"] [style*="color: #c084fc"],
[data-theme="light"] [style*="color:#c084fc"] {
    color: #7e22ce !important;
}

/* Inline Dark Background Overrides */
[data-theme="light"] [style*="background: rgba(0, 0, 0"],
[data-theme="light"] [style*="background: rgba(0,0,0"],
[data-theme="light"] [style*="background:rgba(0,0,0"],
[data-theme="light"] [style*="background: rgba(15, 23, 42"],
[data-theme="light"] [style*="background: rgba(15,23,42"],
[data-theme="light"] [style*="background:rgba(15,23,42"],
[data-theme="light"] [style*="background: rgba(30, 41, 59"],
[data-theme="light"] [style*="background:rgba(30,41,59"] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.03)"],
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.04)"],
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.05)"],
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.07)"],
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.08)"],
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.1)"] {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Data Tables & Matrix Tables */
[data-theme="light"] .data-table {
    color: #0f172a !important;
}

[data-theme="light"] .data-table th,
[data-theme="light"] .matrix-table th {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

[data-theme="light"] .data-table td,
[data-theme="light"] .matrix-table td {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    background: #ffffff !important;
}

[data-theme="light"] .data-table tbody tr:hover,
[data-theme="light"] .matrix-table tbody tr:hover {
    background: #f1f5f9 !important;
}

[data-theme="light"] tfoot td {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    font-weight: bold;
}

/* Forms, Inputs, Selects & Textareas */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .styled-input,
[data-theme="light"] .styled-select,
[data-theme="light"] .styled-textarea,
[data-theme="light"] .form-input,
[data-theme="light"] .form-control {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
[data-theme="light"] .form-control::placeholder {
    color: #64748b !important;
}

/* Modals & Dialog Overrides */
[data-theme="light"] .modal-overlay,
[data-theme="light"] .modal-overlay-konseling,
[data-theme="light"] [id^="modal"] {
    background: rgba(15, 23, 42, 0.45) !important;
}

[data-theme="light"] .modal-content,
[data-theme="light"] .modal-body,
[data-theme="light"] .modal-container,
[data-theme="light"] .modal-card,
[data-theme="light"] .modal-card-konseling {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .modal-header-konseling,
[data-theme="light"] .modal-footer-konseling {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .modal-header h3,
[data-theme="light"] .modal-header h2,
[data-theme="light"] .modal-header-konseling h3 {
    color: #0f172a !important;
}

[data-theme="light"] .konseling-form-group label {
    color: #334155 !important;
}

[data-theme="light"] .konseling-form-group .form-control {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Buttons & Navigation Controls */
[data-theme="light"] .btn-secondary {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .btn-toggle-sidebar {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .btn-toggle-sidebar:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-floating-sidebar-toggle {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* Status Badges */
[data-theme="light"] [style*="background: rgba(59, 130, 246, 0.15)"],
[data-theme="light"] [style*="background:rgba(59,130,246,0.15)"] {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-theme="light"] [style*="background: rgba(56, 189, 248, 0.15)"],
[data-theme="light"] [style*="background:rgba(56,189,248,0.15)"] {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

[data-theme="light"] [style*="background: rgba(16, 185, 129, 0.15)"],
[data-theme="light"] [style*="background:rgba(16,185,129,0.15)"] {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="light"] [style*="background: rgba(245, 158, 11, 0.15)"],
[data-theme="light"] [style*="background:rgba(245,158,11,0.15)"] {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="light"] [style*="background: rgba(239, 68, 68, 0.15)"],
[data-theme="light"] [style*="background:rgba(239,68,68,0.15)"] {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Background Animated Shapes */
[data-theme="light"] .shape-1 {
    background: rgba(79, 70, 229, 0.12) !important;
}

[data-theme="light"] .shape-2 {
    background: rgba(236, 72, 153, 0.1) !important;
}

[data-theme="light"] .shape-3 {
    background: rgba(16, 185, 129, 0.08) !important;
}

/* Styled Cards & Styled Card Headers (Teacher & Approval Panels) */
[data-theme="light"] .styled-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

[data-theme="light"] .styled-card-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .styled-card-title {
    color: #0f172a !important;
}

[data-theme="light"] .styled-label {
    color: #334155 !important;
}

/* Linear Gradients & Dark Card Overrides */
[data-theme="light"] [style*="linear-gradient"] {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Specific Alerts in Light Mode */
[data-theme="light"] [style*="background: rgba(34, 197, 94, 0.1)"],
[data-theme="light"] [style*="background:rgba(34,197,94,0.1)"],
[data-theme="light"] [style*="background: rgba(34, 197, 94, 0.15)"] {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #15803d !important;
}

/* Table Containers inside Styled Cards */
[data-theme="light"] .styled-card .modern-table-container {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

/* Mobile TaskFlow Card Items in Light Mode */
[data-theme="light"] .tf-mob-card-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .tf-mob-card-item span {
    color: #1e293b !important;
}

/* Unabsen Guru List Items & Widget Containers */
[data-theme="light"] #containerGuruTidakHadirHariIni,
[data-theme="light"] #listUnabsenGuru {
    color: #0f172a !important;
}

/* Multi-Select Dropdown Menu for Target Mapel in Light Mode */
[data-theme="light"] #dropdownTargetKelasMenu {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] #btnToggleClassDropdown {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] #containerMapelClassCheckboxes label {
    color: #1e293b !important;
}

/* Master Data Kelas Form in Light Mode */
[data-theme="light"] #formKelas {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] #formKelas input,
[data-theme="light"] #formKelas select,
[data-theme="light"] #inputSearchKelas {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] #selectWaliKelas option,
[data-theme="light"] #selectTingkatKelas option {
    background: #ffffff;
    color: #0f172a;
}

/* ========================================================= */
/* GENERIC INLINE ALERTS & NOTICES (GLASSMORPHIC & LIGHT/DARK ADAPTIVE) */
/* ========================================================= */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fde68a;
}

.alert-danger,
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Light Mode Overrides for Generic Inline Alerts */
[data-theme="light"] .alert-info {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

[data-theme="light"] .alert-success {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #15803d !important;
}

[data-theme="light"] .alert-warning {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #b45309 !important;
}

[data-theme="light"] .alert-danger,
[data-theme="light"] .alert-error {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

/* Light Mode Overrides for Custom Modal Alerts & Confirm Dialogs */
[data-theme="light"] .custom-alert-overlay {
    background: rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .custom-alert-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

[data-theme="light"] .custom-alert-title {
    color: #0f172a !important;
}

[data-theme="light"] .custom-alert-message {
    color: #475569 !important;
}

[data-theme="light"] .custom-alert-btn-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .custom-alert-btn-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ========================================================= */
/* MOBILE RESPONSIVE REFINEMENTS: STUDENT DASHBOARD & FORMS  */
/* ========================================================= */
@media (max-width: 600px) {

    /* 1. Kotak-kotak Grid Simpel untuk Overview Dashboard & Bimbel KPI Siswa */
    .student-bimbel-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Stat card ke-5 (Persentase) dibuat span 2 kolom agar seimbang */
    .student-bimbel-kpi-grid>div:nth-child(5):last-child {
        grid-column: span 2 !important;
    }

    .student-bimbel-kpi-grid>div {
        padding: 12px 8px !important;
        border-radius: 12px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 72px !important;
        box-sizing: border-box !important;
    }

    .student-bimbel-kpi-grid strong {
        font-size: 1.25rem !important;
        line-height: 1.1 !important;
        margin-top: 2px !important;
    }

    .student-bimbel-kpi-grid span {
        font-size: 0.73rem !important;
        white-space: nowrap !important;
    }

    /* 2. Form Izin KBM & Form Izin Tidak Hadir (Siswa) Tampilan Melebar & Fleksibel */
    .student-izin-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 16px !important;
    }

    .student-izin-grid>div {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 18px 14px !important;
    }

    #formEduIzinKBM,
    #formPengajuanIzinSiswa {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #formEduIzinKBM input,
    #formEduIzinKBM select,
    #formEduIzinKBM textarea,
    #formPengajuanIzinSiswa input,
    #formPengajuanIzinSiswa select,
    #formPengajuanIzinSiswa textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.88rem !important;
        padding: 10px 12px !important;
    }

    /* Prevents horizontal overflow outside card borders */
    .modern-table-container,
    .table-responsive-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
}

/* CSV Import Progress Overlay & Animation Styles */
.csv-import-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.csv-import-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.csv-import-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 30px 35px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    color: #f8fafc;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.csv-import-overlay.active .csv-import-card {
    transform: scale(1);
}

.csv-import-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #60a5fa;
    position: relative;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.csv-import-icon-box.success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}

.csv-import-pulse-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.5);
    animation: csvPulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes csvPulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

.csv-progress-bar-wrap {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0 10px 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.csv-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
    border-radius: 10px;
    transition: width 0.12s linear;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

/* Sub-Tabs Approval Izin Siswa Styling & Segmented Control */
.approval-subtabs-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
    width: 100%;
}

.approval-subtabs-wrapper::-webkit-scrollbar {
    display: none;
}

.approval-subtab-btn {
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.approval-subtab-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.approval-subtab-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-main) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

.approval-subtab-btn:hover i {
    transform: scale(1.1);
}

.approval-subtab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.14)) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2) !important;
}

.approval-subtab-btn.active i {
    color: #38bdf8 !important;
}

/* Responsive Sub-tabs Segmented Controls (KBM, Koku, TKA/UTBK, Pramuka) */
.subtab-label-short {
    display: none !important;
}
.subtab-label-full {
    display: inline !important;
}

/* Light Mode Overrides for Approval Subtabs */
[data-theme="light"] .approval-subtabs-wrapper {
    border-bottom-color: rgba(203, 213, 225, 0.9);
}

[data-theme="light"] .approval-subtab-btn {
    background: #ffffff !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .approval-subtab-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

[data-theme="light"] .approval-subtab-btn.active {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.5) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .approval-subtab-btn.active i {
    color: #0284c7 !important;
}

/* Section containers inside Approval Panel */
.approval-section {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.approval-section.active {
    display: block;
}

/* Dedicated Sub-Tabs for Bimbingan UTBK / TKA */
.bimbel-tabs-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.bimbel-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.bimbel-tab-btn {
    flex: 1;
    min-width: 155px;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.bimbel-tab-btn i {
    font-size: 0.95rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.bimbel-tab-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.15);
}

.bimbel-tab-btn:hover i {
    color: #38bdf8;
    transform: scale(1.08);
}

.bimbel-tab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.22)) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    font-weight: 700;
}

.bimbel-tab-btn.active i {
    color: #38bdf8 !important;
}

/* Khusus Tab 4 Kelola Kelompok TKA Pilihan */
.bimbel-tab-btn[data-tab="tab-bimbel-kelompok"] {
    border-color: rgba(129, 140, 248, 0.18);
}

.bimbel-tab-btn[data-tab="tab-bimbel-kelompok"]:hover {
    border-color: rgba(129, 140, 248, 0.35);
    background: rgba(129, 140, 248, 0.06);
}

.bimbel-tab-btn[data-tab="tab-bimbel-kelompok"].active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(56, 189, 248, 0.2)) !important;
    color: #818cf8 !important;
    border-color: rgba(129, 140, 248, 0.55) !important;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.bimbel-tab-btn[data-tab="tab-bimbel-kelompok"].active i {
    color: #818cf8 !important;
}

.tab-bimbel-content {
    display: none;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

.tab-bimbel-content.active {
    display: block;
}

[data-theme="light"] .bimbel-tabs-wrapper {
    background: rgba(241, 245, 249, 0.85);
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .bimbel-tab-btn {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(203, 213, 225, 0.8);
    color: #475569;
}

[data-theme="light"] .bimbel-tab-btn:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.6);
}

[data-theme="light"] .bimbel-tab-btn.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.14), rgba(79, 70, 229, 0.16)) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.45) !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .bimbel-tab-btn.active i {
    color: #0284c7 !important;
}

[data-theme="light"] .bimbel-tab-btn[data-tab="tab-bimbel-kelompok"].active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(2, 132, 199, 0.14)) !important;
    color: #4f46e5 !important;
    border-color: rgba(79, 70, 229, 0.45) !important;
}

/* Dedicated Sub-Tabs for Administrasi Keuangan Sekolah */
.keuangan-tabs-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.keuangan-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.fin-subtab-btn {
    flex: 1;
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.fin-subtab-btn i {
    font-size: 1rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.fin-subtab-btn:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    transform: translateY(-1px);
}

.fin-subtab-btn:hover i {
    color: #38bdf8 !important;
    transform: scale(1.08);
}

.fin-subtab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.25)) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    font-weight: 700;
}

.fin-subtab-btn.active i {
    color: #38bdf8 !important;
}

/* Light Mode Overrides for Keuangan Subtabs */
[data-theme="light"] .keuangan-tabs-wrapper {
    background: rgba(241, 245, 249, 0.85);
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .fin-subtab-btn {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(203, 213, 225, 0.8) !important;
    color: #475569 !important;
}

[data-theme="light"] .fin-subtab-btn:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.6) !important;
}

[data-theme="light"] .fin-subtab-btn.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.14), rgba(14, 165, 233, 0.18)) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.45) !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .fin-subtab-btn.active i {
    color: #0284c7 !important;
}


/* Base panel width constraints to prevent overflow */
#panel-approval-izin-siswa,
#panel-bimbel-utbk {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* table-responsive utility */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

/* Bimbel form input style (used inline) */
.form-input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .form-input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .form-input:focus {
    border-color: #0284c7 !important;
    background: #f8fafc !important;
}

/* Tab bimbel content default */
.tab-bimbel-content {
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

/* Mobile Responsive Adjustments (Max Width 768px) */
@media (max-width: 768px) {

    /* Conflicting Bottom Nav CSS Sidebar Drawer Layout Removed */

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 12px 80px 12px !important;
    }

    /* === APPROVAL IZIN SISWA === */
    #panel-approval-izin-siswa {
        padding-bottom: 80px !important;
    }

    #panel-approval-izin-siswa .panel-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    #panel-approval-izin-siswa .panel-header button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Subtab wrapper & responsive segmented control */
    .subtab-label-short {
        display: inline !important;
    }
    .subtab-label-full {
        display: none !important;
    }

    .approval-subtabs-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding: 4px 2px 10px 2px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        scrollbar-width: none !important;
    }

    .approval-subtabs-wrapper::-webkit-scrollbar {
        display: none !important;
    }

    /* Subtab buttons mobile responsive */
    .approval-subtab-btn,
    .fin-subtab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 9px 5px !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        justify-content: center !important;
        white-space: nowrap !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        gap: 4px !important;
    }

    .approval-subtab-btn i,
    .fin-subtab-btn i {
        font-size: 0.82rem !important;
        flex-shrink: 0 !important;
    }

    .subtab-label-short {
        display: inline !important;
    }
    .subtab-label-full {
        display: none !important;
    }

    /* Segmented Subtabs for Main Absen Siswa (KBM, Koku, TKA/UTBK, Pramuka) */
    #main-absen-siswa-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 4px 0 10px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #main-absen-siswa-tabs .approval-subtab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 9px 4px !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        gap: 4px !important;
        border-radius: 10px !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    #main-absen-siswa-tabs .approval-subtab-btn i {
        font-size: 0.82rem !important;
        flex-shrink: 0 !important;
    }

    /* Subtab card inner containers */
    #sectionGuruPengajarEduIzin .glass-card,
    #sectionGuruPengajarEduIzin .styled-card,
    #sectionPetugasPiketEduIzin .glass-card,
    #sectionPetugasPiketEduIzin .styled-card,
    #sectionWalasIzinSiswa .glass-card,
    #sectionWalasIzinSiswa .styled-card {
        padding: 16px 12px !important;
        border-radius: 14px !important;
    }

    #sectionGuruPengajarEduIzin .glass-card>div:first-child,
    #sectionPetugasPiketEduIzin .glass-card>div:first-child,
    #sectionWalasIzinSiswa .glass-card>div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* Bulk action button groups */
    #containerBulkGuruEduIzin,
    #containerBulkPiketEduIzin {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    #containerBulkGuruEduIzin button,
    #containerBulkPiketEduIzin button {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }

    #searchGuruHistoryEduIzin,
    #searchPiketHistoryEduIzin {
        width: 100% !important;
    }

    /* Section headers inside approval */
    #sectionWalasIzinSiswa h3,
    #sectionGuruPengajarEduIzin h3,
    #sectionPetugasPiketEduIzin h3 {
        font-size: 1rem !important;
    }

    /* === BIMBINGAN TKA / UTBK === */
    #panel-bimbel-utbk {
        padding-bottom: 80px !important;
    }

    #panel-bimbel-utbk .panel-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    #panel-bimbel-utbk .panel-header>div:last-child {
        width: 100% !important;
    }

    #panel-bimbel-utbk .panel-header button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Bimbel subtabs segmented full width on mobile (Jurnal, Absen, Rekap) */
    .bimbel-tabs-wrapper,
    .bimbel-subtabs-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 16px !important;
        padding: 4px !important;
        overflow-x: hidden !important;
    }

    .bimbel-tab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 9px 4px !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        gap: 5px !important;
        border-radius: 10px !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .bimbel-tab-btn i {
        font-size: 0.82rem !important;
        flex-shrink: 0 !important;
    }

    /* Bimbel form: stack to 1 column */
    #formAbsenGuruBimbel {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Full-width text area span for bimbel form */
    #formAbsenGuruBimbel [style*="grid-column"] {
        grid-column: 1 !important;
    }

    /* Bimbel simpan button full width on mobile */
    #btnSimpanBimbelGuru {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Bimbel siswa filter grid: 1 column */
    #tab-bimbel-siswa .glass-card>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Bimbel rekap filter row: stack */
    #tab-bimbel-rekap .glass-card>div[style*="flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    #tab-bimbel-rekap .glass-card>div>button,
    #tab-bimbel-rekap .glass-card>div>select,
    #tab-bimbel-rekap .glass-card>div>input {
        width: 100% !important;
    }

    /* Bimbel locked banner wrap */
    #bannerBimbelSiswaLocked {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    #btnToggleEditBimbelSiswa {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Bimbel save siswa button full width */
    #btnSimpanAbsenSiswaBimbel,
    #btnRefreshBimbel {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Flex-between inside bimbel siswa tab */
    #wrapperAbsenSiswaBimbel .flex-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    /* Tab bimbel content cards */
    .tab-bimbel-content .glass-card {
        padding: 16px 12px !important;
        border-radius: 14px !important;
    }

    /* Bimbel radio group responsive */
    .bimbel-status-radio-group {
        gap: 4px !important;
        flex-wrap: wrap !important;
    }

    .bimbel-status-radio-group label {
        font-size: 0.72rem !important;
        padding: 4px 6px !important;
    }
}

/* Modern Table Container Horizontal Scroll & Custom Scrollbar */
.modern-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.modern-table-container::-webkit-scrollbar {
    height: 6px;
}

.modern-table-container::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 10px;
}

/* Admin Setting Tabs Styling */
.admin-setting-tab-btn {
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    border: 1px solid var(--card-border) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.admin-setting-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-main) !important;
}

.admin-setting-tab-btn.active {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15) !important;
}

.admin-setting-tab-content {
    animation: fadeIn 0.3s ease forwards;
    width: 100%;
    box-sizing: border-box;
}

/* Compact Action Button Group for Panel Headers */
.action-btn-group-compact {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.action-btn-group-compact button {
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.action-btn-group-compact button.btn-amber {
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fcd34d !important;
}

.action-btn-group-compact button:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .action-btn-group-compact {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .action-btn-group-compact button {
        width: 100% !important;
        padding: 9px 8px !important;
        font-size: 0.78rem !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .action-btn-group-compact button span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Bimbel Status Radio Group Responsive Layout */
.bimbel-status-radio-group {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.bimbel-status-radio-group label {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.78rem !important;
    padding: 5px 8px !important;
    white-space: nowrap;
    user-select: none;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .bimbel-status-radio-group {
        gap: 4px;
    }

    .bimbel-status-radio-group label {
        padding: 4px 6px !important;
        font-size: 0.72rem !important;
    }
}

/* ========================================== */
/* MODUL PRESENSI BIMBINGAN TKA / UTBK STYLES */
/* ========================================== */

.bimbel-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.4);
}

/* === MOBILE OVERRIDES FIXES (ADDED FOR NAVBAR & DASHBOARD) === */
@media (max-width: 768px) {

    /* Fix top padding covered by fixed mobile-top-bar and prevent width overflow */
    .main-content {
        padding-top: 74px !important;
        padding-bottom: 84px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Hide Desktop Sidebar branding, hamburger and Toggle button on mobile */
    .sidebar-brand,
    .btn-toggle-sidebar,
    #btnToggleSidebar,
    #btnMobileSidebarMenu {
        display: none !important;
    }

    /* Force Class summary cards to fit 1 row horizontally (Sejajar di HP) - Khusus Admin/Guru yang tidak disembunyikan */
    #widget-kelas-summary:not([style*="display: none"]):not(.hidden),
    .overview-kelas-summary-grid:not([style*="display: none"]):not(.hidden) {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        margin-bottom: 18px !important;
    }

    #widget-kelas-summary.hidden,
    #widget-kelas-summary[style*="display: none"],
    .overview-kelas-summary-grid.hidden,
    .overview-kelas-summary-grid[style*="display: none"] {
        display: none !important;
    }

    #widget-kelas-summary .glass-card,
    .ov-kelas-card {
        padding: 10px 6px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 12px !important;
        border-left-width: 3px !important;
        min-width: 0 !important;
    }

    #widget-kelas-summary .glass-card > div:first-child,
    .ov-kelas-info {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        min-width: 0 !important;
    }

    #widget-kelas-summary .glass-card span,
    .ov-kelas-title {
        font-size: 0.66rem !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .ov-kelas-title .lbl-full {
        display: none !important; /* Di layar ponsel kecil, tampilkan "Kelas X", "Kelas XI", "Kelas XII" agar rapi sejajar */
    }

    #widget-kelas-summary .glass-card h3,
    .ov-kelas-val {
        font-size: 1.12rem !important;
        font-weight: 800 !important;
        margin: 4px 0 0 0 !important;
        white-space: nowrap !important;
        letter-spacing: -0.02em !important;
    }

    /* Hide big class circle icon in mobile 1-row layout */
    #widget-kelas-summary .glass-card > div:last-child,
    .ov-kelas-badge {
        display: none !important;
    }

    /* Prevent overflow on cards */
    .glass-card,
    .styled-card {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Card Quick Scan QR Siswa (Mobile) */
    .student-quick-scan-card,
    #cardQuickScanQrSiswa {
        padding: 14px 16px !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
    }

    .student-quick-scan-content,
    #cardQuickScanQrSiswa > div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .student-scan-qr-icon {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 0 !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .student-scan-qr-icon i {
        font-size: 1.45rem !important;
        line-height: 1 !important;
    }

    .student-quick-scan-desc {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .student-quick-scan-desc h4 {
        font-size: 0.98rem !important;
        line-height: 1.25 !important;
    }

    .student-quick-scan-desc p {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
    }

    .student-quick-actions-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .student-quick-actions-row button,
    .student-quick-actions-row .student-btn-scan-qr,
    .student-quick-actions-row #btnBukaQrKartuSiswa,
    #cardQuickScanQrSiswa .student-quick-actions-row button {
        flex: 1 1 0 !important;
        width: 50% !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 9px 8px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    /* ==========================================================================
       DASHBOARD MODE MOBILE SISWA: MAKSIMAL 2 BARIS UNTUK STATISTIK PRESENSI
       Row 1: Hadir (2), Terlambat (2), Izin/Sakit (2) -> 3 kartu sejajar
       Row 2: Alpa (3), Persentase (3)                 -> 2 kartu sejajar
       ========================================================================== */
    .student-personal-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Baris 1: 3 Kartu (Hadir, Terlambat, Izin/Sakit) */
    .student-personal-kpi-grid .student-kpi-hadir {
        grid-column: span 2 !important;
    }
    .student-personal-kpi-grid .student-kpi-telat {
        grid-column: span 2 !important;
    }
    .student-personal-kpi-grid .student-kpi-izin {
        grid-column: span 2 !important;
    }

    /* Baris 2: 2 Kartu (Alpa, Persentase) */
    .student-personal-kpi-grid .student-kpi-alpa {
        grid-column: span 3 !important;
    }
    .student-personal-kpi-grid .student-kpi-perc {
        grid-column: span 3 !important;
    }

    .student-kpi-card {
        padding: 9px 4px !important;
        border-radius: 10px !important;
        min-width: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .student-kpi-lbl {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        gap: 3px !important;
        letter-spacing: -0.01em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .student-kpi-lbl i {
        font-size: 0.72rem !important;
    }

    .student-personal-kpi-val {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        margin: 3px 0 0 0 !important;
        line-height: 1.15 !important;
    }

    /* Bimbel KPI Grid Mobile (Maksimal 2 baris: 3 di atas, 2 di bawah) */
    .student-bimbel-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .student-bimbel-kpi-grid > div:nth-child(1),
    .student-bimbel-kpi-grid > div:nth-child(2),
    .student-bimbel-kpi-grid > div:nth-child(3) {
        grid-column: span 2 !important;
    }
    .student-bimbel-kpi-grid > div:nth-child(4),
    .student-bimbel-kpi-grid > div:nth-child(5) {
        grid-column: span 3 !important;
    }
    .student-bimbel-kpi-grid > div {
        padding: 8px 4px !important;
        min-width: 0 !important;
        text-align: center !important;
        border-radius: 10px !important;
    }
    .student-bimbel-kpi-grid > div span {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .student-bimbel-kpi-grid > div strong {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        margin-top: 3px !important;
        display: block !important;
    }

    /* Fix Grid Formulir Izin Siswa di Layar HP */
    .izin-siswa-content-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

/* === GLOBAL FIXES (DESKTOP & MOBILE) === */
#panel-izin-siswa,
#panel-izin-siswa .panel-body,
#panel-izin-siswa .glass-card,
#panel-izin-siswa form,
#panel-izin-siswa input,
#panel-izin-siswa select,
#panel-izin-siswa textarea,
#panel-izin-siswa button {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

#panel-izin-siswa select,
#panel-izin-siswa input[type="text"],
#panel-izin-siswa input[type="date"],
#panel-izin-siswa textarea {
    -webkit-appearance: none;
    appearance: none;
}

/* === DESKTOP ONLY: Layout Grid Pengajuan Izin Default (2 Kolom) === */
@media (min-width: 769px) {
    .izin-siswa-content-grid {
        display: grid !important;
        /* Kolom 1 (Form) fleksibel tapi tidak lebih kecil dari 300px, Kolom 2 (Tabel History) minimal mengambil 1.6x ruang sisa */
        grid-template-columns: minmax(300px, 1fr) 1.6fr !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ========================================================================= */
/* TAB PENGAJUAN IZIN SISWA: MODEL BUTTON SEJAJAR 3 TOMBOL (DESKTOP & MOBILE) */
/* ========================================================================= */
.izin-siswa-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.izin-siswa-tab-btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    text-align: left !important;
    outline: none !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.izin-siswa-tab-btn:hover {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #f1f5f9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

.tab-btn-icon-box {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: inherit !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.tab-btn-text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    line-height: 1.25 !important;
}

.tab-text-title {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: inherit !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.tab-text-desc {
    font-size: 0.72rem !important;
    color: #64748b !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* --- Active States for 3 Buttons --- */
/* 1. Izin KBM (Amber Gold) */
.izin-siswa-tab-btn.btn-tab-kbm.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(180, 83, 9, 0.14)) !important;
    border-color: #f59e0b !important;
    color: #fbbf24 !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3) !important;
}
.izin-siswa-tab-btn.btn-tab-kbm.active .tab-btn-icon-box {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #fbbf24 !important;
}
.izin-siswa-tab-btn.btn-tab-kbm.active .tab-text-desc {
    color: rgba(251, 191, 36, 0.8) !important;
}

/* 2. Izin Tidak Hadir (Emerald Green) */
.izin-siswa-tab-btn.btn-tab-tidakhadir.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.14)) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3) !important;
}
.izin-siswa-tab-btn.btn-tab-tidakhadir.active .tab-btn-icon-box {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #34d399 !important;
}
.izin-siswa-tab-btn.btn-tab-tidakhadir.active .tab-text-desc {
    color: rgba(52, 211, 153, 0.8) !important;
}

/* 3. Riwayat Pengajuan (Sky Blue) */
.izin-siswa-tab-btn.btn-tab-riwayat.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.14)) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3) !important;
}
.izin-siswa-tab-btn.btn-tab-riwayat.active .tab-btn-icon-box {
    background: rgba(56, 189, 248, 0.25) !important;
    color: #38bdf8 !important;
}
.izin-siswa-tab-btn.btn-tab-riwayat.active .tab-text-desc {
    color: rgba(56, 189, 248, 0.8) !important;
}

/* --- Responsive Mobile Optimization (<= 768px): Sejajar 3 Tombol Proporsional & Tegas --- */
@media (max-width: 768px) {
    .izin-siswa-tabs-nav {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 16px !important;
        padding: 0 !important;
    }

    .izin-siswa-tab-btn {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 4px 8px 4px !important;
        border-radius: 12px !important;
        gap: 4px !important;
        text-align: center !important;
        min-height: 66px !important;
    }

    .tab-btn-icon-box {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.95rem !important;
        margin-bottom: 2px !important;
        border-radius: 8px !important;
    }

    .tab-text-title {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.2px !important;
        text-align: center !important;
        line-height: 1.15 !important;
        display: block !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .tab-text-desc {
        display: none !important;
    }
}

/* === PRAMUKA STATUS PILL BUTTONS === */
.pramuka-status-pill {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid transparent;
}
.pramuka-status-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}
.pramuka-status-pill.active-hadir {
    background: rgba(34, 197, 94, 0.25) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}
.pramuka-status-pill.active-izin {
    background: rgba(234, 179, 8, 0.25) !important;
    color: #facc15 !important;
    border: 1px solid rgba(234, 179, 8, 0.5) !important;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
}
.pramuka-status-pill.active-sakit {
    background: rgba(249, 115, 22, 0.25) !important;
    color: #fb923c !important;
    border: 1px solid rgba(249, 115, 22, 0.5) !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}
.pramuka-status-pill.active-alpa {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}
.pramuka-status-pill.active-dispensasi {
    background: rgba(168, 85, 247, 0.25) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

/* ==========================================================================
   BIMBINGAN & KONSELING (EDUMENTOR) STYLES
   ========================================================================== */
.modal-overlay-konseling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeInKonseling 0.2s ease-out;
}

@keyframes fadeInKonseling {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.modal-card-konseling {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header-konseling {
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-konseling h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #f8fafc;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body-konseling {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer-konseling {
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.konseling-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
}

.konseling-form-group .form-control {
    width: 100%;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #f8fafc;
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.konseling-form-group .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.konseling-kpi-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.konseling-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.kpi-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.kpi-icon-sky { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.kpi-icon-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.kpi-icon-amber { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.kpi-icon-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.kpi-icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.kpi-stat-lbl {
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.kpi-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
    margin-top: 2px;
    line-height: 1.2;
}
.kpi-stat-val.val-kehadiran {
    color: #4ade80;
}

.modal-info-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    border-radius: 8px;
}

/* Print View Styles */
@media print {
    .no-print {
        display: none !important;
    }
    .print-header-konseling {
        display: block !important;
        margin-bottom: 20px;
        text-align: center;
    }
    .print-signatures-konseling {
        display: flex !important;
        justify-content: space-between;
        margin-top: 40px;
        page-break-inside: avoid;
    }
}

/* Hak Akses Modul Bimbingan & Konseling: Sembunyikan tombol Catat & Cetak untuk Siswa */
body.role-siswa #btnCatatMasalahKonseling,
body.role-siswa #btnCetakKonseling,
body.role-siswa .konseling-non-siswa {
    display: none !important;
}

body.role-siswa #btnAjukanKonseling {
    display: inline-flex !important;
}

/* Styling Modul Presensi Guru Mata Pelajaran (KBM) */
.kpi-pill-badge {
    transition: transform 0.2s, box-shadow 0.2s;
}
.kpi-pill-badge:hover {
    transform: translateY(-1px);
}

#tableMatrixMapelRecap th,
#tableMatrixMapelRecap td {
    border-color: rgba(255, 255, 255, 0.08);
}

@media print {
    body.printing-mapel-recap {
        background: #ffffff !important;
        color: #000000 !important;
    }
    body.printing-mapel-recap .sidebar,
    body.printing-mapel-recap .topbar,
    body.printing-mapel-recap .panel-header,
    body.printing-mapel-recap #subpanel-input-absen-mapel,
    body.printing-mapel-recap .approval-subtabs-wrapper,
    body.printing-mapel-recap .glass-card,
    body.printing-mapel-recap > *:not(.app-layout),
    body.printing-mapel-recap .app-layout > *:not(.main-content),
    body.printing-mapel-recap .main-content > *:not(#panel-absen-mapel) {
        display: none !important;
    }
    body.printing-mapel-recap #printAreaRekapMapel {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ========================================================================= */
/* PENGATURAN TEMA KHUSUS: LIGHT MODE HARMONIS & BEBAS KESALAHAN WARNA       */
/* ========================================================================= */

/* 1. Modul Bimbingan & Konseling (EduMentor) & Rekap KPI Cards in Light Mode */
[data-theme="light"] .konseling-kpi-card,
body.light-mode .konseling-kpi-card,
[data-theme="light"] #konselingStatsGrid .konseling-kpi-card,
[data-theme="light"] #rekapMapelStatsGrid .konseling-kpi-card,
[data-theme="light"] [id^="cardKonselingStat"] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .konseling-kpi-card:hover,
body.light-mode .konseling-kpi-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09) !important;
}

[data-theme="light"] .kpi-stat-lbl,
body.light-mode .kpi-stat-lbl,
[data-theme="light"] .konseling-kpi-card .kpi-stat-lbl,
[data-theme="light"] .konseling-kpi-card [id^="lblKonselingStat"],
[data-theme="light"] .konseling-kpi-card div:last-child > div:first-child {
    color: #475569 !important;
}

[data-theme="light"] .kpi-stat-val,
body.light-mode .kpi-stat-val,
[data-theme="light"] .konseling-kpi-card .kpi-stat-val,
[data-theme="light"] .konseling-kpi-card [id^="valKonselingStat"],
[data-theme="light"] .konseling-kpi-card [id^="valRekapTotal"] {
    color: #0f172a !important;
}

[data-theme="light"] .kpi-stat-val.val-kehadiran,
[data-theme="light"] #valRekapRataRataKehadiran {
    color: #15803d !important;
}

/* Light Mode KPI Icon Badges with Rich High Contrast */
[data-theme="light"] .kpi-icon-sky,
[data-theme="light"] #cardKonselingStat1 .kpi-icon-box {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0284c7 !important;
}
[data-theme="light"] .kpi-icon-red,
[data-theme="light"] #cardKonselingStat2 .kpi-icon-box {
    background: rgba(220, 38, 38, 0.12) !important;
    color: #dc2626 !important;
}
[data-theme="light"] .kpi-icon-amber,
[data-theme="light"] #cardKonselingStat3 .kpi-icon-box {
    background: rgba(217, 119, 6, 0.12) !important;
    color: #b45309 !important;
}
[data-theme="light"] .kpi-icon-green,
[data-theme="light"] #cardKonselingStat4 .kpi-icon-box {
    background: rgba(22, 163, 74, 0.12) !important;
    color: #15803d !important;
}
[data-theme="light"] .kpi-icon-purple {
    background: rgba(147, 51, 234, 0.12) !important;
    color: #7e22ce !important;
}

/* Konseling Table in Light Mode */
[data-theme="light"] #tableKonseling th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-bottom: 2px solid #cbd5e1 !important;
}
[data-theme="light"] #tableKonseling td {
    background: #ffffff !important;
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] #tableKonseling tr:hover td {
    background: #f8fafc !important;
}
[data-theme="light"] .konseling-siswa-nama {
    color: #0f172a !important;
}
[data-theme="light"] .konseling-siswa-kelas {
    background: #e2e8f0 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .konseling-siswa-nisn {
    color: #64748b !important;
}
[data-theme="light"] .konseling-guru-nama {
    color: #0284c7 !important;
}
[data-theme="light"] .konseling-deskripsi-text {
    color: #1e293b !important;
}

/* Kategori & Status Badges Light Mode */
[data-theme="light"] .badge-kat-pelanggaran {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}
[data-theme="light"] .badge-kat-bk {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #7dd3fc !important;
}
[data-theme="light"] .badge-kat-konsultasi {
    background: #e0e7ff !important;
    color: #4338ca !important;
    border-color: #a5b4fc !important;
}
[data-theme="light"] .badge-status-selesai {
    color: #15803d !important;
}
[data-theme="light"] .badge-status-selesai-bk {
    color: #0284c7 !important;
}
[data-theme="light"] .badge-status-eskalasi {
    color: #c2410c !important;
}
[data-theme="light"] .badge-status-menunggu {
    color: #b45309 !important;
}

[data-theme="light"] .konseling-solusi-box,
[data-theme="light"] #tableKonseling [style*="background: rgba(15, 23, 42"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}
[data-theme="light"] .konseling-solusi-box strong,
[data-theme="light"] #tableKonseling [style*="background: rgba(15, 23, 42"] strong {
    color: #0284c7 !important;
}
[data-theme="light"] .konseling-solusi-box div,
[data-theme="light"] #tableKonseling [style*="background: rgba(15, 23, 42"] div {
    color: #334155 !important;
}

/* Modals & Info Boxes in Light Mode */
[data-theme="light"] .modal-info-box,
[data-theme="light"] #solusiInfoBox,
[data-theme="light"] #modalCetakKonseling .modal-body-konseling > div {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}
[data-theme="light"] .modal-info-box label,
[data-theme="light"] .modal-info-box strong,
[data-theme="light"] #solusiInfoBox #solusiInfoSiswa,
[data-theme="light"] #modalCetakKonseling label {
    color: #0f172a !important;
}
[data-theme="light"] .modal-info-box p,
[data-theme="light"] .modal-info-box div,
[data-theme="light"] #solusiInfoBox #solusiInfoDeskripsi,
[data-theme="light"] #modalCetakKonseling p {
    color: #475569 !important;
}
[data-theme="light"] #searchKonselingInput,
[data-theme="light"] #filterKonselingKategori,
[data-theme="light"] #filterKonselingStatus {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* 2. Modul Presensi Guru Mapel in Light Mode */
[data-theme="light"] #panel-absen-mapel .glass-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] #subpanel-input-absen-mapel label,
[data-theme="light"] #subpanel-rekap-absen-mapel label {
    color: #334155 !important;
}
[data-theme="light"] #selectMapelAbsen,
[data-theme="light"] #selectKelasMapelAbsen,
[data-theme="light"] #inputTanggalMapelAbsen,
[data-theme="light"] #inputMateriMapelAbsen,
[data-theme="light"] #inputCatatanMapelAbsen,
[data-theme="light"] #selectRekapMapel,
[data-theme="light"] #selectRekapKelas,
[data-theme="light"] #selectRekapBulan {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
[data-theme="light"] .kpi-pill-badge {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] #statMapelTotal { color: #0f172a !important; }
[data-theme="light"] #statMapelHadir { color: #15803d !important; }
[data-theme="light"] #statMapelSakit { color: #b45309 !important; }
[data-theme="light"] #statMapelIzin { color: #4338ca !important; }
[data-theme="light"] #statMapelAlpa { color: #b91c1c !important; }
[data-theme="light"] #statMapelDispensasi { color: #c2410c !important; }

/* Table Roster Mapel Light Mode */
[data-theme="light"] #tableRosterMapel th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-bottom: 2px solid #cbd5e1 !important;
}
[data-theme="light"] #tableRosterMapel td {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}
[data-theme="light"] #tableRosterMapel tr:hover td {
    background: #f8fafc !important;
}
[data-theme="light"] #tableRosterMapel [style*="color: #f8fafc"],
[data-theme="light"] #tableRosterMapel [style*="color:#f8fafc"] {
    color: #0f172a !important;
}
[data-theme="light"] #tableRosterMapel [style*="color: #cbd5e1"],
[data-theme="light"] #tableRosterMapel [style*="color:#cbd5e1"],
[data-theme="light"] #tableRosterMapel [style*="color: #94a3b8"],
[data-theme="light"] #tableRosterMapel [style*="color:#94a3b8"] {
    color: #475569 !important;
}
[data-theme="light"] .btn-status-capsule,
[data-theme="light"] #tableBodyRosterMapel [style*="background: rgba(0,0,0,0.25)"],
[data-theme="light"] #tableBodyRosterMapel [style*="background: rgba(0, 0, 0, 0.25)"] {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .btn-status-kbm:not(.active),
[data-theme="light"] #tableBodyRosterMapel button[style*="rgba(255, 255, 255, 0.05)"],
[data-theme="light"] #tableBodyRosterMapel button[style*="rgba(255,255,255,0.05)"] {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .input-roster-keterangan,
[data-theme="light"] #tableBodyRosterMapel input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Rekap Matrix Table Light Mode */
[data-theme="light"] #tableMatrixMapelRecap th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] #tableMatrixMapelRecap td {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}
[data-theme="light"] #tableMatrixMapelRecap tr:hover td {
    background: #f8fafc !important;
}
[data-theme="light"] #tableMatrixMapelRecap th [style*="color: #38bdf8"] {
    color: #0284c7 !important;
}
[data-theme="light"] #tableMatrixMapelRecap th [style*="color: #94a3b8"] {
    color: #64748b !important;
}
[data-theme="light"] #tableMatrixMapelRecap [style*="color: #f8fafc"],
[data-theme="light"] #tableMatrixMapelRecap [style*="color:#f8fafc"] {
    color: #0f172a !important;
}
[data-theme="light"] #tableMatrixMapelRecap [style*="color: #cbd5e1"],
[data-theme="light"] #tableMatrixMapelRecap [style*="color:#cbd5e1"],
[data-theme="light"] #tableMatrixMapelRecap [style*="color: #94a3b8"],
[data-theme="light"] #tableMatrixMapelRecap [style*="color:#94a3b8"] {
    color: #475569 !important;
}

/* Riwayat Sesi KBM Cards Light Mode */
[data-theme="light"] #containerRiwayatSesiMapel .glass-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] #containerRiwayatSesiMapel [style*="color: #f8fafc"] {
    color: #0f172a !important;
}
[data-theme="light"] #containerRiwayatSesiMapel [style*="color: #cbd5e1"],
[data-theme="light"] #containerRiwayatSesiMapel [style*="color: #94a3b8"] {
    color: #475569 !important;
}
[data-theme="light"] #containerRiwayatSesiMapel [style*="background: rgba(56, 189, 248, 0.15)"] {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0284c7 !important;
}
[data-theme="light"] #containerRiwayatSesiMapel [style*="background: rgba(34,197,94,0.15)"] {
    background: rgba(22, 163, 74, 0.12) !important;
    color: #15803d !important;
}
[data-theme="light"] #containerRiwayatSesiMapel [style*="background: rgba(234,179,8,0.15)"] {
    background: rgba(202, 138, 4, 0.12) !important;
    color: #a16207 !important;
}
[data-theme="light"] #containerRiwayatSesiMapel [style*="background: rgba(99,102,241,0.15)"] {
    background: rgba(79, 70, 229, 0.12) !important;
    color: #4338ca !important;
}
[data-theme="light"] #containerRiwayatSesiMapel [style*="background: rgba(239,68,68,0.15)"] {
    background: rgba(220, 38, 38, 0.12) !important;
    color: #b91c1c !important;
}
[data-theme="light"] #containerRiwayatSesiMapel [style*="background: rgba(249,115,22,0.15)"] {
    background: rgba(234, 88, 12, 0.12) !important;
    color: #c2410c !important;
}

/* 3. Overview Dashboard Kelas Monitoring Light Mode */
[data-theme="light"] #badgeTotalSiswaPerKelasHeader {
    background: rgba(79, 70, 229, 0.1) !important;
    color: #4338ca !important;
    border-color: rgba(79, 70, 229, 0.3) !important;
}
[data-theme="light"] #badgeKelasBelumAbsenCount {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}
[data-theme="light"] .btn-filter-kelas-tingkat {
    background: #ffffff !important;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .btn-filter-kelas-tingkat.active {
    background: rgba(79, 70, 229, 0.12) !important;
    color: #4338ca !important;
    border-color: rgba(79, 70, 229, 0.4) !important;
}
[data-theme="light"] #btnTabKelasBelumAbsen {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}
[data-theme="light"] #btnTabKelasSudahAbsen {
    background: rgba(34, 197, 94, 0.08) !important;
    color: #15803d !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}
/* ========================================================================= */
/* CARD MONITORING KELAS & STATUS ABSENSI (DESKTOP & MOBILE UNIFIED)         */
/* ========================================================================= */
.overview-class-monitoring-card,
.overview-class-status-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.overview-class-status-card.status-belum-absen {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.22);
}

.overview-class-status-card.status-sudah-absen {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.22);
}

.ov-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ov-card-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ov-class-badge {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.badge-red-gradient {
    background: linear-gradient(135deg, #ef4444, #f59e0b) !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3) !important;
}

.badge-green-gradient {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
}

.ov-class-titles {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.ov-class-name {
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
}

.ov-class-total-badge {
    font-size: 0.72rem;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1px 7px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-danger-soft {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.badge-success-soft {
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.ov-card-stat-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.ov-gender-pill {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 600;
}

.ov-gender-l {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ov-gender-p {
    color: #f472b6;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.ov-status-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 7px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.tag-belum-absen {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.38);
}

.tag-sudah-absen {
    color: #86efac;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.38);
}

.ov-card-teacher-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
    padding-left: 2px;
}

.ov-card-teacher-row i {
    color: #38bdf8;
    font-size: 0.75rem;
}

.ov-teacher-name {
    color: #cbd5e1;
    font-weight: 500;
}

.ov-meta-dot {
    color: #64748b;
    margin: 0 2px;
}

.ov-absen-time {
    color: #a5b4fc;
    font-size: 0.74rem;
}

.ov-card-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
}

.ov-progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.ov-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.ov-progress-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Light mode overrides for class monitoring cards */
[data-theme="light"] .overview-class-monitoring-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .overview-class-status-card.status-belum-absen {
    background: #fff5f5 !important;
    border-color: #fecaca !important;
}

[data-theme="light"] .overview-class-status-card.status-sudah-absen {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

[data-theme="light"] .ov-class-name {
    color: #0f172a !important;
}

[data-theme="light"] .ov-teacher-name {
    color: #334155 !important;
}

[data-theme="light"] .ov-progress-track {
    background: #e2e8f0 !important;
}

/* ========================================================================= */
/* PENGATURAN TAMPILAN MOBILE: RAPI, PROPORSIONAL & TIDAK SALING BERTUMPUK   */
/* ========================================================================= */
@media (max-width: 768px) {
    /* 1. Overview Dashboard Kelas Monitoring */
    #overviewRowKelasMonitoring {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    #overviewGrid2Col {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    /* Overview KPI Grid on Mobile (Zero sideways overflow, sleek & responsive) */
    #overviewKpiGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    #overviewKpiGrid .glass-card {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        position: relative !important;
        padding: 9px 9px !important;
        min-height: 82px !important;
        height: auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }
    #overviewKpiGrid .glass-card > div:first-child {
        width: 100% !important;
        padding-right: 28px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    #overviewKpiGrid .glass-card > div:first-child > span:first-child {
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        color: var(--text-muted) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        line-height: 1.2 !important;
    }
    #overviewKpiGrid .glass-card h3 {
        font-size: 1.12rem !important;
        font-weight: 800 !important;
        margin: 2px 0 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    #overviewKpiGrid .glass-card > div:first-child > span:last-child {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        line-height: 1.2 !important;
    }
    #overviewKpiGrid .glass-card > div:last-child {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        border-radius: 6px !important;
        font-size: 0.78rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    /* Overview Charts Mobile */
    #overviewChartsRow1,
    #overviewChartsRow2 {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    #overviewChartsRow1 .glass-card,
    #overviewChartsRow2 .glass-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 16px 14px !important;
    }
    #overviewChartsRow1 .glass-card canvas,
    #overviewChartsRow2 .glass-card canvas {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Pemenuhan Tugas Mobile Responsive Layout */
    /* Pemenuhan Tugas Mobile Responsive Layout */
    #panel-pemenuhan-tugas {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding-bottom: 120px !important; /* Ruang aman di atas bottom navbar */
    }
    #panel-pemenuhan-tugas .panel-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
    }
    #panel-pemenuhan-tugas .panel-header > div:last-child {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    #panel-pemenuhan-tugas .panel-header > div:last-child > button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* REKONSTRUKSI TAMPILAN SISWA (MOBILE) */
    #tf-view-siswa {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    #tf-view-siswa > div[style*="grid-template-columns"],
    #tf-siswa-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-bottom: 16px !important;
    }
    #tf-siswa-status-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }
    #tf-view-siswa .styled-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 16px 14px !important;
        margin-bottom: 0 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        background: rgba(15, 23, 42, 0.75) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    }
    #tf-siswa-mapel-select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.84rem !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
        text-overflow: ellipsis !important;
    }
    #tf-btn-ajukan {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.88rem !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }
    #tf-btn-print-rekapan {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 14px !important;
        margin-top: 10px !important;
        border-radius: 10px !important;
    }

    /* Ganti tabel desktop menjadi kartu mobile pada layar HP */
    #tf-view-siswa .tf-desktop-table {
        display: none !important;
    }
    #tf-view-siswa .tf-mobile-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .tf-mob-card-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        transition: transform 0.15s ease !important;
    }
    .tf-mob-card-item:active {
        transform: scale(0.99) !important;
    }
    #tf-view-guru {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    #tf-view-guru .styled-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 16px 12px !important;
        overflow: hidden !important;
    }
    #tf-view-guru .styled-card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    #tf-search-guru {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    #tf-view-admin {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    #tf-view-admin > div[style*="border-bottom"] {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        scrollbar-width: none;
    }
    #tf-view-admin > div[style*="border-bottom"]::-webkit-scrollbar {
        display: none;
    }
    .tf-admin-tab-btn {
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        padding: 7px 12px !important;
        font-size: 0.78rem !important;
    }
    #tf-admin-tab-tasks .styled-card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    #tf-admin-tab-tasks .styled-card-header > div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    #tf-filter-admin-status,
    #tf-filter-admin-kelas,
    #tf-filter-admin-search {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    #tf-admin-tab-mapels .styled-card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    #tf-admin-tab-mapels .styled-card-header button {
        width: 100% !important;
        justify-content: center !important;
    }
    #panel-pemenuhan-tugas .modern-table-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        margin-top: 10px !important;
        border-radius: 8px !important;
    }
    #panel-pemenuhan-tugas table.data-table {
        min-width: 520px !important;
        width: 100% !important;
    }
    #listSiswaPerKelasContainer,
    #listKelasBelumAbsenContainer {
        max-height: 380px !important;
    }

    /* Mobile Class Monitoring Card Layout Refinements */
    .overview-class-monitoring-card,
    .overview-class-status-card {
        padding: 10px 12px !important;
        gap: 6px !important;
    }
    .ov-card-teacher-row {
        font-size: 0.76rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }
    .ov-teacher-name {
        white-space: normal !important;
    }
    .btn-tab-status-absen {
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }
    .btn-filter-kelas-tingkat {
        padding: 5px 11px !important;
        font-size: 0.74rem !important;
    }

    /* 2. Modul Presensi Guru Mapel Mobile */
    #subpanel-input-absen-mapel .glass-card > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    #subpanel-input-absen-mapel .glass-card > div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    #btnMuatSiswaMapel {
        width: 100% !important;
        height: 44px !important;
        margin-top: 6px !important;
        justify-content: center !important;
    }

    /* KPI Pills Mobile */
    .kpi-pill-badge {
        flex: 1 1 calc(33.333% - 8px) !important;
        min-width: 85px !important;
        padding: 6px 8px !important;
        justify-content: center !important;
    }
    .kpi-pill-badge span {
        font-size: 0.72rem !important;
    }
    .kpi-pill-badge strong {
        font-size: 0.92rem !important;
    }

    /* Action Buttons in Roster Mobile: Tampilkan QR & Scan QR Sejajar */
    .mapel-roster-actions-row,
    #subpanel-input-absen-mapel div[style*="justify-content: space-between"] > div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .mapel-qr-actions-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    #btnBukaQrMapel,
    #btnScanKameraMapel {
        flex: 1 1 0 !important;
        width: 50% !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 9px 6px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        letter-spacing: -0.2px !important;
    }
    #btnBukaQrMapel span,
    #btnScanKameraMapel span {
        white-space: nowrap !important;
    }
    #btnTandaiSemuaHadirMapel,
    #btnSimpanPresensiMapel {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 16px !important;
    }

    /* Rekap Filter Bar & Actions Mobile */
    #subpanel-rekap-absen-mapel .glass-card > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }
    #subpanel-rekap-absen-mapel .glass-card > div > div:first-child {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }
    #subpanel-rekap-absen-mapel .glass-card > div > div:first-child > div {
        width: 100% !important;
        min-width: 100% !important;
    }
    #subpanel-rekap-absen-mapel .glass-card > div > div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    #btnTampilkanRekapMapel,
    #btnCetakRekapMapelPdf {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 16px !important;
    }

    /* Tabel Horizontal Scroll Protection */
    #tableRosterMapel {
        min-width: 680px !important;
    }
    #tableMatrixMapelRecap {
        min-width: 720px !important;
    }
    #tableKonseling {
        min-width: 680px !important;
    }

    /* Riwayat Sesi KBM Cards Mobile */
    #containerRiwayatSesiMapel .glass-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 14px !important;
    }
    #containerRiwayatSesiMapel .glass-card > div:first-child {
        width: 100% !important;
    }
    #containerRiwayatSesiMapel .glass-card > div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-top: 10px !important;
    }
    [data-theme="light"] #containerRiwayatSesiMapel .glass-card > div:last-child {
        border-top-color: #e2e8f0 !important;
    }
    #containerRiwayatSesiMapel .glass-card > div:last-child > div:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: space-between !important;
    }
    #containerRiwayatSesiMapel .glass-card > div:last-child > div:last-child {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
    }
    #containerRiwayatSesiMapel .glass-card > div:last-child > div:last-child button {
        flex: 1 !important;
        justify-content: center !important;
        padding: 9px 12px !important;
    }

    /* 3. Modul Konseling Mobile */
    #panel-konseling .glass-card > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    #searchKonselingInput {
        width: 100% !important;
    }
    #panel-konseling .glass-card > div > div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    #filterKonselingKategori,
    #filterKonselingStatus {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 130px !important;
        width: 100% !important;
    }
    #rekapMapelStatsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Mode Mobile: Konseling Stats Sebaris Saja */
    #konselingStatsGrid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        margin-top: 14px !important;
        box-sizing: border-box !important;
    }
    #konselingStatsGrid .konseling-kpi-card {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 9px 4px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 12px !important;
        gap: 4px !important;
        box-sizing: border-box !important;
    }
    #konselingStatsGrid .kpi-icon-box {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        font-size: 0.92rem !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
    }
    #konselingStatsGrid .kpi-info-box {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    #konselingStatsGrid .kpi-stat-lbl {
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        display: block !important;
        letter-spacing: 0.01em !important;
        text-transform: uppercase !important;
    }
    #konselingStatsGrid .kpi-stat-val {
        font-size: 1.22rem !important;
        font-weight: 800 !important;
        margin-top: 2px !important;
        line-height: 1.15 !important;
    }

    /* Mode Mobile: Sarpras Stats Sebaris Saja (4 Kolom) */
    #sarprasStatsGrid,
    .sarpras-stats-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        width: 100% !important;
        margin-bottom: 16px !important;
        box-sizing: border-box !important;
    }
    #sarprasStatsGrid .sarpras-kpi-card,
    .sarpras-stats-grid .sarpras-kpi-card,
    .sarpras-stats-grid > div {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 8px 3px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 10px !important;
        gap: 3px !important;
        box-sizing: border-box !important;
    }
    #sarprasStatsGrid .sarpras-kpi-icon,
    .sarpras-stats-grid .sarpras-kpi-icon,
    .sarpras-stats-grid > div > div:first-child {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        font-size: 0.88rem !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #sarprasStatsGrid .sarpras-kpi-info,
    .sarpras-stats-grid .sarpras-kpi-info,
    .sarpras-stats-grid > div > div:last-child {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    #sarprasStatsGrid .sarpras-kpi-lbl,
    .sarpras-stats-grid .sarpras-kpi-lbl,
    .sarpras-stats-grid > div > div:last-child > div:first-child {
        font-size: 0.58rem !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        display: block !important;
        letter-spacing: 0.01em !important;
        text-transform: uppercase !important;
    }
    #sarprasStatsGrid .sarpras-kpi-val,
    .sarpras-stats-grid .sarpras-kpi-val,
    .sarpras-stats-grid [id^="valSarprasStat"] {
        font-size: 1.18rem !important;
        font-weight: 800 !important;
        margin-top: 2px !important;
        line-height: 1.15 !important;
    }

    /* 4. Modals Responsive */
    .modal-card-konseling {
        width: 95% !important;
        max-width: 95% !important;
        margin: 12px auto !important;
        max-height: 90vh !important;
        border-radius: 12px !important;
    }
    .modal-body-konseling {
        padding: 16px !important;
        gap: 12px !important;
    }
    .modal-footer-konseling {
        padding: 12px 16px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .modal-footer-konseling button {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .kpi-pill-badge {
        flex: 1 1 calc(50% - 6px) !important;
    }
    #konselingStatsGrid,
    #rekapMapelStatsGrid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    #filterKonselingKategori,
    #filterKonselingStatus {
        flex: 1 1 100% !important;
    }
}

/* ==========================================================================
   E-VOTING PEMILIHAN KETUA OSIS - STYLES (PURE MYSQL & PHP)
   ========================================================================== */
.osis-cand-grid,
.osis-booth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.osis-cand-card,
.osis-booth-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--card-bg, rgba(15, 23, 42, 0.75));
    border: 1px solid var(--card-border);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    height: 100%;
}

.osis-cand-card:hover,
.osis-booth-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

.osis-cand-number-badge,
.osis-booth-num {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.osis-cand-img-wrapper,
.osis-booth-img-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

.osis-cand-img,
.osis-booth-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.osis-cand-card:hover .osis-cand-img,
.osis-booth-card:hover .osis-booth-img {
    transform: scale(1.06);
}

.osis-cand-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, var(--card-bg, rgba(15, 23, 42, 0.95)) 100%);
    pointer-events: none;
    z-index: 2;
}

.osis-cand-body,
.osis-booth-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
    position: relative;
    z-index: 2;
}

.osis-cand-sub,
.osis-booth-sub {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.osis-cand-name,
.osis-booth-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.35;
    word-break: break-word;
}

.osis-cand-visi-preview {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    font-style: italic;
}

/* Custom Visi & Misi Button */
.osis-btn-vm-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    margin-top: auto;
    font-family: 'Outfit', sans-serif;
}

.osis-btn-vm-custom:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    transform: translateY(-2px);
}

.osis-btn-vm-arrow {
    font-size: 0.82rem;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.osis-btn-vm-custom:hover .osis-btn-vm-arrow {
    transform: translateX(4px);
}

.osis-booth-vm-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
}

.osis-booth-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.osis-booth-coblos-btn {
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
}

.osis-booth-coblos-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

.badge-status-osis {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
}
.badge-status-osis.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-status-osis.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-status-osis.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.osis-role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
}
.osis-role-badge.role-siswa, span.role-siswa { background: rgba(59, 130, 246, 0.15); color: #38bdf8; border: 1px solid rgba(59, 130, 246, 0.3); }
.osis-role-badge.role-guru, span.role-guru { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.osis-role-badge.role-kepala-sekolah, span.role-kepala-sekolah { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.osis-role-badge.role-staf, span.role-staf { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.osis-token-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid rgba(56, 189, 248, 0.3);
    transition: all 0.2s ease;
}
.osis-token-pill:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.osis-admin-tab-btn {
    padding: 9px 18px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.osis-admin-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}
.osis-admin-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.osis-dpt-filter-pill {
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.osis-dpt-filter-pill.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

[data-theme="light"] .osis-cand-card,
[data-theme="light"] .osis-booth-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .osis-cand-visi-preview {
    background: #f8fafc !important;
    color: #475569 !important;
}
[data-theme="light"] .osis-btn-vm-custom {
    background: rgba(79, 70, 229, 0.08) !important;
    border-color: rgba(79, 70, 229, 0.25) !important;
    color: #4f46e5 !important;
}
[data-theme="light"] .osis-btn-vm-custom:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    color: #ffffff !important;
}
[data-theme="light"] .osis-admin-tab-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .osis-dpt-filter-pill {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}
[data-theme="light"] .osis-dpt-filter-pill.active {
    background: #4f46e5;
    color: #ffffff;
}

/* ==========================================================================
   E-VOTING OSIS EMPTY & LOADING STATES (PASLON & BOOTH)
   ========================================================================== */
.osis-empty-state {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 52px 28px;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 15%, rgba(99, 102, 241, 0.09) 0%, rgba(15, 23, 42, 0.82) 75%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.osis-empty-state::before {
    content: '';
    position: absolute;
    top: -45px;
    width: 280px;
    height: 110px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.28), transparent 70%);
    pointer-events: none;
    filter: blur(20px);
    z-index: 0;
}

.osis-empty-icon-wrap {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(129, 140, 248, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 32px -4px rgba(99, 102, 241, 0.35);
    z-index: 1;
    animation: osisFloatSlow 4s ease-in-out infinite;
}

.osis-empty-icon-wrap i {
    font-size: 2.2rem;
    color: #a5b4fc;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
}

@keyframes osisFloatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.osis-empty-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: #c7d2fe;
    margin-bottom: 14px;
    z-index: 1;
}

.osis-empty-title {
    margin: 0 0 10px 0;
    font-size: 1.28rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
    z-index: 1;
}

.osis-empty-desc {
    margin: 0 auto 22px auto;
    max-width: 520px;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    z-index: 1;
}

.osis-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 1;
}

.osis-empty-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.osis-empty-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.osis-empty-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    text-decoration: none;
}

.osis-empty-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

/* Light Theme support */
[data-theme="light"] .osis-empty-state {
    background: radial-gradient(circle at 50% 15%, rgba(99, 102, 241, 0.06) 0%, rgba(255, 255, 255, 0.95) 75%);
    border: 1px solid rgba(99, 102, 241, 0.16);
    box-shadow: 0 16px 36px -12px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .osis-empty-title {
    color: #0f172a;
}

[data-theme="light"] .osis-empty-desc {
    color: #64748b;
}

[data-theme="light"] .osis-empty-pill {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.22);
    color: #4f46e5;
}

[data-theme="light"] .osis-empty-btn-secondary {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

[data-theme="light"] .osis-empty-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

@media (max-width: 768px) {
    .osis-empty-state {
        padding: 40px 18px !important;
        border-radius: 18px !important;
    }
    .osis-empty-icon-wrap {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 16px !important;
    }
    .osis-empty-icon-wrap i {
        font-size: 1.85rem !important;
    }
    .osis-empty-title {
        font-size: 1.15rem !important;
    }
    .osis-empty-desc {
        font-size: 0.85rem !important;
        margin-bottom: 18px !important;
    }
    .osis-empty-actions {
        width: 100% !important;
        flex-direction: column !important;
    }
    .osis-empty-btn-secondary,
    .osis-empty-btn-primary {
        width: 100% !important;
        justify-content: center !important;
    }
}


/* ==========================================================================
   E-VOTING OSIS HERO & GENERAL STYLES
   ========================================================================== */
.osis-hero-card {
    position: relative;
    border-radius: 24px;
    padding: 38px 28px;
    text-align: center;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 26px;
    border: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.7));
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.3);
}

.osis-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(24px);
}

.osis-hero-glow-1 {
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
}

.osis-hero-glow-2 {
    bottom: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
}

.osis-hero-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px 0;
    line-height: 1.35;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.osis-hero-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 18px auto;
}

.osis-schedule-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid var(--card-border);
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.osis-hero-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.osis-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    backdrop-filter: blur(8px);
}

.osis-tag-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* ==========================================================================
   E-VOTING OSIS VISI MISI MODAL POP-UP (DESKTOP & MOBILE)
   ========================================================================== */
body.osis-modal-open {
    overflow: hidden !important;
}

.osis-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 24, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.osis-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.osis-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    background: var(--card-bg, rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(18px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.osis-modal-overlay.active .osis-modal-dialog {
    transform: scale(1) translateY(0);
}

.osis-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.osis-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

.osis-modal-body {
    overflow-y: auto;
    padding: 26px 24px 20px 24px;
    max-height: calc(90vh - 90px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.osis-modal-body::-webkit-scrollbar {
    width: 6px;
}
.osis-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.osis-vm-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.osis-vm-avatar-wrap {
    position: relative;
    width: 115px;
    height: 115px;
    min-width: 115px;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #6366f1, #a855f7, #38bdf8);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    box-sizing: border-box;
}

.osis-vm-avatar {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.osis-vm-num-pill {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 10px;
    border: 2px solid var(--card-bg, #0f172a);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.osis-vm-header-info {
    flex: 1;
    min-width: 0;
}

.osis-vm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 6px;
}

.osis-vm-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
    line-height: 1.3;
    word-break: break-word;
}

.osis-vm-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.osis-vm-body-content {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.osis-vm-card {
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--card-border);
    transition: border-color 0.2s ease;
}

.osis-vm-visi-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.09), rgba(168, 85, 247, 0.05));
    border-left: 4px solid #6366f1;
}

.osis-vm-misi-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(6, 182, 212, 0.05));
    border-left: 4px solid #10b981;
}

.osis-vm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.osis-vm-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.osis-icon-visi {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.osis-icon-misi {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.osis-vm-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.osis-vm-card-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.osis-vm-visi-quote {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-main);
    font-style: italic;
    padding: 4px 6px;
}

.osis-misi-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.osis-misi-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-main);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.osis-misi-bullet {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
}

.osis-misi-text {
    flex: 1;
    word-break: break-word;
}

.osis-vm-empty-notice {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 12px;
    text-align: center;
}

.osis-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.12);
}

.osis-modal-btn-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: all 0.2s ease;
}

.osis-modal-btn-close:hover {
    background: rgba(148, 163, 184, 0.25);
    transform: translateY(-1px);
}

/* Light Mode Overrides for Modal & Hero */
[data-theme="light"] .osis-hero-card {
    background: linear-gradient(135deg, #ffffff, #f1f5f9) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .osis-tag-item {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .osis-modal-dialog {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .osis-modal-close-btn {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

[data-theme="light"] .osis-vm-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .osis-vm-visi-card {
    background: #f5f3ff !important;
}

[data-theme="light"] .osis-vm-misi-card {
    background: #f0fdf4 !important;
}

[data-theme="light"] .osis-misi-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

[data-theme="light"] .osis-modal-footer {
    background: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
}

[data-theme="light"] .osis-modal-btn-close {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

.osis-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
}

.osis-charts-grid > * {
    min-width: 0 !important;
    overflow: hidden !important;
}

.osis-charts-grid .glass-card {
    border: 1px solid var(--card-border);
    background: var(--card-bg, rgba(15, 23, 42, 0.6));
}

.osis-chart-canvas-wrap {
    width: 100% !important;
    height: 280px !important;
    max-height: 280px !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.osis-chart-canvas-wrap canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 280px !important;
    max-width: 100% !important;
}

.osis-cand-col,
.osis-booth-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.osis-admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.osis-admin-hasil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   OSIS ADMIN TABS STYLING (KANDIDAT, DPT, EXCEL, PENGATURAN)
   ========================================================================== */

/* --- 1. TAB PASLON KANDIDAT --- */
.osis-admin-cand-grid {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.osis-cand-form-card,
.osis-cand-table-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.65));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
}

.osis-card-header-styled {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.osis-card-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.osis-card-header-icon.indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.osis-card-header-icon.emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.osis-card-header-icon.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.osis-card-header-text h4 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-main, #f8fafc);
    letter-spacing: -0.2px;
}
.osis-card-header-text p {
    margin: 3px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

.osis-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.osis-form-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 6px;
}
.osis-form-label i {
    color: #818cf8;
    font-size: 0.8rem;
}
.osis-form-label .req {
    color: #ef4444;
}

.osis-cand-form-card .form-control,
.osis-settings-card .form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-main, #f8fafc);
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}
.osis-cand-form-card .form-control:focus,
.osis-settings-card .form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.85);
}

.btn-osis-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 11px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}
.btn-osis-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}
.btn-osis-primary:active {
    transform: translateY(0);
}

/* Candidate Table Elements */
.osis-cand-tb-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-weight: 800;
    font-size: 1.05rem;
}

.osis-cand-tb-img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}
.osis-cand-tb-img:hover {
    transform: scale(1.1);
}

.osis-cand-tb-name {
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    font-size: 0.92rem;
    margin-bottom: 2px;
}
.osis-cand-tb-sub {
    font-size: 0.76rem;
    color: var(--text-muted, #94a3b8);
}

.osis-cand-tb-visi {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
    color: var(--text-muted, #cbd5e1);
}

/* Action Icon Buttons */
.osis-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main, #f8fafc);
}
.btn-action-icon:hover {
    transform: translateY(-2px);
}
.btn-action-icon.edit {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
}
.btn-action-icon.edit:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}
.btn-action-icon.delete {
    background: rgba(244, 63, 94, 0.15);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.3);
}
.btn-action-icon.delete:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}
.btn-action-icon.print-card {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.3);
}
.btn-action-icon.print-card:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* --- 2. TAB DPT PEMILIH --- */
.osis-dpt-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.65));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
}

.osis-dpt-toolbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.osis-dpt-total-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
}
.osis-dpt-total-pill i {
    color: #818cf8;
}

.btn-osis-sync {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    padding: 8px 15px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}
.btn-osis-sync:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(16, 185, 129, 0.45);
}

.btn-osis-tokens {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    padding: 8px 15px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}
.btn-osis-tokens:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(99, 102, 241, 0.45);
}

.btn-osis-add {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main, #f8fafc) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    padding: 8px 15px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-osis-add:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.btn-osis-print-cards {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 11px;
    padding: 8px 18px;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}
.btn-osis-print-cards i {
    font-size: 0.95rem;
    color: #bae6fd;
    transition: transform 0.2s ease;
}
.btn-osis-print-cards:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    border-color: #38bdf8;
}
.btn-osis-print-cards:hover i {
    transform: scale(1.15);
    color: #ffffff;
}
.btn-osis-print-cards:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.osis-dpt-toolbar-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.osis-dpt-filter-pills-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.osis-dpt-filter-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted, #cbd5e1);
    border-radius: 9999px;
    padding: 6px 15px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.osis-dpt-filter-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}
.osis-dpt-filter-pill.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.4);
    font-weight: 700;
}

.osis-search-box {
    position: relative;
    flex: 1;
    max-width: 320px;
}
.osis-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    pointer-events: none;
}
.osis-search-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
    padding: 8px 14px 8px 36px !important;
    font-size: 0.85rem !important;
    color: var(--text-main, #f8fafc) !important;
    font-family: 'Outfit', sans-serif !important;
    transition: all 0.2s ease !important;
}
.osis-search-input:focus {
    outline: none !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    background: rgba(15, 23, 42, 0.85) !important;
}

/* Sticky Header on DPT Table */
.data-table thead.osis-sticky-thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #0f172a !important;
    color: #cbd5e1;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Role Badges */
.osis-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.osis-role-badge.role-siswa {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.osis-role-badge.role-guru {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.osis-role-badge.role-kepala-sekolah {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.osis-role-badge.role-staf {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Token Pill */
.osis-token-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px dashed rgba(99, 102, 241, 0.45);
    color: #a5b4fc;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.osis-token-pill:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #ffffff;
    border-color: #818cf8;
    transform: translateY(-1px);
}

/* --- 3. TAB UPLOAD EXCEL --- */
.osis-excel-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.65));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    border-radius: 22px;
    padding: 32px 28px;
    max-width: 680px;
    margin: 0 auto 24px auto;
    text-align: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
}

.osis-excel-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 18px auto;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.osis-excel-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main, #f8fafc);
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.osis-excel-sub {
    font-size: 0.86rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.osis-excel-template-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 22px;
    text-align: left;
}

.osis-excel-tb-text {
    display: flex;
    align-items: center;
    gap: 10px;
}
.osis-excel-tb-text i {
    font-size: 1.3rem;
    color: #34d399;
}
.osis-excel-tb-text div strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-main, #f8fafc);
}
.osis-excel-tb-text div span {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
}

.btn-osis-download-tpl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-osis-download-tpl:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.osis-excel-dropzone {
    border: 2px dashed rgba(99, 102, 241, 0.35);
    border-radius: 18px;
    padding: 28px 20px;
    background: rgba(15, 23, 42, 0.4);
    transition: all 0.25s ease;
    margin-bottom: 22px;
    position: relative;
}
.osis-excel-dropzone:hover,
.osis-excel-dropzone.dragover {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.08);
}

.osis-excel-cloud-icon {
    font-size: 2.2rem;
    color: #818cf8;
    margin-bottom: 10px;
}

.osis-excel-dz-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    margin-bottom: 4px;
}

.osis-excel-dz-sub {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 14px;
}

.osis-btn-choose-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main, #f8fafc);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.osis-btn-choose-file:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.osis-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 12px;
}

.btn-osis-upload-exec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 320px;
}
.btn-osis-upload-exec:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

/* Excel Column Guide Card */
.osis-excel-guide-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.65));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 22px;
    max-width: 680px;
    margin: 0 auto;
    box-sizing: border-box;
}

.osis-excel-guide-card h5 {
    margin: 0 0 14px 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    display: flex;
    align-items: center;
    gap: 8px;
}
.osis-excel-guide-card h5 i {
    color: #818cf8;
}

.osis-excel-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.osis-excel-guide-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.osis-guide-col-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.76rem;
    padding: 2px 8px;
    margin-bottom: 4px;
}

.osis-guide-col-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    margin-bottom: 2px;
}

.osis-guide-col-desc {
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
}

/* --- 4. TAB PENGATURAN UMUM --- */
.osis-settings-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-sizing: border-box;
}

.osis-settings-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.osis-settings-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.65));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.osis-datetime-input {
    color-scheme: dark;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-main, #f8fafc);
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}
.osis-datetime-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

.btn-osis-save-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}
.btn-osis-save-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

/* Danger Zone Card */
.osis-danger-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
}

.osis-danger-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.osis-danger-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.osis-danger-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f87171;
    letter-spacing: -0.2px;
}

.osis-danger-sub {
    font-size: 0.85rem;
    color: var(--text-muted, #cbd5e1);
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.btn-osis-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 11px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    transition: all 0.2s ease;
}
.btn-osis-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-osis-danger-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    transition: all 0.2s ease;
}
.btn-osis-danger-sm:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
[data-theme="light"] .btn-osis-danger-sm,
body.light-mode .btn-osis-danger-sm {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}
[data-theme="light"] .btn-osis-danger-sm:hover,
body.light-mode .btn-osis-danger-sm:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.osis-token-card-wrapper {
    max-width: 480px;
    margin: 40px auto;
    width: 100%;
    box-sizing: border-box;
}

.osis-table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.osis-admin-tab-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    box-sizing: border-box;
}

/* OSIS PANEL HEADER - DESKTOP: Judul kiri, tombol navigasi di kanan atas */
#panel-evoting-osis .panel-header.osis-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 18px 0;
    margin-bottom: 24px;
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--card-border);
}

.osis-header-left {
    flex: 1;
    min-width: 0;
}

.osis-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.osis-panel-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.osis-top-action-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.osis-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.osis-header-btn i {
    font-size: 0.9rem;
}

/* Beranda button */
.osis-btn-home {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    border-color: rgba(148, 163, 184, 0.2);
}
.osis-btn-home:hover {
    background: rgba(148, 163, 184, 0.22);
    color: var(--text-main);
}

/* Bilik Suara button */
.osis-btn-bilik {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.35);
}
.osis-btn-bilik:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(79, 70, 229, 0.5);
}
.osis-btn-bilik.disabled,
.osis-btn-bilik:disabled {
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none;
}

/* Admin Panel button */
.osis-btn-admin {
    background: rgba(79, 70, 229, 0.12);
    color: #818cf8;
    border-color: rgba(79, 70, 229, 0.3);
}
.osis-btn-admin:hover {
    background: rgba(79, 70, 229, 0.25);
    color: #a5b4fc;
}

/* Light mode overrides */
[data-theme="light"] #panel-evoting-osis .panel-header.osis-panel-header {
    background: transparent;
    border-bottom-color: #e2e8f0;
}
[data-theme="light"] .osis-btn-home {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}
[data-theme="light"] .osis-btn-home:hover {
    background: #e2e8f0;
    color: #0f172a;
}
[data-theme="light"] .osis-btn-admin {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.2);
}
[data-theme="light"] .osis-btn-admin:hover {
    background: rgba(79, 70, 229, 0.15);
}

/* --- LIGHT MODE OVERRIDES FOR OSIS ADMIN TABS --- */
[data-theme="light"] .osis-cand-form-card,
[data-theme="light"] .osis-cand-table-card,
[data-theme="light"] .osis-dpt-card,
[data-theme="light"] .osis-excel-card,
[data-theme="light"] .osis-excel-guide-card,
[data-theme="light"] .osis-settings-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .osis-card-header-styled,
[data-theme="light"] .osis-dpt-toolbar-top {
    border-bottom-color: #f1f5f9;
}

[data-theme="light"] .osis-cand-form-card .form-control,
[data-theme="light"] .osis-settings-card .form-control,
[data-theme="light"] .osis-datetime-input {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    color-scheme: light;
}
[data-theme="light"] .osis-cand-form-card .form-control:focus,
[data-theme="light"] .osis-settings-card .form-control:focus,
[data-theme="light"] .osis-datetime-input:focus {
    background: #ffffff;
    border-color: #6366f1;
}

[data-theme="light"] .osis-cand-tb-num {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.25);
}
[data-theme="light"] .osis-cand-tb-img {
    border-color: #e2e8f0;
}
[data-theme="light"] .btn-action-icon {
    background: #f1f5f9;
    color: #475569;
}
[data-theme="light"] .btn-action-icon.edit {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.2);
}
[data-theme="light"] .btn-action-icon.edit:hover {
    background: #4f46e5;
    color: #ffffff;
}
[data-theme="light"] .btn-action-icon.delete {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
    border-color: rgba(244, 63, 94, 0.2);
}
[data-theme="light"] .btn-action-icon.delete:hover {
    background: #e11d48;
    color: #ffffff;
}

[data-theme="light"] .osis-dpt-total-pill {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.25);
    color: #4338ca;
}
[data-theme="light"] .btn-osis-add {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155 !important;
}
[data-theme="light"] .btn-osis-add:hover {
    background: #f1f5f9;
}
[data-theme="light"] .btn-action-icon.print-card {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.25);
}
[data-theme="light"] .btn-action-icon.print-card:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}
[data-theme="light"] .btn-osis-print-cards {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.3);
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.28);
}
[data-theme="light"] .btn-osis-print-cards:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}
[data-theme="light"] .osis-dpt-filter-pill {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}
[data-theme="light"] .osis-dpt-filter-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}
[data-theme="light"] .osis-dpt-filter-pill.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border-color: transparent;
}
[data-theme="light"] .osis-search-input {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
[data-theme="light"] .osis-search-input:focus {
    background: #ffffff !important;
}
[data-theme="light"] .data-table thead.osis-sticky-thead th {
    background: #f8fafc !important;
    color: #334155;
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .osis-role-badge.role-siswa {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.25);
}
[data-theme="light"] .osis-role-badge.role-guru {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
}
[data-theme="light"] .osis-role-badge.role-kepala-sekolah {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.25);
}
[data-theme="light"] .osis-role-badge.role-staf {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
    border-color: rgba(168, 85, 247, 0.25);
}

[data-theme="light"] .osis-token-pill {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    color: #4338ca;
}
[data-theme="light"] .osis-token-pill:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #312e81;
}

[data-theme="light"] .osis-excel-template-banner {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
}
[data-theme="light"] .osis-excel-dropzone {
    background: #f8fafc;
    border-color: #cbd5e1;
}
[data-theme="light"] .osis-excel-dropzone:hover,
[data-theme="light"] .osis-excel-dropzone.dragover {
    background: rgba(99, 102, 241, 0.04);
    border-color: #6366f1;
}
[data-theme="light"] .osis-btn-choose-file {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
[data-theme="light"] .osis-btn-choose-file:hover {
    background: #e2e8f0;
}
[data-theme="light"] .osis-excel-guide-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}
[data-theme="light"] .osis-guide-col-badge {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

[data-theme="light"] .osis-danger-card {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.25);
}
[data-theme="light"] .osis-danger-title {
    color: #dc2626;
}
[data-theme="light"] .osis-danger-sub {
    color: #64748b;
}

/* ==========================================================================
   KARTU PEMILIH E-VOTING OSIS (PDF & PRINT STYLES - COMPACT & PRECISE A4)
   ========================================================================== */
.osis-voter-card-sheet {
    width: 210mm;
    min-height: 297mm;
    max-height: 297mm;
    max-width: 210mm;
    padding: 8mm 11mm;
    margin: 0;
    background: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: flex-start;
    overflow: hidden;
}

.osis-voter-card-sheet:not(:last-child) {
    page-break-after: always;
    break-after: page;
}

.osis-voter-card-sheet.layout-6 .osis-card-cut-guide {
    width: 88mm;
    height: 76mm;
    margin-bottom: 5mm;
}

.osis-voter-card-sheet.layout-4 .osis-card-cut-guide {
    width: 88mm;
    height: 118mm;
    margin-bottom: 6mm;
}

.osis-voter-card-sheet.layout-1 .osis-card-cut-guide {
    width: 135mm;
    height: 120mm;
    margin: 15mm auto;
}

.osis-card-cut-guide {
    position: relative;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    padding: 2px;
    box-sizing: border-box;
    page-break-inside: avoid;
    break-inside: avoid;
    background: #ffffff;
}

.osis-cut-icon {
    position: absolute;
    font-size: 8px;
    color: #94a3b8;
    line-height: 1;
    z-index: 2;
    user-select: none;
}
.osis-cut-icon.top-left { top: -4px; left: 6px; }
.osis-cut-icon.top-right { top: -4px; right: 6px; }
.osis-cut-icon.bottom-left { bottom: -4px; left: 6px; }
.osis-cut-icon.bottom-right { bottom: -4px; right: 6px; }

.osis-voter-card {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    padding: 4px 7px 3px 7px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
    overflow: hidden;
}

.osis-card-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a 0%, #0284c7 50%, #38bdf8 100%);
    border-radius: 6px 6px 0 0;
}

.osis-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding-top: 1px;
    padding-bottom: 2px;
    border-bottom: 1px solid #0f172a;
    margin-bottom: 2px;
}

.osis-card-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.osis-card-logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #1e40af, #0284c7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.osis-card-titles {
    min-width: 0;
}
.osis-card-titles h5 {
    margin: 0;
    font-size: 4.8pt;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1;
}
.osis-card-titles h4 {
    margin: 0.5px 0;
    font-size: 7.2pt;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.1px;
    line-height: 1.1;
    text-transform: uppercase;
}
.osis-card-titles p {
    margin: 0;
    font-size: 5pt;
    color: #64748b;
    font-weight: 600;
    line-height: 1;
}

.osis-card-badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    flex-shrink: 0;
}

.osis-card-role-tag {
    font-size: 5.6pt;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
    display: inline-block;
}
.osis-card-role-tag.siswa { background: #e0f2fe; color: #0284c7; border: 1px solid #7dd3fc; }
.osis-card-role-tag.guru { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.osis-card-role-tag.kepala-sekolah { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }
.osis-card-role-tag.staf { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }

.osis-card-right-status {
    font-size: 5pt;
    font-weight: 800;
    color: #059669;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.osis-card-body {
    display: flex;
    gap: 5px;
    align-items: stretch;
    margin-bottom: 2px;
    flex: 1;
}

.osis-card-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.osis-card-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 6.5pt;
    line-height: 1.2;
}

.osis-card-info-table td {
    padding: 0.5px 0;
    vertical-align: middle;
}

.osis-card-info-table .lbl {
    width: 46px;
    color: #64748b;
    font-weight: 600;
    font-size: 6pt;
}

.osis-card-info-table .sep {
    width: 4px;
    color: #64748b;
    font-weight: bold;
}

.osis-card-info-table .val {
    color: #0f172a;
    font-weight: 700;
    word-break: break-word;
}

.osis-card-info-table .val-name {
    font-size: 7.2pt;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    max-width: 105px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.osis-card-info-table .val-id {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-weight: 800;
    color: #1e40af;
    font-size: 6.5pt;
}

.osis-card-qr-box {
    width: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #bae6fd;
    border-radius: 5px;
    padding: 2px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.osis-card-qr-canvas {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 1px;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
}
.osis-card-qr-canvas canvas {
    width: 42px !important;
    height: 42px !important;
    display: block !important;
    margin: 0 auto !important;
}

.osis-card-token-banner {
    width: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    border-radius: 3px;
    padding: 1.5px 2px;
    margin-top: 2px;
    text-align: center;
    box-sizing: border-box;
}

.osis-card-token-lbl {
    font-size: 4.2pt;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
}

.osis-card-token-val {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 7.4pt;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #38bdf8;
    line-height: 1.1;
    margin-top: 0.5px;
}

.osis-card-instructions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 2px solid #0284c7;
    border-radius: 3px;
    padding: 1.5px 4px;
    font-size: 5pt;
    color: #475569;
    line-height: 1.18;
    margin-bottom: 2px;
}

.osis-card-instructions ol {
    margin: 0;
    padding-left: 10px;
}

.osis-card-instructions li {
    margin: 0;
}

.osis-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 4.8pt;
    color: #64748b;
    border-top: 1px dashed #cbd5e1;
    padding-top: 1.5px;
}

.osis-card-footer-left {
    line-height: 1.1;
}

.osis-card-footer-left strong {
    color: #0f172a;
}

.osis-card-footer-stamp {
    text-align: center;
    border: 1px solid #0284c7;
    border-radius: 3px;
    padding: 0.5px 3px;
    font-size: 4.8pt;
    color: #0284c7;
    font-weight: 800;
    background: #f0f9ff;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

@media print {
    body.printing-osis-cards * {
        visibility: hidden !important;
    }
    body.printing-osis-cards #osisVoterCardsPdfContainer,
    body.printing-osis-cards #osisVoterCardsPdfContainer * {
        visibility: visible !important;
    }
    body.printing-osis-cards #osisVoterCardsPdfContainer {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: block !important;
        background: white !important;
    }
}

@media (max-width: 768px) {
    #panel-evoting-osis {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #panel-evoting-osis .panel-header.osis-panel-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
        padding: 0 0 14px 0 !important;
        position: static !important;
        background: transparent !important;
    }

    .osis-header-left {
        min-width: 0 !important;
    }

    .osis-panel-title {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .osis-panel-subtitle {
        font-size: 0.8rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* MOBILE: ACTION BAR - HORIZONTAL, COMPACT */
    .osis-top-action-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .osis-header-btn {
        flex: 1 1 auto !important;
        padding: 9px 12px !important;
        font-size: 0.82rem !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .osis-btn-bilik {
        flex: 1 1 100% !important;
        order: -1 !important;
    }

    .osis-hero-card {
        padding: 20px 14px !important;
        margin-bottom: 18px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .osis-hero-title {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
        word-break: break-word !important;
    }

    .osis-hero-desc {
        font-size: 0.82rem !important;
        margin-bottom: 14px !important;
        line-height: 1.5 !important;
        word-break: break-word !important;
    }

    .osis-schedule-pill {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.78rem !important;
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
    }

    .osis-hero-tags {
        gap: 6px !important;
        margin-top: 10px !important;
    }

    .osis-tag-item {
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
    }

    .osis-modal-dialog {
        max-height: 94vh !important;
        border-radius: 20px !important;
        margin: 10px auto !important;
    }

    .osis-modal-body {
        padding: 20px 16px !important;
        max-height: calc(94vh - 80px) !important;
    }

    .osis-vm-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
        padding-bottom: 16px !important;
    }

    .osis-vm-avatar-wrap {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        margin: 0 auto !important;
    }

    .osis-vm-title {
        font-size: 1.18rem !important;
    }

    .osis-cand-grid,
    .osis-booth-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 14px !important;
    }

    .osis-cand-col,
    .osis-booth-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .osis-cand-card,
    .osis-booth-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
    }

    .osis-cand-img-wrapper,
    .osis-booth-img-wrapper {
        width: 100% !important;
        height: 220px !important;
        overflow: hidden !important;
    }

    .osis-cand-body,
    .osis-booth-body {
        padding: 16px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .osis-cand-name,
    .osis-booth-name {
        font-size: 1.12rem !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .osis-booth-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: auto !important;
    }

    .osis-booth-coblos-btn {
        width: 100% !important;
        padding: 13px 16px !important;
        font-size: 0.96rem !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
    }

    .osis-charts-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-top: 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .osis-charts-grid .glass-card {
        padding: 16px 12px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .osis-chart-canvas-wrap {
        width: 100% !important;
        height: 250px !important;
        position: relative !important;
    }

    .osis-token-card-wrapper {
        max-width: 100% !important;
        margin: 16px auto !important;
        padding: 0 !important;
    }

    .osis-token-card-wrapper .glass-card {
        padding: 24px 16px !important;
        border-radius: 18px !important;
    }

    #osisVoterTokenInput {
        font-size: 1.3rem !important;
        letter-spacing: 2px !important;
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .osis-booth-welcome-card {
        padding: 14px !important;
        border-radius: 14px !important;
        margin-bottom: 18px !important;
    }

    .osis-booth-welcome-card h3 {
        font-size: 1.15rem !important;
        word-break: break-word !important;
    }

    .osis-admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 18px !important;
        width: 100% !important;
    }

    .osis-admin-kpi-grid .glass-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
    }

    .osis-admin-kpi-grid .glass-card div[id^="osisAdm"] {
        font-size: 1.35rem !important;
    }

    .osis-admin-hasil-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 18px !important;
        width: 100% !important;
    }

    .osis-admin-cand-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .osis-dpt-toolbar-top,
    .osis-dpt-toolbar-filter {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .osis-dpt-toolbar-top > div,
    .osis-dpt-toolbar-filter > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .osis-dpt-toolbar-top button,
    .osis-dpt-toolbar-filter button {
        flex: 1 1 auto !important;
    }

    .osis-dpt-filter-pill {
        padding: 5px 10px !important;
        font-size: 0.76rem !important;
        flex: 1 1 auto !important;
        text-align: center !important;
    }

    #osisSearchDptInput {
        width: 100% !important;
        max-width: 100% !important;
    }

    .osis-schedule-inputs-grid,
    .osis-settings-top-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .osis-excel-template-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .osis-excel-tb-text {
        flex-direction: column !important;
        text-align: center !important;
    }

    .btn-osis-download-tpl {
        width: 100% !important;
        justify-content: center !important;
    }

    .btn-osis-upload-exec {
        max-width: 100% !important;
    }

    .osis-excel-guide-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ========================================================= */
/* SWEETALERT2 â€” DARK GLASSMORPHISM THEME OVERRIDE           */
/* Menyesuaikan popup SweetAlert2 dengan tema aplikasi       */
/* ========================================================= */

/* === Backdrop / Overlay === */
.swal2-container {
    z-index: 9999999 !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.75) !important;
}

/* === Popup Container === */
.swal2-popup {
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(79, 70, 229, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 2rem 2.25rem !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    max-width: 520px !important;
}

/* === Title === */
.swal2-title {
    color: #f8fafc !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
    padding: 0 0 0.5rem 0 !important;
}

/* === Body / HTML Content === */
.swal2-html-container,
.swal2-content {
    color: #cbd5e1 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* === Label di dalam form SweetAlert === */
.swal2-html-container label,
.swal2-html-container .form-label {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: none !important;
    display: block !important;
    margin-bottom: 6px !important;
}

.swal2-html-container strong {
    color: #f8fafc !important;
    font-weight: 700 !important;
    display: inline !important;
}

/* === Input, Select, Textarea di dalam Swal === */
.swal2-input,
.swal2-select,
.swal2-textarea,
.swal2-html-container input,
.swal2-html-container select,
.swal2-html-container textarea {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.92rem !important;
    padding: 10px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 0 10px 0 !important;
}

.swal2-input:focus,
.swal2-select:focus,
.swal2-textarea:focus,
.swal2-html-container input:focus,
.swal2-html-container select:focus,
.swal2-html-container textarea:focus {
    border-color: rgba(79, 70, 229, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
    background: rgba(79, 70, 229, 0.08) !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder,
.swal2-html-container input::placeholder,
.swal2-html-container textarea::placeholder {
    color: #64748b !important;
}

/* === Select Dropdown Options (browser native) === */
.swal2-html-container select option,
.swal2-select option {
    background: #1e293b !important;
    color: #f8fafc !important;
}

/* === Textarea spesifik === */
.swal2-html-container textarea {
    resize: vertical !important;
    min-height: 90px !important;
    line-height: 1.5 !important;
}

/* === Icon / Animasi === */
.swal2-icon {
    border-color: rgba(255, 255, 255, 0.15) !important;
    margin-bottom: 1rem !important;
}

.swal2-icon.swal2-success {
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #10b981 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}
.swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #10b981 !important;
}

.swal2-icon.swal2-error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #ef4444 !important;
}
.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    background-color: #ef4444 !important;
}

.swal2-icon.swal2-warning {
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #f59e0b !important;
}
.swal2-icon.swal2-info {
    border-color: rgba(79, 70, 229, 0.5) !important;
    color: #818cf8 !important;
}
.swal2-icon.swal2-question {
    border-color: rgba(148, 163, 184, 0.4) !important;
    color: #94a3b8 !important;
}

/* === Tombol Aksi === */
.swal2-actions {
    gap: 10px !important;
    margin-top: 1.25rem !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.2px !important;
}
.swal2-confirm:hover {
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.55) !important;
    transform: translateY(-1px) !important;
}
.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4) !important;
}

.swal2-deny {
    background: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    border-radius: 10px !important;
    color: #fca5a5 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    transition: all 0.2s ease !important;
}
.swal2-deny:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #94a3b8 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    padding: 10px 22px !important;
    transition: all 0.2s ease !important;
}
.swal2-cancel:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* === Loader / Spinner === */
.swal2-loader {
    border-color: #4f46e5 transparent #4f46e5 transparent !important;
}

/* === Progress Steps === */
.swal2-progress-steps .swal2-progress-step {
    background: #4f46e5 !important;
}
.swal2-progress-steps .swal2-progress-step-line {
    background: rgba(79, 70, 229, 0.4) !important;
}

/* === Close Button === */
.swal2-close {
    color: #64748b !important;
    font-size: 1.4rem !important;
    transition: color 0.2s ease !important;
    top: 14px !important;
    right: 16px !important;
}
.swal2-close:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-radius: 8px !important;
}

/* === Toast-style Swal (position: top-end) === */
.swal2-toast {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    color: #f8fafc !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 10px 16px !important;
}
.swal2-toast .swal2-title {
    color: #f8fafc !important;
    font-size: 0.9rem !important;
}
.swal2-toast.swal2-icon-success {
    border-left: 3px solid #10b981 !important;
}
.swal2-toast.swal2-icon-error {
    border-left: 3px solid #ef4444 !important;
}
.swal2-toast.swal2-icon-warning {
    border-left: 3px solid #f59e0b !important;
}
.swal2-toast .swal2-timer-progress-bar {
    background: rgba(79, 70, 229, 0.6) !important;
}

/* === Timer Progress Bar === */
.swal2-timer-progress-bar {
    background: rgba(79, 70, 229, 0.5) !important;
    height: 3px !important;
}
.swal2-timer-progress-bar-container {
    border-radius: 0 0 20px 20px !important;
    overflow: hidden !important;
}

/* === Light Mode Override === */
[data-theme="light"] .swal2-popup,
body.light-mode .swal2-popup {
    background: rgba(248, 250, 252, 0.97) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(79, 70, 229, 0.15) !important;
    color: #0f172a !important;
}
[data-theme="light"] .swal2-title,
body.light-mode .swal2-title {
    color: #0f172a !important;
}
[data-theme="light"] .swal2-html-container,
body.light-mode .swal2-html-container {
    color: #475569 !important;
}
[data-theme="light"] .swal2-html-container label,
[data-theme="light"] .swal2-html-container strong,
body.light-mode .swal2-html-container label,
body.light-mode .swal2-html-container strong {
    color: #1e293b !important;
}
[data-theme="light"] .swal2-html-container input,
[data-theme="light"] .swal2-html-container select,
[data-theme="light"] .swal2-html-container textarea,
[data-theme="light"] .swal2-input,
[data-theme="light"] .swal2-select,
[data-theme="light"] .swal2-textarea,
body.light-mode .swal2-html-container input,
body.light-mode .swal2-html-container select,
body.light-mode .swal2-html-container textarea,
body.light-mode .swal2-input,
body.light-mode .swal2-select,
body.light-mode .swal2-textarea {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
[data-theme="light"] .swal2-html-container select option,
body.light-mode .swal2-html-container select option {
    background: #ffffff !important;
    color: #0f172a !important;
}
[data-theme="light"] .swal2-cancel,
body.light-mode .swal2-cancel {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #64748b !important;
}
[data-theme="light"] .swal2-cancel:hover,
body.light-mode .swal2-cancel:hover {
    background: rgba(0,0,0,0.1) !important;
    color: #1e293b !important;
}
[data-theme="light"] .swal2-backdrop-show,
body.light-mode .swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.55) !important;
}

/* Responsive Scrollable Modal Pengguna & Sticky Footer */
.modal-user-card {
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.4) rgba(15, 23, 42, 0.5);
}

.modal-user-card::-webkit-scrollbar {
    width: 6px;
}

.modal-user-card::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
}

.modal-user-card::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 8px;
}

.modal-user-card::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.7);
}

[data-theme="light"] .modal-user-card,
body.light-mode .modal-user-card {
    background: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] .modal-user-card > div:first-child,
body.light-mode .modal-user-card > div:first-child,
[data-theme="light"] .modal-user-footer,
body.light-mode .modal-user-footer {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: #e2e8f0 !important;
}

/* ========================================================================== */
/* MODUL MATERI & KISI-KISI PEMBELAJARAN                                      */
/* ========================================================================== */
.materi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.materi-card {
    position: relative;
    border-radius: 18px;
    padding: 22px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.materi-card.has-kebab-open {
    z-index: 40;
}

.materi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(99, 102, 241, 0.4);
}

.materi-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.materi-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.materi-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.35;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.materi-card-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.materi-card-meta {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.materi-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-weight: 500;
}

.materi-meta-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 0.75rem;
}

.materi-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-materi-preview {
    flex: 1;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.btn-materi-preview:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-materi-download, .btn-materi-delete {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #38bdf8;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-materi-download:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.btn-materi-delete {
    color: #ef4444;
}

.btn-materi-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* Titik 3 (Kebab Menu) pada Card Materi & Kisi-Kisi */
.materi-kebab-container {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-materi-kebab {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-materi-kebab:hover,
.btn-materi-kebab:focus,
.btn-materi-kebab.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.materi-kebab-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 145px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.materi-kebab-dropdown.active {
    display: flex;
    animation: materiDropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes materiDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.materi-kebab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.materi-kebab-item i {
    font-size: 0.88rem;
    width: 16px;
    text-align: center;
}

.materi-kebab-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
}

.materi-kebab-item.danger {
    color: #f87171;
}

.materi-kebab-item.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Kotak Card Mata Pelajaran (Subject Grouping Cards) */
.materi-subject-card {
    border-radius: 20px;
    padding: 22px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.materi-subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}

.materi-subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--subject-accent, linear-gradient(90deg, #6366f1, #38bdf8));
    opacity: 0.95;
}

.materi-subject-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.materi-subject-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.materi-subject-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    margin: 0 0 3px 0;
}

.materi-subject-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.materi-subject-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.materi-subject-pill {
    font-size: 0.73rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.materi-subject-info-box {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.materi-subject-teacher-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-weight: 500;
}

.materi-subject-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 6px;
    margin-top: 2px;
}

[data-theme="light"] .materi-subject-teacher-row,
body.light-mode .materi-subject-teacher-row {
    color: #1e293b !important;
}

[data-theme="light"] .materi-subject-meta-row,
body.light-mode .materi-subject-meta-row {
    color: #64748b !important;
    border-top: 1px solid #e2e8f0 !important;
}

.materi-subject-action-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.materi-subject-card:hover .materi-subject-action-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Light Mode Overrides for Materi Subject Cards */
[data-theme="light"] .materi-subject-card,
body.light-mode .materi-subject-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .materi-subject-card:hover,
body.light-mode .materi-subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.15) !important;
    border-color: #818cf8 !important;
}

[data-theme="light"] .materi-subject-title,
body.light-mode .materi-subject-title {
    color: #0f172a !important;
}

[data-theme="light"] .materi-subject-count-badge,
body.light-mode .materi-subject-count-badge {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border: 1px solid #c7d2fe !important;
}

[data-theme="light"] .materi-subject-info-box,
body.light-mode .materi-subject-info-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

[data-theme="light"] .materi-subject-info-box div:first-child,
body.light-mode .materi-subject-info-box div:first-child {
    color: #1e293b !important;
}

[data-theme="light"] .materi-subject-info-box div:last-child,
body.light-mode .materi-subject-info-box div:last-child {
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

[data-theme="light"] .materi-subject-action-btn,
body.light-mode .materi-subject-action-btn {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: #4338ca !important;
    font-weight: 700 !important;
}

[data-theme="light"] .materi-subject-card:hover .materi-subject-action-btn,
body.light-mode .materi-subject-card:hover .materi-subject-action-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

[data-theme="light"] .materi-drilldown-header,
body.light-mode .materi-drilldown-header {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .btn-materi-back,
body.light-mode .btn-materi-back {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .btn-materi-back:hover,
body.light-mode .btn-materi-back:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Drill-down Header Bar */
.materi-drilldown-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-materi-back {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-materi-back:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    transform: translateX(-3px);
}

/* View Mode Switcher */
.materi-toggle-view-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.materi-toggle-view-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* Category Pills Filter */
.materi-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
    background: rgba(15, 23, 42, 0.65);
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.materi-cat-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.materi-cat-pill {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    user-select: none;
}

.materi-cat-pill:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.materi-cat-pill.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Custom Filter Select & Search Controls */
.materi-filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.materi-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.materi-select-custom {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(30, 41, 59, 0.85);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0 36px 0 14px;
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    height: 40px;
    min-width: 195px;
    box-sizing: border-box;
}

.materi-select-custom:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(99, 102, 241, 0.45);
}

.materi-select-custom:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: #0f172a;
}

.materi-select-custom option {
    background: #0f172a;
    color: #f8fafc;
    padding: 10px;
}

.materi-select-icon {
    position: absolute;
    right: 13px;
    pointer-events: none;
    color: #818cf8;
    font-size: 0.76rem;
}

.materi-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 250px;
}

.materi-search-input {
    width: 100%;
    height: 40px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0 14px 0 38px;
    color: #f1f5f9;
    font-size: 0.86rem;
    font-weight: 400;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.materi-search-input::placeholder {
    color: #64748b;
}

.materi-search-input:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(99, 102, 241, 0.45);
}

.materi-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: #0f172a;
}

.materi-search-icon {
    position: absolute;
    left: 13px;
    pointer-events: none;
    color: #818cf8;
    font-size: 0.85rem;
}

.btn-materi-refresh {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-materi-refresh:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
    transform: translateY(-1px);
}

/* Modal In-App Preview */
#modalPreviewMateri.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#modalPreviewMateri.modal.active {
    display: flex !important;
}

.modal-preview-dialog {
    width: 90vw;
    max-width: 1100px;
    height: 85vh;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#modalPreviewMateri.modal-fullscreen .modal-preview-dialog {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border: none !important;
}

.modal-preview-header {
    padding: 14px 20px;
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-preview-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #1e293b;
}

/* Modal Upload Materi Form */
#modalUploadMateri.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#modalUploadMateri.modal.active {
    display: flex !important;
}

.modal-upload-dialog {
    width: 92vw;
    max-width: 620px;
    max-height: 90vh;
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.12);
}

.modal-upload-body {
    padding: 16px 20px;
    overflow-y: auto;
}

/* Custom Scrollbar untuk Modal & Grid */
.modal-upload-body::-webkit-scrollbar,
.kelas-checkboxes-grid::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.modal-upload-body::-webkit-scrollbar-track,
.kelas-checkboxes-grid::-webkit-scrollbar-track {
    background: transparent;
}

.modal-upload-body::-webkit-scrollbar-thumb,
.kelas-checkboxes-grid::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

.modal-upload-body::-webkit-scrollbar-thumb:hover,
.kelas-checkboxes-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Form Inputs Styling */
.materi-input {
    width: 100%;
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 9px 13px !important;
    color: #f8fafc !important;
    font-size: 0.88rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.materi-input:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    background: rgba(30, 41, 59, 0.9) !important;
}

.materi-input:focus {
    border-color: #6366f1 !important;
    background: #0f172a !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

.materi-input option {
    background: #0f172a !important;
    color: #f8fafc !important;
}

/* Preset Buttons */
.materi-preset-btn {
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.18s ease;
}

.materi-preset-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.45);
    color: #c7d2fe;
    transform: translateY(-1px);
}

/* Checkboxes Grid & Cards */
.kelas-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 7px;
    max-height: 120px;
    overflow-y: auto;
    padding: 9px;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.kelas-checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.15s ease;
    user-select: none;
}

.kelas-checkbox-label:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.kelas-checkbox-label input[type="checkbox"] {
    accent-color: #6366f1;
    cursor: pointer;
    width: 15px;
    height: 15px;
}

.kelas-checkbox-label:has(input:checked) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(56, 189, 248, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.55);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Dropzone */
.materi-dropzone {
    border: 2px dashed rgba(99, 102, 241, 0.38);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(56, 189, 248, 0.02) 100%);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.materi-dropzone:hover, .materi-dropzone.drag-over {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.materi-dropzone-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.materi-dropzone:hover .materi-dropzone-icon {
    transform: scale(1.08);
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

/* Modal Footer & Buttons */
.modal-upload-footer {
    padding: 13px 20px;
    background: rgba(15, 23, 42, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-materi-cancel {
    padding: 9px 18px;
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-materi-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #f8fafc;
}

.btn-materi-submit {
    padding: 9px 24px;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.btn-materi-submit:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
    transform: translateY(-1px);
}

/* Light Mode Overrides for Materi */
[data-theme="light"] .materi-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .materi-card-title {
    color: #0f172a !important;
}

[data-theme="light"] .materi-card-meta {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .materi-meta-row {
    color: #334155 !important;
}

[data-theme="light"] .btn-materi-kebab {
    border-color: rgba(0, 0, 0, 0.1) !important;
    background: rgba(0, 0, 0, 0.04) !important;
    color: #64748b !important;
}

[data-theme="light"] .btn-materi-kebab:hover,
[data-theme="light"] .btn-materi-kebab:focus,
[data-theme="light"] .btn-materi-kebab.active {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

[data-theme="light"] .materi-kebab-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .materi-kebab-item {
    color: #334155 !important;
}

[data-theme="light"] .materi-kebab-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0284c7 !important;
}

[data-theme="light"] .materi-kebab-item.danger {
    color: #dc2626 !important;
}

[data-theme="light"] .materi-kebab-item.danger:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #b91c1c !important;
}

[data-theme="light"] .materi-filter-bar {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .materi-cat-pill {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .materi-cat-pill.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
}

[data-theme="light"] .materi-select-custom,
[data-theme="light"] .materi-search-input,
[data-theme="light"] .materi-input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .materi-select-custom:focus,
[data-theme="light"] .materi-search-input:focus,
[data-theme="light"] .materi-input:focus {
    background: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

[data-theme="light"] .materi-preset-btn {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

[data-theme="light"] .materi-preset-btn:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4f46e5 !important;
}

[data-theme="light"] .kelas-checkboxes-grid {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kelas-checkbox-label {
    background: #ffffff !important;
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .modal-preview-dialog,
[data-theme="light"] .modal-upload-dialog {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .modal-preview-header,
[data-theme="light"] .modal-upload-footer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .btn-materi-cancel {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

[data-theme="light"] .btn-materi-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* =========================================================================
   PUSAT NOTIFIKASI TERPADU (CENTRAL NOTIFICATION SYSTEM)
   ========================================================================= */

/* Bell animation when has unread */
.notification-bell-btn.has-unread i.fa-bell {
    animation: bellRinging 3.5s infinite ease-in-out;
}

@keyframes bellRinging {
    0%, 80%, 100% { transform: rotate(0deg); }
    84% { transform: rotate(14deg); }
    88% { transform: rotate(-12deg); }
    92% { transform: rotate(10deg); }
    96% { transform: rotate(-6deg); }
}

/* Backdrop */
.pusat-notif-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pusat-notif-modal-backdrop.show {
    display: flex;
    opacity: 1;
}

/* Dialog Container */
.pusat-notif-dialog {
    width: 100%;
    max-width: 680px;
    max-height: 84vh;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.pusat-notif-modal-backdrop.show .pusat-notif-dialog {
    transform: scale(1) translateY(0);
}

[data-theme="light"] .pusat-notif-dialog {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Header */
.pusat-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .pusat-notif-header {
    border-bottom-color: #f1f5f9;
    background: #f8fafc;
}

.pusat-notif-header .header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pusat-notif-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
    letter-spacing: -0.01em;
}

[data-theme="light"] .pusat-notif-title {
    color: #0f172a;
}

.pusat-notif-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

[data-theme="light"] .pusat-notif-subtitle {
    color: #64748b;
}

.pusat-notif-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.pusat-notif-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: scale(1.05);
}

[data-theme="light"] .pusat-notif-close-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

/* Subbar & Filters */
.pusat-notif-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
}

[data-theme="light"] .pusat-notif-subbar {
    border-bottom-color: #f1f5f9;
    background: #ffffff;
}

.pusat-notif-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
}

.pusat-notif-filters::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.filter-pill.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.pill-count {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 6px;
    line-height: 1.2;
}

[data-theme="light"] .filter-pill {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

[data-theme="light"] .filter-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-mark-all-read {
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mark-all-read:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* Notification List Wrapper */
.pusat-notif-list-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
}

.pusat-notif-list-wrapper::-webkit-scrollbar {
    width: 6px;
}
.pusat-notif-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

/* Card Styling */
.notif-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.notif-card.unread {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(99, 102, 241, 0.03));
    border-left: 4px solid #38bdf8;
    border-color: rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .notif-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .notif-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .notif-card.unread {
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
    border-left: 4px solid #0284c7;
    border-color: #bae6fd;
}

/* Icon Box inside Card */
.notif-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.notif-card:hover .notif-card-icon {
    transform: scale(1.08);
}

.notif-card-icon.tugas {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
}
.notif-card-icon.izin {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
}
.notif-card-icon.edu_izin {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.notif-card-icon.sarpras {
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.25);
}
.notif-card-icon.konseling,
.notif-card-icon.bk {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
}
.notif-card-icon.sistem {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Content */
.notif-card-body {
    flex: 1;
    min-width: 0;
}

.notif-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.notif-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

[data-theme="light"] .notif-card-title {
    color: #0f172a;
}

.notif-card-time {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="light"] .notif-card-time {
    color: #64748b;
}

.notif-card-msg {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
}

[data-theme="light"] .notif-card-msg {
    color: #475569;
}

.notif-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.notif-cat-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.notif-card-icon.obrolan {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
}
.notif-card-icon.presensi {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.notif-cat-tag.cbt { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.notif-cat-tag.tugas { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.notif-cat-tag.edu_izin { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.notif-cat-tag.izin, .notif-cat-tag.izin_kbm { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.notif-cat-tag.obrolan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.notif-cat-tag.presensi { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.notif-cat-tag.sarpras { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.notif-cat-tag.konseling, .notif-cat-tag.bk { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.notif-cat-tag.suara_siswa { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.notif-cat-tag.pengumuman { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.notif-cat-tag.sistem { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

[data-theme="light"] .notif-cat-tag.cbt { background: #d1fae5; color: #065f46; }
[data-theme="light"] .notif-cat-tag.tugas { background: #dbeafe; color: #1e40af; }
[data-theme="light"] .notif-cat-tag.edu_izin { background: #f3e8ff; color: #6b21a8; }
[data-theme="light"] .notif-cat-tag.izin, [data-theme="light"] .notif-cat-tag.izin_kbm { background: #ffedd5; color: #9a3412; }
[data-theme="light"] .notif-cat-tag.obrolan { background: #cffafe; color: #0891b2; }
[data-theme="light"] .notif-cat-tag.presensi { background: #e0f2fe; color: #0284c7; }
[data-theme="light"] .notif-cat-tag.sarpras { background: #ccfbf1; color: #115e59; }
[data-theme="light"] .notif-cat-tag.konseling, [data-theme="light"] .notif-cat-tag.bk { background: #ffe4e6; color: #9f1239; }
[data-theme="light"] .notif-cat-tag.suara_siswa { background: #cffafe; color: #155e75; }
[data-theme="light"] .notif-cat-tag.pengumuman { background: #e0f2fe; color: #075985; }
[data-theme="light"] .notif-cat-tag.sistem { background: #e0e7ff; color: #3730a3; }

.notif-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.notif-card:hover .notif-card-actions {
    opacity: 1;
}

.btn-card-read, .btn-card-del {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-card-read:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-card-del:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

[data-theme="light"] .btn-card-read, [data-theme="light"] .btn-card-del {
    background: #f1f5f9;
    color: #64748b;
}

[data-theme="light"] .btn-card-read:hover {
    background: #d1fae5;
    color: #059669;
}

[data-theme="light"] .btn-card-del:hover {
    background: #fee2e2;
    color: #dc2626;
}

.notif-card-icon.cbt {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.notif-card-icon.suara_siswa {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.notif-card-icon.pengumuman {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    position: absolute;
    top: 14px;
    right: 14px;
}

/* Empty State */
.pusat-notif-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    margin: auto;
}

.empty-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 1.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

[data-theme="light"] .empty-icon-circle {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #94a3b8;
}

.pusat-notif-empty-state h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

[data-theme="light"] .pusat-notif-empty-state h4 {
    color: #1e293b;
}

.pusat-notif-empty-state p {
    font-size: 0.84rem;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Footer */
.pusat-notif-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .pusat-notif-footer {
    border-top-color: #f1f5f9;
    background: #f8fafc;
}

/* Tombol Aksi Footer Pusat Notifikasi Terpadu */
.btn-notif-clear-history,
.pusat-notif-footer .btn-outline-secondary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    color: #f87171 !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    outline: none !important;
}

.btn-notif-clear-history:hover,
.pusat-notif-footer .btn-outline-secondary:hover {
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: rgba(239, 68, 68, 0.55) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.32) !important;
}

.btn-notif-clear-history:active,
.pusat-notif-footer .btn-outline-secondary:active {
    transform: scale(0.97) !important;
}

.btn-notif-clear-history i,
.pusat-notif-footer .btn-outline-secondary i {
    font-size: 0.88rem !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-notif-clear-history:hover i,
.pusat-notif-footer .btn-outline-secondary:hover i {
    transform: scale(1.18) rotate(-8deg) !important;
}

/* Light Theme Support */
[data-theme="light"] .btn-notif-clear-history,
body.light-mode .btn-notif-clear-history,
[data-theme="light"] .pusat-notif-footer .btn-outline-secondary,
body.light-mode .pusat-notif-footer .btn-outline-secondary {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08) !important;
}

[data-theme="light"] .btn-notif-clear-history:hover,
body.light-mode .btn-notif-clear-history:hover,
[data-theme="light"] .pusat-notif-footer .btn-outline-secondary:hover,
body.light-mode .pusat-notif-footer .btn-outline-secondary:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #991b1b !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.16) !important;
}

/* Tombol Tutup Footer */
.btn-notif-close-modal,
.pusat-notif-footer .btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f1f5f9 !important;
    padding: 8px 22px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    line-height: 1.4 !important;
    outline: none !important;
}

.btn-notif-close-modal:hover,
.pusat-notif-footer .btn-secondary:hover {
    background: #334155 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .btn-notif-close-modal,
body.light-mode .btn-notif-close-modal,
[data-theme="light"] .pusat-notif-footer .btn-secondary,
body.light-mode .pusat-notif-footer .btn-secondary {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .btn-notif-close-modal:hover,
body.light-mode .btn-notif-close-modal:hover,
[data-theme="light"] .pusat-notif-footer .btn-secondary:hover,
body.light-mode .pusat-notif-footer .btn-secondary:hover {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

.footer-info {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Colors */
.text-emerald { color: #10b981 !important; }
.text-amber { color: #f59e0b !important; }
.text-blue { color: #0284c7 !important; }
.text-orange { color: #f97316 !important; }
.text-purple { color: #a855f7 !important; }
.text-teal { color: #14b8a6 !important; }
.text-rose { color: #f43f5e !important; }
.text-sky { color: #38bdf8 !important; }

/* =========================================================================
   FLOATING TOAST NOTIFICATION
   ========================================================================= */
.notif-floating-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10010;
    max-width: 400px;
    width: calc(100vw - 32px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-floating-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.notif-floating-toast .toast-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

[data-theme="light"] .notif-floating-toast .toast-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: #bae6fd;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.18);
}

.notif-floating-toast .toast-card:hover {
    transform: scale(1.02);
}

.toast-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.toast-badge-new {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.toast-title {
    font-size: 0.88rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .toast-title {
    color: #0f172a;
}

.toast-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

[data-theme="light"] .toast-msg {
    color: #475569;
}

.toast-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.toast-close-btn:hover {
    color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .pusat-notif-dialog {
        max-height: 90vh;
        border-radius: 16px;
    }
    .pusat-notif-header {
        padding: 16px 18px;
    }
    .pusat-notif-subbar {
        padding: 10px 18px;
    }
    .pusat-notif-list-wrapper {
        padding: 12px 16px;
    }
    .pusat-notif-footer {
        padding: 12px 18px;
    }
    .notif-card {
        padding: 12px 14px;
    }
    .notif-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   GAYA VISUAL MODUL PRESENSI QR CODE (GURU & SISWA)
   ========================================================================== */

/* Animasi Masuk Modal QR */
.modal-dialog-qr,
.modal-dialog-scanner {
    animation: qrModalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes qrModalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Laser Viewfinder Scanner */
.qr-scanner-laser {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, #22c55e, #38bdf8, transparent);
    box-shadow: 0 0 12px 2px rgba(56, 189, 248, 0.8), 0 0 20px 4px rgba(34, 197, 94, 0.6);
    border-radius: 50%;
    animation: qrLaserScan 2.2s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 10;
}

@keyframes qrLaserScan {
    0% {
        top: 10%;
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 90%;
        opacity: 0.8;
    }
}

/* Sudut Bingkai Kamera Viewfinder */
.qr-scanner-corners {
    position: absolute;
    inset: 18px;
    border: 2px dashed rgba(56, 189, 248, 0.3);
    border-radius: 14px;
    pointer-events: none;
    z-index: 9;
}

.qr-scanner-corners::before,
.qr-scanner-corners::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: #38bdf8;
    border-style: solid;
    pointer-events: none;
}

.qr-scanner-corners::before {
    top: -2px;
    left: -2px;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 8px;
}

.qr-scanner-corners::after {
    bottom: -2px;
    right: -2px;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 8px;
}

/* Modal QR Presensi Guru & Siswa Pop-up Overlay */
#modalQrPresensiGuru,
#modalScannerQrSiswa {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(5, 9, 20, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

#modalQrPresensiGuru.active,
#modalScannerQrSiswa.active {
    display: flex !important;
}

.modal-dialog-qr,
.modal-dialog-scanner {
    margin: auto !important;
    animation: qrModalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    max-height: 95vh;
    overflow-y: auto;
}

@keyframes qrModalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Tombol QR Code & Scanner Glow Effect */
#btnBukaQrMapel,
#btnScanKameraMapel,
#btnBukaQrKelasHarian,
#btnBukaQrKelasHarianBar,
#btnScanKameraKelasHarian,
#btnBukaQrKelasHarianTop {
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

#btnBukaQrMapel:hover,
#btnBukaQrKelasHarian:hover,
#btnBukaQrKelasHarianBar:hover,
#btnBukaQrKelasHarianTop:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5) !important;
}

#btnScanKameraMapel:hover,
#btnScanKameraKelasHarian:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

/* Ticker Item Animasi */
.qr-recent-chip {
    animation: chipFadeIn 0.3s ease;
}

@keyframes chipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   KBM FILTER COMPACT ROW (Tanggal, Kelas, QR Code 1 Baris di Mobile & Desktop)
   ========================================================================== */
.kbm-filter-compact-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.kbm-filter-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-width: 0 !important;
}

.kbm-col-date {
    flex: 1.35 1 0 !important;
}

.kbm-col-class {
    flex: 1.15 1 0 !important;
}

.kbm-col-qr {
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
}

.kbm-qr-btns-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.kbm-scan-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 78, 59, 0.4)) !important;
    border: 1px solid #10b981 !important;
    color: #6ee7b7 !important;
    padding: 9px 16px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    height: 42px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.kbm-scan-btn:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}

.kbm-scan-btn i {
    color: #34d399 !important;
    font-size: 1.05rem !important;
}

/* Presensi Guru Mapel Roster Actions Row (Desktop Sejajar) */
.mapel-roster-actions-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.mapel-qr-actions-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.kbm-field-label {
    font-size: 0.85rem !important;
    color: var(--text-muted, #94a3b8) !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

.kbm-field-label i {
    color: #38bdf8 !important;
    font-size: 0.85rem !important;
}

.label-desk {
    display: inline !important;
}
.label-mob {
    display: none !important;
}

.kbm-date-input {
    background: rgba(15, 23, 42, 0.65) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 0.92rem !important;
    outline: none !important;
    width: 100% !important;
    height: 42px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.kbm-date-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

.kbm-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1) !important;
    opacity: 0.75 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

.kbm-class-select {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    background: rgba(15, 23, 42, 0.65) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 0.92rem !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.kbm-class-select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

.kbm-class-select option {
    background: #1e293b !important;
    color: #f8fafc !important;
}

.kbm-qr-btn {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border: 1px solid #38bdf8 !important;
    padding: 9px 18px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    height: 42px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.kbm-qr-btn:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5) !important;
}

.kbm-qr-btn i {
    color: #bae6fd !important;
    font-size: 1.05rem !important;
}

.qr-label-desk {
    display: inline !important;
}
.qr-label-tab {
    display: none !important;
}
.qr-label-mob {
    display: none !important;
}

/* Tablet / Medium Breakpoint */
@media (min-width: 641px) and (max-width: 900px) {
    .qr-label-desk {
        display: none !important;
    }
    .qr-label-tab {
        display: inline !important;
    }
    .qr-label-mob {
        display: none !important;
    }
}

/* Mobile Screens: Tanggal, Kelas, dan QR Code Tetap 1 Baris */
@media (max-width: 640px) {
    .kbm-filter-compact-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
        align-items: flex-end !important;
        width: 100% !important;
    }

    .kbm-col-date {
        flex: 1.35 1 0 !important;
        min-width: 0 !important;
    }

    .kbm-col-class {
        flex: 1.05 1 0 !important;
        min-width: 0 !important;
    }

    .kbm-col-qr {
        flex: 0 0 auto !important;
    }

    .kbm-field-label {
        font-size: 0.72rem !important;
        margin-bottom: 2px !important;
        gap: 3px !important;
    }

    .kbm-field-label i {
        font-size: 0.72rem !important;
    }

    .label-desk {
        display: none !important;
    }
    .label-mob {
        display: inline !important;
    }

    .kbm-qr-spacer {
        display: none !important;
    }

    .kbm-date-input {
        height: 38px !important;
        padding: 6px 6px !important;
        font-size: 0.78rem !important;
        border-radius: 7px !important;
    }

    .kbm-class-select {
        height: 38px !important;
        padding: 6px 4px !important;
        font-size: 0.78rem !important;
        border-radius: 7px !important;
    }

    .kbm-qr-btns-row {
        gap: 4px !important;
    }

    .kbm-qr-btn {
        height: 38px !important;
        padding: 6px 8px !important;
        font-size: 0.78rem !important;
        gap: 4px !important;
        border-radius: 7px !important;
    }

    .kbm-qr-btn i {
        font-size: 0.95rem !important;
    }

    .kbm-scan-btn {
        height: 38px !important;
        padding: 6px 8px !important;
        font-size: 0.78rem !important;
        gap: 4px !important;
        border-radius: 7px !important;
    }

    .kbm-scan-btn i {
        font-size: 0.95rem !important;
    }

    .qr-label-desk {
        display: none !important;
    }
    .qr-label-tab {
        display: none !important;
    }
    .qr-label-mob {
        display: inline !important;
    }
}

/* ==========================================================================
   OVERVIEW DASHBOARD: SUMMARY KELAS X, XI, XII SEJAJAR
   ========================================================================== */
.overview-kelas-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ov-kelas-card {
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.ov-kelas-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.ov-card-x {
    border-left: 4px solid #8b5cf6 !important;
}

.ov-card-xi {
    border-left: 4px solid #3b82f6 !important;
}

.ov-card-xii {
    border-left: 4px solid #14b8a6 !important;
}

.ov-kelas-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.ov-kelas-title {
    font-size: 0.76rem !important;
    color: var(--text-muted, #94a3b8) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ov-kelas-val {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    margin: 2px 0 !important;
    white-space: nowrap !important;
}

.ov-kelas-badge {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}

.ov-badge-x {
    background: rgba(139, 92, 246, 0.15) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: #8b5cf6 !important;
}

.ov-badge-xi {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #3b82f6 !important;
}

.ov-badge-xii {
    background: rgba(20, 184, 166, 0.15) !important;
    border: 1px solid rgba(20, 184, 166, 0.3) !important;
    color: #14b8a6 !important;
}

/* ==========================================================================
   QR PRESENSI DISABLED STATE (TANGGAL MASA DEPAN)
   ========================================================================== */
.btn-disabled-future,
.kbm-qr-btn:disabled,
.kbm-qr-btn[disabled],
#btnBukaQrMapel:disabled,
#btnBukaQrKelasHarianBar:disabled,
#btnBukaQrKelasHarian:disabled {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.85) !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: auto !important;
}

.btn-disabled-future:hover,
.kbm-qr-btn:disabled:hover,
#btnBukaQrMapel:disabled:hover,
#btnBukaQrKelasHarianBar:disabled:hover,
#btnBukaQrKelasHarian:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   HERO CARD QUICK SCAN QR SISWA (HANYA UNTUK DASHBOARD SISWA)
   ========================================================================== */
.student-quick-scan-card,
#cardQuickScanQrSiswa {
    padding: 20px 24px !important;
    margin-bottom: 25px !important;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(15, 23, 42, 0.75)) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 16px !important;
    display: none !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    box-shadow: 0 8px 32px rgba(2, 132, 199, 0.18) !important;
}

body.role-siswa .student-quick-scan-card,
body.role-siswa #cardQuickScanQrSiswa {
    display: flex !important;
}

.student-quick-scan-content {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    flex: 1 1 300px !important;
    min-width: 0 !important;
}

.student-scan-qr-icon {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    border-radius: 14px !important;
    background: rgba(56, 189, 248, 0.2) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.6rem !important;
    color: #38bdf8 !important;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25) !important;
    box-sizing: border-box !important;
}

.student-scan-qr-icon i {
    font-size: 1.55rem !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.student-quick-scan-desc {
    min-width: 0 !important;
    flex: 1 !important;
}

.student-btn-scan-qr {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border: 1px solid #38bdf8 !important;
    padding: 11px 22px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.92rem !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4) !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   STUDENT PERSONAL & BIMBEL KPI METRIC CARDS (DESKTOP BASE)
   ========================================================================== */
@media (min-width: 769px) {
    .student-personal-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .student-personal-kpi-grid .student-kpi-hadir,
    .student-personal-kpi-grid .student-kpi-telat,
    .student-personal-kpi-grid .student-kpi-izin,
    .student-personal-kpi-grid .student-kpi-alpa,
    .student-personal-kpi-grid .student-kpi-perc {
        grid-column: auto !important;
    }

    .student-bimbel-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .student-bimbel-kpi-grid > div {
        grid-column: auto !important;
    }

    #sarprasStatsGrid,
    .sarpras-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   STUDENT PERSONAL & BIMBEL KPI METRIC CARDS (MOBILE OVERRIDES - MAX 2 ROWS)
   Row 1 (3 kartu sejajar): Hadir (2), Terlambat (2), Izin/Sakit (2) -> 6 kolom
   Row 2 (2 kartu sejajar): Alpa (3), Persentase (3)                 -> 6 kolom
   ========================================================================== */
@media (max-width: 768px) {
    .student-personal-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .student-personal-kpi-grid .student-kpi-hadir {
        grid-column: 1 / span 2 !important;
    }
    .student-personal-kpi-grid .student-kpi-telat {
        grid-column: 3 / span 2 !important;
    }
    .student-personal-kpi-grid .student-kpi-izin {
        grid-column: 5 / span 2 !important;
    }

    .student-personal-kpi-grid .student-kpi-alpa {
        grid-column: 1 / span 3 !important;
    }
    .student-personal-kpi-grid .student-kpi-perc {
        grid-column: 4 / span 3 !important;
    }

    .student-kpi-card {
        padding: 10px 4px !important;
        border-radius: 12px !important;
        min-width: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .student-kpi-lbl {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        gap: 4px !important;
        letter-spacing: -0.01em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .student-kpi-lbl i {
        font-size: 0.74rem !important;
    }

    .student-personal-kpi-val {
        font-size: 1.35rem !important;
        font-weight: 800 !important;
        margin: 4px 0 0 0 !important;
        line-height: 1.15 !important;
    }

    .student-bimbel-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .student-bimbel-kpi-grid > div:nth-child(1) { grid-column: 1 / span 2 !important; }
    .student-bimbel-kpi-grid > div:nth-child(2) { grid-column: 3 / span 2 !important; }
    .student-bimbel-kpi-grid > div:nth-child(3) { grid-column: 5 / span 2 !important; }
    .student-bimbel-kpi-grid > div:nth-child(4) { grid-column: 1 / span 3 !important; }
    .student-bimbel-kpi-grid > div:nth-child(5) { grid-column: 4 / span 3 !important; }
}

.student-kpi-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.student-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.student-kpi-hadir {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
.student-kpi-hadir .student-kpi-lbl {
    color: #34d399 !important;
}

.student-kpi-telat {
    background: rgba(245, 158, 11, 0.1) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}
.student-kpi-telat .student-kpi-lbl {
    color: #fbbf24 !important;
}

.student-kpi-izin {
    background: rgba(56, 189, 248, 0.1) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
}
.student-kpi-izin .student-kpi-lbl {
    color: #38bdf8 !important;
}

.student-kpi-alpa {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}
.student-kpi-alpa .student-kpi-lbl {
    color: #f87171 !important;
}

.student-kpi-perc {
    background: rgba(168, 85, 247, 0.1) !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
}
.student-kpi-perc .student-kpi-lbl {
    color: #c084fc !important;
}

.student-kpi-lbl {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
}

.student-personal-kpi-val {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    margin: 4px 0 0 0 !important;
    line-height: 1.15 !important;
    display: block !important;
}

.student-bimbel-kpi-grid > div {
    padding: 12px 10px !important;
    border-radius: 12px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.student-bimbel-kpi-grid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* ==========================================================================
   RESPONSIVE LABEL SYSTEM (.lbl-full and .lbl-mob)
   ========================================================================== */
.lbl-full {
    display: inline !important;
}
.lbl-mob {
    display: none !important;
}

@media (max-width: 600px) {
    .lbl-full {
        display: none !important;
    }
    .lbl-mob {
        display: inline !important;
    }
}

.sarpras-kpi-card {
    position: relative !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.6) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    overflow: hidden !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease !important;
}

.sarpras-kpi-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    border-radius: 16px 16px 0 0 !important;
}

.sarpras-stat-total::before {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8) !important;
}
.sarpras-stat-total:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 12px 28px -6px rgba(14, 165, 233, 0.25) !important;
}

.sarpras-stat-menunggu::before {
    background: linear-gradient(90deg, #d97706, #fbbf24) !important;
}
.sarpras-stat-menunggu:hover {
    border-color: rgba(251, 191, 36, 0.35) !important;
    box-shadow: 0 12px 28px -6px rgba(245, 158, 11, 0.25) !important;
}

.sarpras-stat-proses::before {
    background: linear-gradient(90deg, #2563eb, #60a5fa) !important;
}
.sarpras-stat-proses:hover {
    border-color: rgba(96, 165, 250, 0.35) !important;
    box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.25) !important;
}

.sarpras-stat-selesai::before {
    background: linear-gradient(90deg, #059669, #10b981) !important;
}
.sarpras-stat-selesai:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.25) !important;
}

.sarpras-kpi-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45) !important;
}

.sarpras-kpi-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
}

.sarpras-stat-total .sarpras-kpi-icon {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}
.sarpras-stat-menunggu .sarpras-kpi-icon {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}
.sarpras-stat-proses .sarpras-kpi-icon {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}
.sarpras-stat-selesai .sarpras-kpi-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.sarpras-kpi-info {
    min-width: 0 !important;
    flex: 1 !important;
}

.sarpras-kpi-lbl {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.sarpras-kpi-val {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    margin-top: 3px !important;
    line-height: 1.15 !important;
    display: block !important;
}

/* Light Mode Overrides for Sarpras */
[data-theme="light"] #sarprasWakilInfoBanner,
body.light-mode #sarprasWakilInfoBanner {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
}

[data-theme="light"] #sarprasWakilInfoBanner strong,
body.light-mode #sarprasWakilInfoBanner strong {
    color: #0c4a6e !important;
}

[data-theme="light"] #sarprasWakilInfoBanner .btn-secondary,
body.light-mode #sarprasWakilInfoBanner .btn-secondary {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

[data-theme="light"] #sarprasStatsGrid .sarpras-kpi-card,
[data-theme="light"] .sarpras-stats-grid .sarpras-kpi-card,
body.light-mode #sarprasStatsGrid .sarpras-kpi-card,
body.light-mode .sarpras-stats-grid .sarpras-kpi-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sarpras-kpi-lbl,
body.light-mode .sarpras-kpi-lbl {
    color: #64748b !important;
}

[data-theme="light"] .sarpras-kpi-val,
body.light-mode .sarpras-kpi-val {
    color: #0f172a !important;
}

[data-theme="light"] .sarpras-stat-total .sarpras-kpi-icon,
body.light-mode .sarpras-stat-total .sarpras-kpi-icon {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
}

[data-theme="light"] .sarpras-stat-menunggu .sarpras-kpi-icon,
body.light-mode .sarpras-stat-menunggu .sarpras-kpi-icon {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

[data-theme="light"] .sarpras-stat-proses .sarpras-kpi-icon,
body.light-mode .sarpras-stat-proses .sarpras-kpi-icon {
    background: #dbeafe !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
}

[data-theme="light"] .sarpras-stat-selesai .sarpras-kpi-icon,
body.light-mode .sarpras-stat-selesai .sarpras-kpi-icon {
    background: #d1fae5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}

[data-theme="light"] .sarpras-subtab-btn,
body.light-mode .sarpras-subtab-btn {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .sarpras-subtab-btn.active,
body.light-mode .sarpras-subtab-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

/* ==========================================================================
   MODERN DESIGN SYSTEM: SUARA SISWA & LAPOR SARPRAS
   ========================================================================== */

.suara-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.suara-kpi-card {
    position: relative !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.6) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    overflow: hidden !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.suara-kpi-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    border-radius: 16px 16px 0 0 !important;
}

.suara-kpi-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45) !important;
}

/* Card Themes */
.suara-card-total::before {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8) !important;
}
.suara-card-total:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 12px 28px -6px rgba(14, 165, 233, 0.25) !important;
}

.suara-card-bulan::before {
    background: linear-gradient(90deg, #059669, #10b981) !important;
}
.suara-card-bulan:hover {
    border-color: rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.25) !important;
}

.suara-card-anonim::before {
    background: linear-gradient(90deg, #7c3aed, #a855f7) !important;
}
.suara-card-anonim:hover {
    border-color: rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 12px 28px -6px rgba(168, 85, 247, 0.25) !important;
}

.suara-card-fasilitas::before {
    background: linear-gradient(90deg, #d97706, #fbbf24) !important;
}
.suara-card-fasilitas:hover {
    border-color: rgba(251, 191, 36, 0.35) !important;
    box-shadow: 0 12px 28px -6px rgba(245, 158, 11, 0.25) !important;
}

.suara-kpi-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
}

.suara-kpi-title {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.suara-kpi-icon-box {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
}

.suara-card-total .suara-kpi-icon-box {
    background: rgba(14, 165, 233, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
}
.suara-card-bulan .suara-kpi-icon-box {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.25) !important;
}
.suara-card-anonim .suara-kpi-icon-box {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border: 1px solid rgba(192, 132, 252, 0.25) !important;
}
.suara-card-fasilitas .suara-kpi-icon-box {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
}

.suara-kpi-number {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: #f8fafc !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 8px !important;
}

.suara-kpi-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    width: fit-content !important;
}

.suara-card-total .suara-kpi-badge {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #7dd3fc !important;
}
.suara-card-bulan .suara-kpi-badge {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #6ee7b7 !important;
}
.suara-card-anonim .suara-kpi-badge {
    background: rgba(168, 85, 247, 0.1) !important;
    color: #d8b4fe !important;
}
.suara-card-fasilitas .suara-kpi-badge {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #fde047 !important;
}

/* Category Filter Pills */
.suara-filter-bar {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 12px 18px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.suara-pills-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.suara-filter-pill {
    padding: 7px 16px !important;
    border-radius: 24px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.5) !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
}

.suara-filter-pill:hover {
    color: #f8fafc !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    background: rgba(30, 41, 59, 0.8) !important;
    transform: translateY(-1px) !important;
}

.suara-filter-pill.active {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
}

.suara-search-wrapper {
    position: relative !important;
    min-width: 250px !important;
}

.suara-search-input {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    padding: 8px 14px 8px 36px !important;
    border-radius: 24px !important;
    font-size: 0.84rem !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.suara-search-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.suara-search-icon {
    position: absolute !important;
    left: 13px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #64748b !important;
    font-size: 0.82rem !important;
    pointer-events: none !important;
}

/* Suara Siswa Table Redesign */
.suara-table-card {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.suara-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    text-align: left !important;
    margin: 0 !important;
}

.suara-table thead tr {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)) !important;
}

.suara-table thead th {
    padding: 14px 16px !important;
    font-size: 0.76rem !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.suara-table tbody tr {
    transition: background 0.15s ease, border-left 0.15s ease !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.suara-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.04) !important;
}

.suara-table tbody td {
    padding: 14px 16px !important;
    vertical-align: middle !important;
}

.suara-badge-anonim {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    background: rgba(100, 116, 139, 0.18) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

.suara-badge-identified {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.suara-badge-code {
    display: inline-block !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.74rem !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-top: 3px !important;
}

.suara-badge-cat {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.suara-btn-detail {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.suara-btn-detail:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

.suara-btn-delete {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-left: 6px !important;
}

.suara-btn-delete:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
}

/* Light Mode Overrides for Suara Siswa */
[data-theme="light"] .suara-kpi-card,
body.light-mode .suara-kpi-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .suara-kpi-title,
body.light-mode .suara-kpi-title {
    color: #64748b !important;
}

[data-theme="light"] .suara-kpi-number,
body.light-mode .suara-kpi-number {
    color: #0f172a !important;
}

[data-theme="light"] .suara-filter-bar,
body.light-mode .suara-filter-bar {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .suara-filter-pill,
body.light-mode .suara-filter-pill {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .suara-filter-pill.active,
body.light-mode .suara-filter-pill.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

[data-theme="light"] .suara-table-card,
body.light-mode .suara-table-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .suara-table thead tr,
body.light-mode .suara-table thead tr {
    background: #f1f5f9 !important;
}

[data-theme="light"] .suara-table thead th,
body.light-mode .suara-table thead th {
    color: #475569 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .suara-table tbody tr:hover,
body.light-mode .suara-table tbody tr:hover {
    background: #f8fafc !important;
}

/* ==========================================================================
   PROFILE AVATAR & PHOTO UPLOAD STYLES
   ========================================================================== */
.user-avatar-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.avatar,
.avatar-sm {
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

#sidebarUserAvatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

#mobileUserAvatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.profile-avatar-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 22px 20px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    width: 100%;
}

.profile-avatar-wrapper {
    position: relative;
    width: 105px !important;
    height: 105px !important;
    min-width: 105px !important;
    min-height: 105px !important;
    max-width: 105px !important;
    max-height: 105px !important;
    flex-shrink: 0 !important;
    margin: 0 auto;
}

.profile-avatar-circle {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.2));
    border: 3px solid #38bdf8;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-avatar-circle:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45);
}

.profile-avatar-circle i {
    font-size: 2.8rem;
    color: #38bdf8;
}

.profile-avatar-camera-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: 2px solid #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5);
    transition: transform 0.2s ease, background 0.2s ease;
}

.profile-avatar-camera-badge:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.profile-avatar-info {
    flex: 1 1 240px;
    min-width: 0;
}

.profile-avatar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-avatar-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0 0 14px 0;
}

.profile-avatar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-upload-avatar {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.btn-upload-avatar:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-delete-avatar {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-delete-avatar:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
}

/* Light mode support for avatar card */
[data-theme="light"] .profile-avatar-card,
body.light-mode .profile-avatar-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .profile-avatar-title,
body.light-mode .profile-avatar-title {
    color: #0f172a !important;
}

[data-theme="light"] .profile-avatar-desc,
body.light-mode .profile-avatar-desc {
    color: #64748b !important;
}

[data-theme="light"] .profile-avatar-camera-badge,
body.light-mode .profile-avatar-camera-badge {
    border-color: #ffffff !important;
}

/* ==========================================================================
   PWA MOBILE NOTIFICATION ACTIVATION BANNER & PUSH STYLES
   ========================================================================== */
.pwa-notif-banner {
    position: fixed;
    bottom: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    z-index: 10500;
    transition: bottom 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 14px 16px;
}

.pwa-notif-banner.show {
    bottom: 24px;
}

.pwa-notif-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-notif-bell-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    animation: pwaBellPulse 2.5s infinite ease-in-out;
}

.pwa-notif-bell-icon .pwa-notif-app-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    border-radius: 10px;
    display: block;
}

.pwa-notif-badge-bell {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border: 1.5px solid #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@keyframes pwaBellPulse {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.06) rotate(-3deg); }
    30% { transform: scale(1.06) rotate(3deg); }
    45% { transform: scale(1); }
}

.pwa-notif-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-notif-banner-text strong {
    display: block;
    font-size: 0.9rem;
    color: #f8fafc;
    font-weight: 700;
    margin-bottom: 2px;
}

.pwa-notif-banner-text span {
    display: block;
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.35;
}

.pwa-notif-banner-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-pwa-banner-yes {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s, background 0.2s;
}

.btn-pwa-banner-yes:active {
    transform: scale(0.96);
}

.btn-pwa-banner-no {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.btn-pwa-banner-no:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

/* Light Mode Styling for PWA Banner */
[data-theme="light"] .pwa-notif-banner,
body.light-mode .pwa-notif-banner {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(2, 132, 199, 0.3);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 20px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .pwa-notif-banner-text strong,
body.light-mode .pwa-notif-banner-text strong {
    color: #0f172a;
}

[data-theme="light"] .pwa-notif-banner-text span,
body.light-mode .pwa-notif-banner-text span {
    color: #475569;
}

[data-theme="light"] .btn-pwa-banner-no,
body.light-mode .btn-pwa-banner-no {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #64748b;
}

/* Tombol Uji HP di Header Modal */
.btn-pwa-test-head {
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
}

.btn-pwa-test-head:hover {
    background: rgba(56, 189, 248, 0.28) !important;
    color: #7dd3fc !important;
}

[data-theme="light"] .btn-pwa-test-head,
body.light-mode .btn-pwa-test-head {
    background: rgba(2, 132, 199, 0.1) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    color: #0284c7 !important;
}

/* ==========================================================================
   RUANG OBROLAN & DISKUSI TERPADU (CHAT & DISCUSSION)
   Seluruh styling Ruang Obrolan dikelola secara terpusat di css/chat.css
   ========================================================================== */
/* ================================================================ */
/* KUSTOMISASI DESKTOP & ANIMASI CIRCLE REFRESH                     */
/* ================================================================ */

/* 1. Sembunyikan badge Guru / Role verified di bawah nama pada mode desktop */
@media (min-width: 769px) {
    .sidebar .sidebar-user-role-wrapper,
    .sidebar .user-details .sidebar-user-role-wrapper,
    .sidebar #currentUserRole,
    .sidebar .user-details > div:has(#currentUserRole) {
        display: none !important;
    }
}

/* 2. Overview Dashboard Header: Tombol SMARTAPP CBT, LMS, dan Refresh berada di sebelah kanan */
@media (min-width: 769px) {
    #panel-overview .panel-header,
    #panel-overview .panel-header.flex-between {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #panel-overview .panel-header .overview-header-title-box,
    #panel-overview .panel-header > div:first-child {
        flex: 1 1 auto !important;
        min-width: 280px !important;
    }

    #panel-overview .overview-header-actions {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
        gap: 10px !important;
        width: auto !important;
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }

    #panel-overview .overview-header-actions #btnOverviewCbtLms,
    #panel-overview .overview-header-actions #btnOverviewClassroom,
    #panel-overview .overview-header-actions #btnRefreshOverview {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
    }
}

/* 3. Animasi Circle Berputar untuk SEMUA Tombol Refresh */
@keyframes circleSpin360 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.anim-circle-spin,
.fa-spin,
.spin-circle {
    display: inline-block !important;
    animation: circleSpin360 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    transform-origin: center center !important;
}

/* Hover micro-interaction pada tombol refresh */
button:hover > i.fa-rotate,
button:hover > i.fa-rotate-right,
button:hover > i.fa-rotate-left,
button:hover > i.fa-arrows-rotate,
button:hover > i.fa-sync,
button:hover > i.fa-sync-alt,
.btn-refresh:hover i,
.btn-refresh-circle:hover i,
[id*="Refresh"]:hover i,
[id*="refresh"]:hover i {
    transform: rotate(180deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Efek tombol aktif saat ditekan */
[id*="Refresh"]:active,
[id*="refresh"]:active,
.btn-refresh:active,
.btn-refresh-circle:active {
    transform: scale(0.96);
}

/* ==========================================================================
   POPUP MODAL: TEACHER ATTENDANCE GATE (Akses Presensi Belum Dibuka - Landscape)
   ========================================================================== */
.swal2-popup.swal2-teacher-gate-popup {
    background: linear-gradient(145deg, #0e172a 0%, #0a0f1d 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 45px rgba(99, 102, 241, 0.18) !important;
    padding: 0 !important;
    max-width: 660px !important;
    width: 95% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    color: #f1f5f9 !important;
    font-family: inherit !important;
}

.swal2-popup.swal2-teacher-gate-popup .swal2-html-container,
.swal2-teacher-gate-html {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-align: left !important;
    color: #f1f5f9 !important;
}

/* RESET: Force inline flow for bold/strong elements inside teacher gate popup */
.swal2-popup.swal2-teacher-gate-popup strong,
.swal2-popup.swal2-teacher-gate-popup b,
.swal2-popup.swal2-teacher-gate-popup .teacher-gate-landscape-wrapper strong,
.swal2-popup.swal2-teacher-gate-popup .teacher-gate-landscape-wrapper b,
.swal2-popup.swal2-teacher-gate-popup .teacher-gate-user {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: inherit !important;
    text-transform: none !important;
}

/* Hide default SweetAlert actions container since buttons are placed in landscape layout */
.swal2-popup.swal2-teacher-gate-popup .swal2-actions,
.swal2-teacher-gate-actions {
    display: none !important;
}

/* 2-Column Landscape Layout Wrapper */
.teacher-gate-landscape-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: 250px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Left Accent Column */
.teacher-gate-side-panel {
    width: 175px !important;
    min-width: 175px !important;
    max-width: 175px !important;
    background: linear-gradient(165deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.08) 45%, rgba(15, 23, 42, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 24px 16px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.teacher-gate-side-orb {
    position: absolute !important;
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.32) 0%, rgba(239, 68, 68, 0) 70%) !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
    filter: blur(20px) !important;
}

.teacher-gate-side-panel .teacher-gate-icon-badge {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(245, 158, 11, 0.3) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.55rem !important;
    color: #fbbf24 !important;
    margin: 0 !important;
    z-index: 1 !important;
}

.teacher-gate-side-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    background: rgba(239, 68, 68, 0.16) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    z-index: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.teacher-gate-side-sub {
    font-size: 0.74rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    z-index: 1 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    max-width: 140px !important;
}

/* Right Main Content Panel */
.teacher-gate-main-panel {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 22px 24px 20px 22px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    gap: 12px !important;
}

.teacher-gate-header-area {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin: 0 !important;
}

.teacher-gate-titles {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
}

.teacher-gate-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
}

.teacher-gate-subtitle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 10px !important;
    border-radius: 9999px !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
    color: #fde68a !important;
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    width: fit-content !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.teacher-gate-subtitle strong {
    color: #ffffff !important;
    font-weight: 700 !important;
    display: inline !important;
    margin: 0 !important;
}

.teacher-gate-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
}

.teacher-gate-msg {
    font-size: 0.88rem !important;
    color: #cbd5e1 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.teacher-gate-msg strong,
.teacher-gate-msg .teacher-gate-user {
    color: #ffffff !important;
    font-weight: 700 !important;
    display: inline !important;
    margin: 0 !important;
}

.teacher-gate-notice-box {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: rgba(30, 41, 59, 0.55) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    border-left: 3.5px solid #f59e0b !important;
    border-radius: 10px !important;
    text-align: left !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.teacher-gate-notice-box i {
    color: #f59e0b !important;
    font-size: 1.05rem !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.teacher-gate-notice-text {
    font-size: 0.82rem !important;
    color: #cbd5e1 !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

.teacher-gate-notice-text strong {
    color: #fde68a !important;
    font-weight: 600 !important;
    display: inline !important;
    margin: 0 !important;
}

/* Horizontal Actions Row in Right Panel */
.teacher-gate-landscape-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 4px !important;
    box-sizing: border-box !important;
}

.btn-gate-cancel {
    padding: 8px 16px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 0.84rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-gate-cancel:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.btn-gate-deny {
    padding: 8px 16px !important;
    border-radius: 10px !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
    font-weight: 600 !important;
    font-size: 0.84rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.btn-gate-deny:hover {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #ffffff !important;
}

.btn-gate-confirm {
    padding: 8px 20px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    transition: all 0.2s ease !important;
}

.btn-gate-confirm:hover {
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Close Button: Sleek Circular Glass Button */
.swal2-popup.swal2-teacher-gate-popup .swal2-close,
.swal2-teacher-gate-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 30 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-popup.swal2-teacher-gate-popup .swal2-close i,
.swal2-teacher-gate-close i {
    font-size: 0.9rem !important;
    line-height: 1 !important;
    display: inline-block !important;
    transition: transform 0.22s ease !important;
}

.swal2-popup.swal2-teacher-gate-popup .swal2-close:hover,
.swal2-teacher-gate-close:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35) !important;
}

.swal2-popup.swal2-teacher-gate-popup .swal2-close:hover i,
.swal2-teacher-gate-close:hover i {
    transform: rotate(90deg) !important;
    color: #ffffff !important;
}

.swal2-popup.swal2-teacher-gate-popup .swal2-close:active,
.swal2-teacher-gate-close:active {
    transform: scale(0.95) !important;
}

/* Responsive Fallback for Mobile (< 640px) */
@media (max-width: 640px) {
    .teacher-gate-landscape-wrapper {
        flex-direction: column !important;
    }

    .teacher-gate-side-panel {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 20px 16px !important;
    }

    .teacher-gate-main-panel {
        padding: 18px 16px 16px 16px !important;
    }

    .teacher-gate-landscape-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 8px !important;
    }

    .btn-gate-confirm {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }

    .btn-gate-cancel {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }

    .btn-gate-deny {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }
}

/* TOMBOL ICON FACE RECOGNITION LOGIN */
.btn-face-login-icon {
    position: relative;
    overflow: hidden;
}
.btn-face-login-icon:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.5), rgba(79, 70, 229, 0.7)) !important;
    border-color: #c084fc !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.5) !important;
}
.btn-face-login-icon:active {
    transform: scale(0.95);
}

/* SWEETALERT DIALOG: FACE RECOGNITION POPUPS */
.swal2-face-empty-popup {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(24, 31, 51, 0.98)) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.45) !important;
    border-radius: 26px !important;
    box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.9), 0 0 45px rgba(168, 85, 247, 0.22) !important;
    padding: 26px 24px 22px !important;
    max-width: 440px !important;
}

.swal2-face-empty-popup .swal2-html-container {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.swal2-face-empty-popup .swal2-actions {
    margin-top: 20px !important;
    padding: 0 !important;
}

.btn-swal-face-confirm {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border: 1px solid #38bdf8 !important;
    color: #ffffff !important;
    padding: 10px 32px !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45) !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-swal-face-confirm:hover {
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.6) !important;
}

.btn-swal-face-confirm:active {
    transform: scale(0.96) !important;
}

/* ==========================================================================
   JURNAL MUTASI SISWA (BUKU INDUK MUTASI MASUK & KELUAR)
   ========================================================================== */
.mutasi-tab-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mutasi-tab-btn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.mutasi-tab-btn:hover:not(.active) {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.mutasi-table-row:hover {
    background: rgba(56, 189, 248, 0.04) !important;
}

.btn-action-view:hover {
    background: rgba(56, 189, 248, 0.3) !important;
    transform: translateY(-2px);
}

.btn-action-edit:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-2px);
}

.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   STYLING MODUL ADMINISTRASI KEUANGAN SEKOLAH (SPP & TAGIHAN)
   ========================================================================== */
.fin-subtab-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    transition: all 0.22s ease;
}

.fin-subtab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.fin-subtab-btn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.fin-student-item {
    background: #0b1329 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
}

.fin-student-item:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    transform: translateX(4px);
}

.fin-search-card {
    position: relative !important;
    z-index: 100 !important;
}

#finStudentSearchResults {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #0b1329 !important;
    border: 1.5px solid rgba(56, 189, 248, 0.6) !important;
    border-radius: 14px !important;
    max-height: 380px !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 25px rgba(56, 189, 248, 0.25) !important;
}

#finStudentSearchClearBtn {
    transition: all 0.18s ease;
}

#finStudentSearchClearBtn:hover {
    color: #f87171 !important;
    transform: translateY(-50%) scale(1.15) !important;
}

.fin-spp-month-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.fin-spp-month-card.lunas:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   FINANCE REKAP TUNGGAKAN TABLE - UNCLUTTERED & RESPONSIVE (NO STACKING)
   ========================================================================== */
#finTableTunggakanBody tr td {
    vertical-align: middle !important;
    padding: 14px 12px !important;
}

.fin-badge-unpaid {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(239, 68, 68, 0.16) !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
    color: #fca5a5 !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15) !important;
}

.fin-action-group {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.fin-btn-kasir {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35) !important;
    transition: all 0.18s ease !important;
    width: auto !important;
    min-width: 0 !important;
}

.fin-btn-kasir:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5) !important;
}

.fin-btn-surat {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: rgba(56, 189, 248, 0.14) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    transition: all 0.18s ease !important;
    width: auto !important;
    min-width: 0 !important;
}

.fin-btn-surat:hover {
    background: rgba(56, 189, 248, 0.28) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3) !important;
}

.fin-btn-wa {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    transition: all 0.18s ease !important;
    width: auto !important;
    min-width: 0 !important;
}

.fin-btn-wa:hover {
    background: rgba(16, 185, 129, 0.28) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* =========================================================================
   SWEETALERT PREMIUM WELCOME & PROFILE MODALS (PORTAL ORANG TUA)
   ========================================================================= */
.swal-premium-parent-modal {
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 27, 75, 0.98) 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 65px -15px rgba(0, 0, 0, 0.85),
        0 0 45px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #f8fafc !important;
    padding: 1.75rem 2rem !important;
}

.swal-actions-welcome {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 20px !important;
}

@media (min-width: 500px) {
    .swal-actions-welcome {
        flex-direction: row-reverse !important;
        justify-content: center !important;
    }
}

.swal-btn-welcome-primary {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.45) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.swal-btn-welcome-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 26px -2px rgba(79, 70, 229, 0.6) !important;
    filter: brightness(1.08) !important;
}

.swal-btn-welcome-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.swal-btn-welcome-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.45;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.85;
    }
}

/* ==========================================================================
   RAPOR TENGAH SEMESTER (A4 PORTRAIT) - STANDAR RESMI RAPOR SMA BARUNA WATI
   Tampilan pratinjau menyerupai lembar fisik A4 resmi, margin normal 20mm
   ========================================================================== */
.rapor-page-card {
    width: 210mm !important;
    max-width: 100% !important;
    margin: 0 auto 25px auto !important;
    padding: 15mm 18mm !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15) !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    font-family: 'Times New Roman', Times, serif !important;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0 !important;
    }

    html,
    body,
    body.printing-rapor-mode,
    body.printing-single-student {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html body .main-content,
    html body #view-app,
    html body #panelRaporTengahSemester,
    html body #raporPrintPreviewCard,
    html body #raporPrintArea {
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        overflow: visible !important;
        transform: none !important;
    }

    html body .rapor-page-card,
    html body .rapor-page-card.hidden-page,
    html body .rapor-page-card.active-page {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        opacity: 1 !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 auto !important;
        padding: 15mm 18mm !important;
        box-sizing: border-box !important;
        width: 210mm !important;
        max-width: 100% !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    html body .rapor-page-card:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }
}

/* ========================================================================= */
/* MANAJEMEN ASET & INVENTARIS SEKOLAH (SMARTAPP ASSET SYSTEM)              */
/* ========================================================================= */

#nav-inventaris-aset .nav-icon i,
.nav-item[data-target="panel-inventaris-aset"] .nav-icon i {
    color: #38bdf8 !important;
}

/* Subtabs Navigasi Aset */
.asset-subtabs-wrapper {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    padding: 6px;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.asset-subtab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.asset-subtab-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.asset-subtab-btn.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(14, 165, 233, 0.5));
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .asset-subtabs-wrapper,
body.light-mode .asset-subtabs-wrapper {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-theme="light"] .asset-subtab-btn,
body.light-mode .asset-subtab-btn {
    color: #475569;
}

[data-theme="light"] .asset-subtab-btn.active,
body.light-mode .asset-subtab-btn.active {
    background: #ffffff;
    color: #0284c7;
    border-color: #38bdf8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========================================================================= */
/* KPI STATS CARDS GRID (ASET & INVENTARIS)                                  */
/* ========================================================================= */
.asset-kpi-grid,
#assetKpiGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .asset-kpi-grid,
    #assetKpiGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .asset-kpi-grid,
    #assetKpiGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 16px;
    }
}

.asset-kpi-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.75));
    border: 1px solid var(--card-border, rgba(56, 189, 248, 0.18));
    border-radius: 16px;
    padding: 18px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.asset-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
    border-color: rgba(56, 189, 248, 0.45);
}

.asset-kpi-card.kpi-blue {
    border-top: 3px solid #38bdf8;
}

.asset-kpi-card.kpi-emerald {
    border-top: 3px solid #10b981;
}

.asset-kpi-card.kpi-amber {
    border-top: 3px solid #f59e0b;
}

.asset-kpi-card.kpi-purple {
    border-top: 3px solid #c084fc;
}

.asset-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.asset-kpi-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asset-kpi-icon-bubble {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.asset-kpi-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.asset-kpi-footer {
    font-size: 0.76rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Light mode for KPI cards */
[data-theme="light"] .asset-kpi-card,
body.light-mode .asset-kpi-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .asset-kpi-card:hover,
body.light-mode .asset-kpi-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .asset-kpi-title,
body.light-mode .asset-kpi-title {
    color: #64748b;
}

[data-theme="light"] .asset-kpi-value,
body.light-mode .asset-kpi-value {
    color: #0f172a;
}

/* ========================================================================= */
/* TOOLBAR & FILTER BAR (ASET & INVENTARIS)                                  */
/* ========================================================================= */
.asset-toolbar,
.asset-toolbar-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.75));
    border: 1px solid var(--card-border, rgba(56, 189, 248, 0.18));
    border-radius: 14px;
    padding: 8px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
    width: 100%;
}

.asset-search-box,
.asset-search-wrapper {
    position: relative;
    flex: 0 0 180px;
    width: 180px;
    min-width: 140px;
    max-width: 200px;
    box-sizing: border-box;
}

.asset-search-box input,
.asset-search-wrapper input {
    width: 100%;
    height: 36px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
    border-radius: 9px;
    padding: 0 10px 0 30px;
    color: #f8fafc;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.asset-search-box input:focus,
.asset-search-wrapper input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    outline: none;
}

.asset-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 2;
}

.asset-filter-group,
.asset-filters-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.asset-select-filter {
    height: 36px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
    border-radius: 9px;
    padding: 0 6px;
    color: #e2e8f0;
    font-size: 0.78rem;
    cursor: pointer;
    min-width: 80px;
    max-width: 135px;
    flex: 1 1 0;
    transition: border-color 0.2s;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.asset-select-filter:focus {
    border-color: #38bdf8;
    outline: none;
}

.asset-select-filter option {
    background: #0f172a;
    color: #f8fafc;
}

.asset-view-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
    border-radius: 9px;
    padding: 2px;
    gap: 3px;
    align-items: center;
    flex-shrink: 0;
}

.asset-view-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #94a3b8;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.asset-view-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}

.asset-view-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Light mode for Toolbar */
[data-theme="light"] .asset-toolbar-card,
body.light-mode .asset-toolbar-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .asset-search-wrapper input,
body.light-mode .asset-search-wrapper input {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .asset-select-filter,
body.light-mode .asset-select-filter {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .asset-select-filter option,
body.light-mode .asset-select-filter option {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="light"] .asset-view-toggle,
body.light-mode .asset-view-toggle {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Grid Kartu Aset */
.asset-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.asset-card {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid var(--card-border);
}

.asset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-color: rgba(56, 189, 248, 0.4);
}

.asset-card-banner {
    position: relative;
    height: 160px;
    background: #0b1120;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.asset-card:hover .asset-card-thumb {
    transform: scale(1.05);
}

/* Base Badge styles (static/inline by default so table and modal don't jump to top) */
.asset-badge-kondisi,
.asset-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
}

/* In card banner, anchor absolutely inside the banner */
.asset-card-banner .asset-badge-kondisi {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.asset-card-banner .asset-badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.kondisi-baik { background: rgba(16, 185, 129, 0.85); color: #ffffff; }
.kondisi-rusak-ringan { background: rgba(245, 158, 11, 0.85); color: #ffffff; }
.kondisi-rusak-berat { background: rgba(239, 68, 68, 0.85); color: #ffffff; }
.kondisi-perbaikan { background: rgba(56, 189, 248, 0.85); color: #ffffff; }
.kondisi-afkir { background: rgba(100, 116, 139, 0.85); color: #ffffff; }

.status-tersedia { background: rgba(14, 165, 233, 0.85); color: #ffffff; }
.status-dipinjam { background: rgba(168, 85, 247, 0.85); color: #ffffff; }
.status-pemeliharaan { background: rgba(234, 88, 12, 0.85); color: #ffffff; }
.status-afkir { background: rgba(71, 85, 105, 0.85); color: #ffffff; }

.asset-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.asset-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.asset-card-category {
    font-size: 0.74rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.asset-card-code {
    font-family: monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.asset-card-code:hover {
    color: #38bdf8;
}

.asset-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 6px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.asset-card-subinfo {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.asset-card-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.asset-meta-item .meta-lbl {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.asset-meta-item .meta-val {
    display: block;
    font-size: 0.82rem;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.price-lbl {
    font-size: 0.76rem;
    color: #94a3b8;
}

.price-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #10b981;
}

.asset-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.btn-asset-action {
    flex: 1;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-asset-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-asset-borrow {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #6ee7b7 !important;
}

.btn-asset-borrow:hover {
    background: rgba(16, 185, 129, 0.3) !important;
}

.btn-asset-edit {
    flex: 0 0 34px !important;
    padding: 0 !important;
    color: #38bdf8 !important;
}

.btn-asset-delete {
    flex: 0 0 34px !important;
    padding: 0 !important;
    color: #ef4444 !important;
}

.btn-asset-delete:hover {
    background: rgba(239, 68, 68, 0.2) !important;
}

/* Tabel Inventaris Aset */
.asset-table-wrapper {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow-x: auto;
}

.asset-table {
    width: 100%;
    border-collapse: collapse;
}

.asset-table th {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    padding: 12px 14px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--card-border);
}

.asset-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
    vertical-align: middle;
}

.asset-table-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #0b1120;
}

.asset-cat-tag {
    font-size: 0.78rem;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-tbl-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-tbl-icon:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-tbl-icon.danger {
    color: #ef4444;
}

.btn-tbl-icon.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Detail Modal Styles */
.asset-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .asset-detail-grid {
        grid-template-columns: 1fr;
    }
}

.asset-detail-photo {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    background: #0b1120;
    border: 1px solid var(--card-border);
}

.asset-info-table-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.info-row {
    font-size: 0.85rem;
}

.info-row span {
    display: block;
    font-size: 0.74rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.info-row strong {
    color: #f8fafc;
    font-weight: 600;
}

.asset-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asset-timeline li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    line-height: 1.4;
}

.timeline-date {
    display: inline-block;
    color: #38bdf8;
    font-family: monospace;
    font-size: 0.76rem;
    margin-right: 6px;
}

.timeline-actor {
    color: #e2e8f0;
}

.timeline-text {
    color: #cbd5e1;
}

/* Sticker Label QR Code */
.asset-qr-sticker {
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #0f172a;
    border-radius: 10px;
    padding: 14px;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-family: system-ui, -apple-system, sans-serif;
}

.sticker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.sticker-logo {
    width: 34px;
    height: 34px;
}

.sticker-brand h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.sticker-brand p {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.5px;
}

.sticker-body {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.sticker-qr-box {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px;
}

.sticker-details {
    flex: 1;
}

.sticker-code {
    font-family: monospace;
    font-weight: 800;
    font-size: 0.92rem;
    color: #0284c7;
    margin-bottom: 4px;
}

.sticker-name {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sticker-room {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 2px;
}

.sticker-year {
    font-size: 0.7rem;
    color: #64748b;
}

.sticker-footer {
    border-top: 1px dashed #cbd5e1;
    padding-top: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    text-align: center;
    color: #64748b;
    letter-spacing: 0.5px;
}

/* Badge Sirkulasi Peminjaman */
.badge-loan-active {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-loan-returned {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-loan-overdue {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulse 1.5s infinite;
}

/* Ruangan Grid */
.asset-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.asset-room-card {
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--card-border);
}

.room-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.room-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.room-count-badge {
    font-size: 0.76rem;
    color: #94a3b8;
}

.room-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-top: 8px;
}

.room-items-preview {
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
}

/* Print Media Override untuk Cetak Label Stiker */
@media print {
    body * {
        visibility: hidden !important;
    }
    #printableQrSticker,
    #printableQrSticker * {
        visibility: visible !important;
    }
    #printableQrSticker {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
}

/* Light Mode Overrides */
[data-theme="light"] .asset-card,
body.light-mode .asset-card,
[data-theme="light"] .asset-room-card,
body.light-mode .asset-room-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .asset-card-title,
body.light-mode .asset-card-title,
[data-theme="light"] .room-title,
body.light-mode .room-title {
    color: #0f172a !important;
}

[data-theme="light"] .asset-card-meta-grid,
body.light-mode .asset-card-meta-grid,
[data-theme="light"] .room-items-preview,
body.light-mode .room-items-preview,
[data-theme="light"] .asset-info-table-box,
body.light-mode .asset-info-table-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .asset-meta-item .meta-val,
body.light-mode .asset-meta-item .meta-val,
[data-theme="light"] .info-row strong,
body.light-mode .info-row strong {
    color: #0f172a !important;
}

[data-theme="light"] .asset-table-wrapper,
body.light-mode .asset-table-wrapper {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .asset-table th,
body.light-mode .asset-table th {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .asset-table td,
body.light-mode .asset-table td {
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

[data-theme="light"] .asset-search-box input,
body.light-mode .asset-search-box input,
[data-theme="light"] .asset-select-filter,
body.light-mode .asset-select-filter {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* ========================================================
   KELOLA AKUN ORANG TUA / WALI MURID (MODERN DATA TABLE)
   ======================================================== */
.parent-accounts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1100px;
}

.parent-accounts-table thead th {
    background: rgba(15, 23, 42, 0.95);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(56, 189, 248, 0.25);
    white-space: nowrap;
    vertical-align: middle;
}

.parent-accounts-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.parent-accounts-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.05) !important;
}

.parent-accounts-table tbody td {
    padding: 14px 16px;
    font-size: 0.88rem;
    vertical-align: middle;
}

.btn-parent-action {
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    line-height: 1.2;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    outline: none;
    user-select: none;
}

.btn-parent-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-parent-action:active {
    transform: translateY(0);
}

.btn-parent-action.btn-preview {
    padding: 7px 13px;
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.38);
    font-weight: 700;
}

.btn-parent-action.btn-preview:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: #10b981;
    color: #34d399;
}

.btn-parent-action.btn-reset {
    padding: 7px 11px;
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.38);
    font-weight: 600;
}

.btn-parent-action.btn-reset:hover {
    background: rgba(245, 158, 11, 0.28);
    border-color: #f59e0b;
    color: #fbbf24;
}

.btn-parent-action.btn-edit {
    padding: 7px 11px;
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.38);
    font-weight: 600;
}

.btn-parent-action.btn-edit:hover {
    background: rgba(56, 189, 248, 0.28);
    border-color: #38bdf8;
    color: #7dd3fc;
}

[data-theme="light"] .parent-accounts-table thead th,
body.light-mode .parent-accounts-table thead th {
    background: #f1f5f9;
    color: #475569;
    border-bottom: 2px solid #cbd5e1;
}

[data-theme="light"] .parent-accounts-table tbody tr:hover,
body.light-mode .parent-accounts-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.08) !important;
}

[data-theme="light"] .parent-accounts-table tbody td,
body.light-mode .parent-accounts-table tbody td {
    border-color: #e2e8f0;
    color: #1e293b;
}

/* ==========================================================================
   BUKU TAMU & KUNJUNGAN SEKOLAH (SMA 1 BARUNAWATI)
   ========================================================================== */
.btn-buku-tamu-login {
    width: 100%;
    min-height: 42px;
    height: 42px;
    padding: 0 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(5, 150, 105, 0.28));
    border: 1.5px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
    font-family: inherit;
}
.btn-buku-tamu-login:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.42));
    border-color: #10b981;
    color: #a7f3d0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.btn-buku-tamu-login:active {
    transform: translateY(0);
}

/* Modal Overlay & Card */
.bt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 29, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: btFadeIn 0.25s ease;
}

@keyframes btFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bt-modal-card {
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.2);
    overflow: hidden;
    animation: btSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes btSlideUp {
    from { transform: translateY(24px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.bt-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, rgba(56, 189, 248, 0.08), transparent);
}

.bt-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.bt-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bt-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f87171;
}

.bt-modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}

.bt-form-group {
    margin-bottom: 16px;
}

.bt-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.bt-form-input,
.bt-form-select,
.bt-form-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 10px 14px;
    color: #f8fafc;
    font-size: 0.88rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s;
}

.bt-form-input:focus,
.bt-form-select:focus,
.bt-form-textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.95);
}

.bt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .bt-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Visitor Pass Card */
.bt-visitor-pass {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.bt-pass-watermark {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 9rem;
    color: rgba(56, 189, 248, 0.04);
    pointer-events: none;
    line-height: 1;
}

/* KPI Cards in Dashboard */
.bt-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.bt-kpi-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.bt-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.3);
}

.bt-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.bt-kpi-val {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
    color: #f8fafc;
}

.bt-kpi-lbl {
    font-size: 0.76rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   E-PERSURATAN & MANAJEMEN DOKUMEN DIGITAL (SMA 1 BARUNAWATI)
   ========================================================================== */
.btn-persuratan-login {
    width: 100%;
    min-height: 42px;
    height: 42px;
    padding: 0 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(79, 70, 229, 0.32));
    border: 1.5px solid rgba(129, 140, 248, 0.45);
    color: #a5b4fc;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
    font-family: inherit;
    white-space: nowrap;
}
.btn-persuratan-login:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(79, 70, 229, 0.5));
    border-color: #818cf8;
    color: #e0e7ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.btn-persuratan-login:active {
    transform: translateY(0);
}

/* Public Modal Persuratan */
.ps-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 15, 29, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}
.ps-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.ps-modal-card {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 760px !important;
    max-height: 94vh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(129, 140, 248, 0.25) !important;
    transform: scale(0.95) translateY(10px) !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.ps-modal-overlay.active .ps-modal-card {
    transform: scale(1) translateY(0) !important;
}

.ps-modal-header {
    padding: 14px 22px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95)) !important;
    flex-shrink: 0 !important;
}

.ps-modal-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.ps-modal-close {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.ps-modal-close:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* Tab Switcher in Modals */
.ps-tab-container, .ps-modal-tabs {
    display: flex !important;
    flex-direction: row !important;
    background: rgba(15, 23, 42, 0.95) !important;
    padding: 8px 18px !important;
    gap: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.ps-tab-btn {
    flex: 1 1 0% !important;
    width: 50% !important;
    padding: 10px 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: #94a3b8 !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    text-align: center !important;
    outline: none !important;
}
.ps-tab-btn:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.ps-tab-btn.active {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    font-weight: 700 !important;
}

/* Modal Body */
.ps-modal-body {
    padding: 18px 22px !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
}

.ps-modal-body::-webkit-scrollbar {
    width: 6px !important;
}
.ps-modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4) !important;
}
.ps-modal-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.45) !important;
    border-radius: 999px !important;
}
.ps-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8) !important;
}

/* Form Layout, Inputs & Labels */
.ps-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 600px) {
    .ps-form-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

.ps-form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
}

.ps-form-label {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    margin-bottom: 5px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.2px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ps-form-label i {
    color: #818cf8 !important;
    font-size: 0.85rem !important;
    width: 14px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.ps-input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 9px 13px !important;
    color: #f8fafc !important;
    font-size: 0.86rem !important;
    font-family: inherit !important;
    outline: none !important;
    line-height: 1.4 !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
    display: block !important;
}

.ps-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    background: rgba(15, 23, 42, 0.98) !important;
}

.ps-input::placeholder {
    color: #64748b !important;
    font-size: 0.84rem !important;
}

/* Dedicated Search Input with Guaranteed Left Padding to Prevent Icon Overlap */
.ps-input-search {
    padding-left: 46px !important;
    height: 44px !important;
    font-size: 0.88rem !important;
}

select.ps-input {
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 38px !important;
}

select.ps-input option {
    background: #0f172a !important;
    color: #f8fafc !important;
    padding: 8px !important;
}

textarea.ps-input {
    resize: none !important;
    min-height: 58px !important;
    height: 62px !important;
    line-height: 1.4 !important;
    font-size: 0.85rem !important;
}

input[type="file"].ps-input {
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
}

input[type="file"].ps-input::file-selector-button {
    background: #4f46e5 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    margin-right: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

input[type="file"].ps-input::file-selector-button:hover {
    background: #4338ca !important;
}

.ps-form-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ps-btn-cancel {
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.ps-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.ps-btn-submit {
    padding: 9px 22px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    color: #ffffff !important;
    border: 1px solid #6366f1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    transition: all 0.2s !important;
}
.ps-btn-submit:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.5) !important;
}

/* Stepper Status Lacak Dokumen */
.ps-tracker-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
}

.ps-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin: 16px 0;
}
.ps-stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.ps-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}

.ps-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1f2937;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 0 0 4px #111827;
}

.ps-step-item.active .ps-step-icon {
    background: #4f46e5;
    border-color: #818cf8;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6), 0 0 0 4px #111827;
}

.ps-step-item.completed .ps-step-icon {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5), 0 0 0 4px #111827;
}

.ps-step-item.rejected .ps-step-icon {
    background: #ef4444;
    border-color: #f87171;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5), 0 0 0 4px #111827;
}

.ps-step-label {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 600;
    line-height: 1.25;
}
.ps-step-item.active .ps-step-label {
    color: #818cf8;
    font-weight: 700;
}
.ps-step-item.completed .ps-step-label {
    color: #34d399;
    font-weight: 700;
}
.ps-step-item.rejected .ps-step-label {
    color: #f87171;
    font-weight: 700;
}

/* Badges Status Dokumen */
.ps-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.ps-badge-warning {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}
.ps-badge-info {
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}
.ps-badge-primary {
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
}
.ps-badge-success {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.ps-badge-danger {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Kartu Ringkasan KPI di Panel Persuratan */
.ps-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.ps-kpi-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ps-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ps-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.ps-kpi-val {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: #f8fafc;
}
.ps-kpi-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Nav Sub-Tabs di dalam Panel Persuratan */
.ps-panel-tabs {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 20px;
    overflow-x: auto;
}
.ps-panel-tab-btn {
    padding: 9px 18px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.ps-panel-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}
.ps-panel-tab-btn.active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

/* ========================================================================= */
/* MODUL MANAJEMEN TAHUN PELAJARAN & PROMOSI SISWA (STATE-OF-THE-ART UI)     */
/* ========================================================================= */
.badge-status-aktif-glow {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
    animation: pulseActiveYearGlow 2.5s infinite alternate;
}

@keyframes pulseActiveYearGlow {
    0% {
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
    }
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.65);
    }
}

.hero-active-year-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.75) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    margin-bottom: 24px;
}

.hero-active-year-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-active-year-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #10b981, transparent);
}

.hero-stat-badge {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 20px;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-stat-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.35);
}

/* Metric Cards Grid */
.promosi-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

@media (max-width: 1200px) {
    .promosi-metric-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .promosi-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .promosi-metric-grid {
        grid-template-columns: 1fr;
    }
}

.promosi-metric-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.promosi-metric-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.promosi-metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.promosi-metric-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.promosi-metric-label {
    font-size: 0.76rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    margin-top: 3px;
}

/* Navigasi Tab Pills */
.promosi-tab-pills-wrapper {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.promosi-tab-pills-wrapper::-webkit-scrollbar {
    display: none;
}

.promosi-tab-pill-btn {
    padding: 11px 22px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.promosi-tab-pill-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.promosi-tab-pill-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* Filter Card & Fields */
.promosi-filter-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.promosi-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    align-items: flex-end;
}

.promosi-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.promosi-field-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promosi-input,
.promosi-select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

.promosi-input:focus,
.promosi-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: #0f172a;
}

.promosi-search-box {
    position: relative;
    width: 100%;
}

.promosi-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.88rem;
    pointer-events: none;
}

.promosi-search-box input {
    padding-left: 38px;
}

/* Mass Action Bar */
.promosi-mass-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(15, 23, 42, 0.4);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Micro Buttons in Table */
.btn-action-sm {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn-action-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.15);
}

.btn-action-sm:active {
    transform: translateY(0);
}

/* Table Dropdowns & Inputs */
.promosi-action-select {
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.promosi-action-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.promosi-target-class-input {
    padding: 6px 10px;
    font-size: 0.85rem;
    width: 95px;
    text-align: center;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.35);
    outline: none;
    transition: all 0.2s ease;
}

.promosi-target-class-input:focus {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

/* Sticky Action Bar for 1-Click Execution */
.promosi-action-bar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    position: sticky;
    bottom: 16px;
    z-index: 40;
}

/* Linimasa Siswa Components */
.student-vertical-timeline {
    position: relative;
    padding-left: 6px;
    margin-left: 6px;
}

.student-search-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
}

.student-search-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.student-avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ========================================================================= */
/* LIGHT MODE OVERRIDES FOR TAHUN AJARAN & PROMOSI SISWA                     */
/* ========================================================================= */
[data-theme="light"] .hero-active-year-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

[data-theme="light"] .hero-active-year-card #heroActiveYearTitle {
    color: #0f172a !important;
}

[data-theme="light"] .hero-active-year-card #heroActiveYearPeriod {
    color: #475569 !important;
}

[data-theme="light"] .hero-stat-badge {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .promosi-metric-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .promosi-metric-val {
    color: #0f172a !important;
}

[data-theme="light"] .promosi-tab-pills-wrapper {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .promosi-tab-pill-btn {
    color: #64748b !important;
}

[data-theme="light"] .promosi-tab-pill-btn:hover {
    color: #0f172a !important;
    background: #e2e8f0 !important;
}

[data-theme="light"] .promosi-tab-pill-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}

[data-theme="light"] .promosi-filter-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .promosi-input,
[data-theme="light"] .promosi-select,
[data-theme="light"] .promosi-action-select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .promosi-action-bar {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .promosi-mass-bar {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .student-search-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

/* =========================================================================
 * SMARTAPP SHOP (KOPERASI SEKOLAH) STYLES
 * ========================================================================= */
.kop-shop-root {
    padding-bottom: 90px;
}

/* Header & Action Buttons */
.kop-btn-my-orders,
.kop-btn-admin-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.kop-btn-my-orders {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

.kop-btn-my-orders:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: translateY(-1px);
}

/* Sembunyikan Tombol Simpan Pinjam untuk Siswa & Orang Tua */
body.role-siswa #btnKoperasiSimpanPinjam,
body.role-orang-tua #btnKoperasiSimpanPinjam,
[data-user-role="siswa"] #btnKoperasiSimpanPinjam,
[data-user-role="orang_tua"] #btnKoperasiSimpanPinjam {
    display: none !important;
}

.kop-btn-admin-mode {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.kop-btn-admin-mode:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.35));
    border-color: #34d399;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

/* Banner Card */
.kop-banner-card {
    padding: 20px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.7));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.kop-banner-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.kop-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.kop-banner-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kop-banner-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    flex-shrink: 0;
}

.kop-banner-icon.info-theme {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.22);
}

.kop-banner-announcement-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #38bdf8;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.kop-banner-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 4px 0 0 0;
    max-width: 650px;
    line-height: 1.45;
}

.kop-badge-open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.kop-badge-closed {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.kop-banner-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kop-banner-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* Filter & Search Bar */
/* ==========================================================================
   SMARTAPP SHOP - MODERN E-COMMERCE TOOLBAR & CATEGORY DROPDOWN
   ========================================================================== */
.kop-filter-section {
    margin-bottom: 22px;
    width: 100%;
}

.kop-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.kop-category-dropdown-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    flex-shrink: 0;
}

.kop-category-dropdown-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.kop-category-select-wrapper {
    position: relative;
    width: 100%;
}

.kop-category-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 38px 12px 14px;
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.kop-category-select:focus {
    border-color: #10b981;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.kop-category-select option {
    background: #0f172a;
    color: #f8fafc;
    padding: 8px;
}

.kop-select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.kop-category-select:focus + .kop-select-chevron {
    color: #10b981;
    transform: translateY(-50%) rotate(180deg);
}

.kop-search-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
}

.kop-search-input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.kop-search-input:focus {
    border-color: #10b981;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.kop-search-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
}

.kop-search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kop-search-clear-btn:hover {
    color: #f1f5f9;
}

/* Products Grid */
.kop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.kop-product-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.kop-product-card:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 185, 129, 0.15);
    transform: translateY(-3px);
}

.kop-product-card.is-empty {
    opacity: 0.6;
}

.kop-card-thumb-wrap {
    height: 140px;
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kop-prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thematic Fallback Art for Items Without Photos */
.kop-prod-fallback-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

.kop-prod-fallback-wrap.atk {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.25) 0%, rgba(15, 23, 42, 0.85) 75%);
}
.kop-prod-fallback-wrap.mnm {
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.25) 0%, rgba(15, 23, 42, 0.85) 75%);
}
.kop-prod-fallback-wrap.snk {
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.85) 75%);
}
.kop-prod-fallback-wrap.srg {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.25) 0%, rgba(15, 23, 42, 0.85) 75%);
}
.kop-prod-fallback-wrap.etc {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.25) 0%, rgba(15, 23, 42, 0.85) 75%);
}

.kop-fallback-glow {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.45;
    pointer-events: none;
}

.atk .kop-fallback-glow { background: #3b82f6; }
.mnm .kop-fallback-glow { background: #06b6d4; }
.snk .kop-fallback-glow { background: #f59e0b; }
.srg .kop-fallback-glow { background: #8b5cf6; }
.etc .kop-fallback-glow { background: #10b981; }

.kop-fallback-icon-bubble {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.atk .kop-fallback-icon-bubble { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.4); }
.mnm .kop-fallback-icon-bubble { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border-color: rgba(6, 182, 212, 0.4); }
.snk .kop-fallback-icon-bubble { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-color: rgba(245, 158, 11, 0.4); }
.srg .kop-fallback-icon-bubble { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border-color: rgba(139, 92, 246, 0.4); }
.etc .kop-fallback-icon-bubble { background: rgba(16, 185, 129, 0.2); color: #34d399; border-color: rgba(16, 185, 129, 0.4); }

.kop-fallback-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.kop-thumb-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 3;
}

.kop-stock-badge {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(6px);
}

.kop-stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.kop-stock-badge.low-stock {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.kop-stock-badge.out-stock {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.kop-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kop-card-category {
    font-size: 0.68rem;
    color: #38bdf8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.kop-card-title {
    font-size: 0.92rem;
    color: #f8fafc;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.35;
    height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kop-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.kop-card-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.kop-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #34d399;
}

.kop-card-unit {
    font-size: 0.72rem;
    color: #64748b;
}

.kop-btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.kop-btn-add-cart:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: scale(1.04);
}

.kop-btn-add-cart.disabled {
    background: rgba(255, 255, 255, 0.08);
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

/* Stepper Component */
.kop-stepper-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}

.kop-stepper-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: none;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.kop-stepper-btn:hover {
    background: #059669;
}

.kop-stepper-val {
    min-width: 24px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
}

/* Floating Cart Trigger */
.kop-floating-cart-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    border-radius: 24px;
    padding: 10px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.kop-floating-cart-bar:hover {
    border-color: #34d399;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), 0 0 28px rgba(16, 185, 129, 0.35);
}

.kop-floating-cart-bar.bounce {
    animation: kopBounce 0.4s ease;
}

@keyframes kopBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.06); }
}

.kop-float-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}

.kop-float-details {
    display: flex;
    flex-direction: column;
}

.kop-float-count {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

.kop-float-total {
    font-size: 1.15rem;
    color: #34d399;
    font-weight: 800;
}

.kop-float-btn-open {
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Cart Drawer (Slide-in) */
.kop-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.kop-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.kop-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.kop-cart-drawer.active {
    transform: translateX(0);
}

.kop-drawer-header {
    flex-shrink: 0;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kop-btn-clear-cart {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 9px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kop-btn-clear-cart:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
}

.kop-btn-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0;
}

.kop-btn-drawer-close:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: scale(1.06);
}

.kop-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 24px 20px;
}

/* Items in Drawer - Modern Clean Landscape Layout */
.kop-drawer-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
}

.kop-drawer-item-top {
    width: 100%;
}

.kop-drawer-item-title {
    font-size: 0.92rem;
    color: #f8fafc;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}

.kop-drawer-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.kop-drawer-item-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.kop-drawer-item-subtotal {
    font-size: 0.95rem;
    color: #34d399;
    font-weight: 800;
}

.kop-drawer-item-unit-calc {
    font-size: 0.76rem;
    color: #94a3b8;
}

.kop-drawer-item-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Horizontal Landscape Stepper */
.kop-drawer-stepper {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 9px;
    padding: 2px 4px;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.kop-stepper-btn-sm {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: none;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.74rem;
    transition: background 0.15s ease, transform 0.1s ease;
}

.kop-stepper-btn-sm:hover:not(:disabled) {
    background: #059669;
    transform: scale(1.05);
}

.kop-stepper-btn-sm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.kop-stepper-val-sm {
    min-width: 24px;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: #f8fafc;
}

.kop-btn-remove-item {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.kop-btn-remove-item:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    transform: scale(1.08);
}

/* Section Title inside Cart Body */
.kop-drawer-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #cbd5e1;
    margin: 18px 0 10px 0;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

/* Payment Selector Cards (Compact & Elegant) */
.kop-pay-methods-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 12px 0;
}

.kop-pay-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.kop-pay-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.kop-pay-card.selected {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18);
}

.kop-pay-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.kop-pay-icon.qris { background: rgba(56, 189, 248, 0.18); color: #38bdf8; }
.kop-pay-icon.cash { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.kop-pay-icon.paylater { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }

.kop-pay-info {
    flex: 1;
    min-width: 0;
}

.kop-pay-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kop-pay-desc {
    font-size: 0.73rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
}

.kop-pay-check {
    color: #10b981;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.kop-pay-card.selected .kop-pay-check {
    opacity: 1;
}

/* Pay Later Alert Boxes */
.kop-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.kop-alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.kop-alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

/* Compact Sticky Bottom Bar Footer */
.kop-drawer-footer {
    flex-shrink: 0;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)) 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.kop-drawer-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.kop-footer-total-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.kop-footer-total-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.kop-footer-total-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #34d399;
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Compact Checkout Button */
.kop-btn-checkout-submit {
    flex: 1;
    max-width: 200px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.kop-btn-checkout-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.kop-btn-checkout-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.kop-btn-checkout-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* QRIS Modal Styling */
.kop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10100 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.kop-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Stacking Layering Hierarchy (Above Mobile Bottom Nav 9999 & FAB 10001) */
#koperasiMyOrdersModal,
#koperasiSimpanPinjamModal {
    z-index: 10150 !important;
}

#koperasiProductModal,
#koperasiAccessModal,
#koperasiDebtDetailModal,
#koperasiKasirModal {
    z-index: 10200 !important;
}

#koperasiQrisModal,
#koperasiInvoiceModal {
    z-index: 10300 !important;
}

/* Container SweetAlert Toast Pojok Kanan Atas: Jangan blokir klik elemen di sekitarnya */
.swal2-container.swal2-top-end {
    pointer-events: none !important;
    padding: 10px 14px !important;
}

/* Custom Styled SweetAlert Toast for Koperasi: Ramping (Compact Pill), Non-Intrusive & Elegan */
.kop-swal-toast {
    pointer-events: auto !important;
    background: rgba(11, 23, 44, 0.94) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(16, 185, 129, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 6px 14px 6px 10px !important;
    width: auto !important;
    max-width: 360px !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    cursor: pointer !important;
}

.kop-swal-toast:hover {
    transform: translateY(-1px) !important;
    border-color: #38bdf8 !important;
}

/* Miniaturize Icon agar sejajar rapi dalam bentuk pill */
.kop-swal-toast .swal2-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 8px 0 0 !important;
    border-width: 2px !important;
    transform: scale(0.65) !important;
    flex-shrink: 0 !important;
}

.kop-swal-toast .swal2-title {
    color: #f8fafc !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.kop-swal-toast .swal2-timer-progress-bar {
    height: 2px !important;
    background: linear-gradient(90deg, #10b981, #38bdf8) !important;
    border-radius: 999px !important;
}

.kop-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 36px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: kopModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kop-modal-scrollable-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.kop-modal-scrollable-body::-webkit-scrollbar {
    width: 6px;
}

.kop-modal-scrollable-body::-webkit-scrollbar-track {
    background: transparent;
}

.kop-modal-scrollable-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.kop-modal-scrollable-body::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

[data-theme="light"] .kop-modal-scrollable-body {
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

[data-theme="light"] .kop-modal-scrollable-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
}

@keyframes kopModalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.kop-qris-card-inner {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 16px;
    color: #0f172a;
    text-align: center;
    margin: 16px;
    border: 2px solid #e2e8f0;
}

.kop-qris-logo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #e2e8f0;
    margin-bottom: 14px;
}

.kop-qris-merchant-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.kop-qris-nmid {
    font-size: 0.74rem;
    color: #64748b;
    margin: 2px 0 0 0;
    font-family: monospace;
}

.kop-qris-canvas-wrap {
    display: flex;
    justify-content: center;
    margin: 14px 0;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
}

.kop-qris-canvas-wrap img,
.kop-qris-canvas-wrap canvas {
    max-width: 220px;
    height: auto;
}

.kop-qris-amount-box {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 12px 0;
}

.kop-qris-amount-label {
    font-size: 0.76rem;
    color: #15803d;
    font-weight: 600;
    text-transform: uppercase;
}

.kop-qris-amount-val {
    font-size: 1.45rem;
    font-weight: 900;
    color: #166534;
    margin-top: 2px;
}

/* Invoice Modal Card */
.kop-inv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.kop-inv-badge.cash {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.kop-inv-badge.paylater {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.kop-inv-note-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    color: #e2e8f0;
    font-size: 0.84rem;
    line-height: 1.45;
    margin-top: 16px;
    text-align: left;
}

.kop-inv-note-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

/* My Orders Modal Card */
.kop-my-order-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.kop-my-order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.kop-my-order-code {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.95rem;
    font-family: monospace;
    display: block;
}

.kop-my-order-time {
    color: #64748b;
    font-size: 0.75rem;
}

.kop-ord-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: #cbd5e1;
    padding: 3px 0;
}

.kop-my-order-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.kop-order-status-badge {
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 700;
}

.kop-order-status-badge.completed { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.kop-order-status-badge.ready { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.kop-order-status-badge.pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.kop-order-status-badge.paylater-debt { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.kop-order-status-badge.cancelled { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

.kop-btn-view-qr {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* Light Mode Overrides */
[data-theme="light"] .kop-banner-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .kop-product-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .kop-card-title {
    color: #0f172a !important;
}

[data-theme="light"] .kop-search-input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .kop-cart-drawer {
    background: #ffffff !important;
    border-left: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .kop-drawer-header,
[data-theme="light"] .kop-drawer-footer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-drawer-item-title {
    color: #0f172a !important;
}

[data-theme="light"] .kop-drawer-stepper {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .kop-stepper-val-sm {
    color: #0f172a !important;
}

[data-theme="light"] .kop-btn-drawer-close {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .kop-btn-drawer-close:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

[data-theme="light"] .kop-pay-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-pay-title {
    color: #0f172a !important;
}

[data-theme="light"] .kop-drawer-section-title {
    color: #1e293b !important;
    border-top-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-footer-total-label {
    color: #64748b !important;
}

[data-theme="light"] .kop-footer-total-val {
    color: #059669 !important;
}

/* ==========================================================================
   SMARTAPP SHOP (KOPERASI SEKOLAH) - ADMIN & KASIR STYLES
   ========================================================================== */
.kop-admin-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.kop-admin-nav-tabs::-webkit-scrollbar {
    display: none;
}

.kop-admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kop-admin-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.kop-admin-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.kop-admin-pane {
    animation: kopFadeIn 0.25s ease-out;
}

@keyframes kopFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* KPI Cards Grid */
.kop-admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.kop-kpi-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.kop-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.kop-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.kop-kpi-card.green .kop-kpi-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.kop-kpi-card.amber .kop-kpi-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.kop-kpi-card.blue .kop-kpi-icon {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.kop-kpi-card.rose .kop-kpi-icon {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}
.kop-kpi-card.purple .kop-kpi-icon {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.kop-kpi-card.red-pulse {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}
.kop-kpi-card.red-pulse .kop-kpi-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    animation: kopPulseAlert 2s infinite ease-in-out;
}

@keyframes kopPulseAlert {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.kop-kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.kop-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

/* Admin Toolbar */
.kop-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.kop-admin-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.kop-filter-pill-sm {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.kop-filter-pill-sm:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}

.kop-filter-pill-sm.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: #0284c7;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

/* Admin Tables */
.kop-admin-table th {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.kop-admin-table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    vertical-align: middle;
}

.kop-admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Struk / Thermal Receipt Container */
#kopReceiptPrintArea {
    max-height: 70vh;
    overflow-y: auto;
}

/* LIGHT THEME OVERRIDES FOR ADMIN KOPERASI */
[data-theme="light"] .kop-admin-nav-tabs {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-admin-tab-btn {
    color: #64748b !important;
}

[data-theme="light"] .kop-admin-tab-btn:hover {
    color: #0f172a !important;
    background: #e2e8f0 !important;
}

[data-theme="light"] .kop-admin-tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

[data-theme="light"] .kop-kpi-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .kop-kpi-label {
    color: #64748b !important;
}

[data-theme="light"] .kop-kpi-value {
    color: #0f172a !important;
}

[data-theme="light"] .kop-admin-toolbar {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-filter-pill-sm {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

[data-theme="light"] .kop-filter-pill-sm:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

[data-theme="light"] .kop-filter-pill-sm.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
}

[data-theme="light"] .kop-admin-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-admin-table td {
    border-bottom-color: #f1f5f9 !important;
}

[data-theme="light"] .kop-admin-table tr:hover td {
    background: #f8fafc !important;
}

[data-theme="light"] .kop-modal-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .kop-modal-card h4 {
    color: #0f172a !important;
}

[data-theme="light"] .kop-category-select {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .kop-category-select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] .kop-category-dropdown-label {
    color: #64748b !important;
}

/* Table Action Buttons Group & Badges */
.kop-table-action-group {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.kop-order-status-badge {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-align: left !important;
}

/* ==========================================================================
   SMARTAPP SHOP - MOBILE E-COMMERCE RESPONSIVENESS (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    #panel-koperasi-shop {
        padding: 12px 10px 90px 10px !important;
    }

    /* Compact Mobile Banner */
    .kop-banner-card {
        padding: 14px 16px !important;
        margin-bottom: 14px !important;
        border-radius: 16px !important;
    }
    .kop-banner-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .kop-banner-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
        border-radius: 12px !important;
    }
    .kop-banner-desc {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }
    .kop-banner-stats {
        gap: 6px !important;
        width: 100% !important;
    }
    .kop-banner-stat-chip {
        padding: 5px 10px !important;
        font-size: 0.74rem !important;
        border-radius: 8px !important;
    }

    /* Filter Toolbar on Mobile */
    .kop-filter-section {
        margin-bottom: 16px !important;
    }

    .kop-filter-bar {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .kop-category-dropdown-box {
        width: 100% !important;
        min-width: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
    }

    .kop-category-dropdown-label {
        font-size: 0.74rem !important;
    }

    .kop-category-select {
        padding: 11px 36px 11px 12px !important;
        font-size: 0.88rem !important;
        border-radius: 12px !important;
    }

    .kop-search-wrapper {
        width: 100% !important;
    }

    .kop-search-input {
        padding: 11px 36px 11px 38px !important;
        font-size: 0.88rem !important;
        border-radius: 12px !important;
    }

    .kop-search-icon-left {
        left: 12px !important;
        font-size: 0.88rem !important;
    }

    /* 2-Column Mobile Ecommerce Grid with Bottom Clearance for Floating Cart */
    .kop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding-bottom: 180px !important;
    }

    .kop-product-card {
        border-radius: 16px !important;
    }

    .kop-card-thumb-wrap {
        height: 120px !important;
    }

    .kop-card-body {
        padding: 10px 10px 12px 10px !important;
    }

    .kop-card-category {
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
    }

    .kop-card-title {
        font-size: 0.84rem !important;
        height: 2.7em !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
    }

    .kop-card-footer {
        padding-top: 8px !important;
    }

    .kop-card-price {
        font-size: 0.98rem !important;
    }

    .kop-card-unit {
        font-size: 0.68rem !important;
    }

    .kop-btn-add-cart {
        padding: 6px 10px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
    }

    .kop-stepper-wrap {
        padding: 2px !important;
        gap: 2px !important;
    }

    .kop-stepper-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.72rem !important;
        border-radius: 6px !important;
    }

    .kop-stepper-val {
        min-width: 18px !important;
        font-size: 0.8rem !important;
    }

    /* Sticky Bottom Floating Cart Dock (Positioned cleanly ABOVE mobile bottom navbar) */
    .kop-floating-cart-bar {
        left: 14px !important;
        right: 14px !important;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 18px !important;
        padding: 10px 14px !important;
        justify-content: space-between !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(16, 185, 129, 0.4) !important;
        z-index: 9990 !important;
    }

    .kop-float-icon-wrap {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
        border-radius: 10px !important;
    }

    .kop-float-count {
        font-size: 0.74rem !important;
    }

    .kop-float-total {
        font-size: 1.05rem !important;
    }

    .kop-float-btn-open {
        padding: 7px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
    }

    /* Bottom Sheet Cart Drawer on Mobile (Above Mobile Navbar) */
    .kop-drawer-backdrop {
        z-index: 10050 !important;
    }

    .kop-cart-drawer {
        z-index: 10060 !important;
        max-width: 100% !important;
        height: 92vh !important;
        max-height: 94vh !important;
        top: auto !important;
        bottom: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        transform: translateY(100%) !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .kop-cart-drawer.active {
        transform: translateY(0) !important;
    }

    .kop-drawer-header {
        padding: 14px 18px !important;
        flex-shrink: 0 !important;
    }

    .kop-drawer-body {
        padding: 14px 16px 20px 16px !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .kop-drawer-footer {
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px !important;
        flex-shrink: 0 !important;
    }

    .kop-btn-checkout-submit {
        max-width: 175px !important;
        padding: 11px 14px !important;
        font-size: 0.88rem !important;
    }

    /* Admin Toolbar & KPI on Mobile */
    .kop-admin-nav-tabs {
        padding: 4px !important;
        gap: 6px !important;
        margin-bottom: 16px !important;
    }

    .kop-admin-tab-btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
    }

    .kop-admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .kop-kpi-card {
        padding: 12px 14px !important;
        gap: 10px !important;
        border-radius: 14px !important;
    }

    .kop-kpi-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
        border-radius: 10px !important;
    }

    .kop-kpi-value {
        font-size: 1.1rem !important;
    }

    .kop-kpi-label {
        font-size: 0.72rem !important;
    }

    .kop-admin-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    /* Responsive Data Tables */
    .kop-admin-table th,
    .kop-admin-table td {
        padding: 9px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* =========================================================================
   KOPERASI SIMPAN PINJAM (SMA 1 BARUNAWATI)
   Batas Maksimal Pinjaman Rp 3.000.000 & Iuran Wajib Rp 25.000/bln
   ========================================================================= */

/* Modal Container & Custom Scrollbar */
.kop-sp-modal-card {
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.15) !important;
    background: #0b1120 !important;
    border-radius: 20px !important;
}

.kop-sp-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.kop-sp-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

.kop-sp-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.35) transparent;
}

.kop-sp-modal-body::-webkit-scrollbar {
    width: 6px;
}
.kop-sp-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.kop-sp-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}
.kop-sp-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.55);
}

.kop-sp-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.75);
}

.kop-sp-btn-close-modal {
    border-radius: 10px !important;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.kop-sp-btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

/* Member Profile Card (Fintech Card) */
.kop-sp-member-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(30, 41, 59, 0.75) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.kop-sp-member-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.kop-sp-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
    flex-shrink: 0;
}

.kop-sp-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.kop-sp-name {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.kop-sp-badge-member {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kop-sp-badge-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kop-sp-role-desc {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.kop-sp-metrics-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kop-sp-metric-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.kop-sp-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.kop-sp-metric-card.green .kop-sp-metric-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.kop-sp-metric-card.amber .kop-sp-metric-icon {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.kop-sp-metric-card.blue .kop-sp-metric-icon {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.kop-sp-metric-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kop-sp-metric-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.kop-sp-metric-value.green {
    color: #34d399;
}
.kop-sp-metric-value.amber {
    color: #fbbf24;
}
.kop-sp-metric-value.blue {
    color: #38bdf8;
}

/* Sub Navigation Segmented Tabs */
.kop-sp-nav-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 18px;
}

.kop-sp-tab-btn {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.kop-sp-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.kop-sp-tab-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Monthly Due Card */
.kop-sp-due-card {
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    transition: all 0.2s ease;
}

.kop-sp-due-card.unpaid {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
}

.kop-sp-due-card.paid {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.kop-sp-due-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

.kop-sp-due-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.kop-sp-due-card.unpaid .kop-sp-due-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.kop-sp-due-card.paid .kop-sp-due-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.kop-sp-due-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #f8fafc;
}

.kop-sp-due-desc {
    margin: 0;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.kop-sp-due-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kop-sp-due-badge.badge-lunas {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.kop-sp-due-badge.badge-tunggak {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.kop-sp-due-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.kop-sp-due-amount-wrap {
    text-align: right;
}

.kop-sp-due-amount-label {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.kop-sp-due-amount {
    font-size: 1.55rem;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.5px;
}

.kop-btn-pay-due {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: all 0.22s ease;
}

.kop-btn-pay-due:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
}

.kop-sp-paid-notice {
    font-size: 0.85rem;
    font-weight: 800;
    color: #34d399;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Savings Cards Grid */
.kop-sp-savings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.kop-sp-savings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.kop-sp-savings-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.kop-sp-savings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.kop-sp-savings-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kop-sp-savings-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.kop-sp-savings-icon.wajib {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.kop-sp-savings-icon.sukarela {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.kop-sp-savings-title .title {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
}
.kop-sp-savings-title .sub {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
}

.kop-sp-savings-header .tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

.kop-sp-savings-num {
    font-size: 1.65rem;
    font-weight: 900;
    color: #34d399;
    letter-spacing: -0.5px;
    margin: 6px 0;
}

.kop-sp-savings-note {
    margin: 0 0 12px 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
}

.kop-sp-savings-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.kop-sp-btn-sm {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.kop-sp-btn-sm:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.kop-sp-btn-sm.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
}
.kop-sp-btn-sm.green:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

/* Loan Notice Banner */
.kop-sp-loan-banner {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.kop-sp-loan-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Loan Form Card & Form Elements */
.kop-sp-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 22px;
}

.kop-sp-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kop-sp-form-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.kop-sp-form-title {
    margin: 0 0 2px 0;
    color: #f8fafc;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.kop-sp-form-sub {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

.kop-sp-form-group {
    margin-bottom: 16px;
}

.kop-sp-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.kop-sp-label-sub {
    font-size: 0.74rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Custom Input Groups */
.kop-sp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.kop-sp-input-prefix {
    position: absolute;
    left: 14px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #10b981;
    pointer-events: none;
    z-index: 2;
}

.kop-sp-input-field {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 12px 16px 12px 46px !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
}

.kop-sp-input-field:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22) !important;
    background: rgba(15, 23, 42, 0.95) !important;
    outline: none !important;
}

/* Select Dropdown */
.kop-sp-select-wrap {
    position: relative;
    width: 100%;
}

.kop-sp-select-field {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 12px 40px 12px 16px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.kop-sp-select-field:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22) !important;
    outline: none !important;
}

.kop-sp-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.85rem;
}

/* Textarea */
.kop-sp-textarea-field {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
    color: #ffffff !important;
    font-family: inherit !important;
    resize: none !important;
    min-height: 70px !important;
    line-height: 1.45 !important;
    transition: all 0.2s ease !important;
}

.kop-sp-textarea-field:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22) !important;
    outline: none !important;
}

/* Presets */
.kop-sp-preset-grid,
.kop-sp-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.kop-sp-preset-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}

.kop-sp-preset-btn:hover {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
    transform: translateY(-1px);
}

.kop-sp-preset-btn.active {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.kop-sp-preset-btn.highlight {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

/* Simulation Preview Card */
.kop-sp-calc-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1.5px dashed rgba(16, 185, 129, 0.4);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 16px 0;
}

.kop-sp-calc-info {
    flex: 1;
}

.kop-sp-calc-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 2px;
}

.kop-sp-calc-desc {
    font-size: 0.76rem;
    color: #94a3b8;
}

.kop-sp-calc-val {
    font-size: 1.45rem;
    font-weight: 900;
    color: #34d399;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Submit Button */
.kop-sp-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.22s ease;
}

.kop-sp-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.55);
}

/* Active & Pending Loan Cards */
.kop-sp-active-loan-card,
.kop-sp-pending-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
}

.kop-sp-pending-card {
    text-align: center;
    padding: 34px 22px;
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(15, 23, 42, 0.7));
}

.kop-sp-loan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.kop-sp-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.kop-sp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Tables */
.kop-sp-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.kop-sp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.kop-sp-table th {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.kop-sp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    vertical-align: middle;
}

.kop-sp-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Pills */
.kop-badge-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.kop-badge-pill.green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.kop-badge-pill.blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.kop-badge-pill.amber {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.kop-badge-pill.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.kop-badge-pill.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Admin Sub Navigation */
.kop-sp-admin-subnav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.kop-sp-subtab-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.kop-sp-subtab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.kop-sp-subtab-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.25));
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
}

/* Mobile Responsive Adaptations (< 768px) */
@media (max-width: 768px) {
    .kop-sp-modal-card {
        max-width: 95% !important;
        max-height: 92vh !important;
        border-radius: 20px !important;
    }
    .kop-sp-modal-header {
        padding: 14px 16px !important;
    }
    .kop-sp-modal-body {
        padding: 14px 16px !important;
    }
    .kop-sp-member-card {
        padding: 14px 16px !important;
    }
    .kop-sp-metrics-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .kop-sp-savings-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .kop-sp-preset-grid,
    .kop-sp-presets {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .kop-sp-due-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .kop-sp-due-right {
        width: 100% !important;
        align-items: stretch !important;
        text-align: left !important;
        margin-top: 10px !important;
    }
    .kop-btn-pay-due {
        justify-content: center !important;
        width: 100% !important;
    }
    .kop-sp-calc-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

/* Light Theme Overrides */
[data-theme="light"] .kop-sp-modal-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .kop-sp-modal-header {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, #f8fafc 100%) !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-sp-modal-footer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-sp-btn-close-modal {
    background: #e2e8f0 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .kop-sp-member-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), #ffffff) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .kop-sp-name,
[data-theme="light"] .kop-sp-metric-value {
    color: #0f172a !important;
}

[data-theme="light"] .kop-sp-metrics-row {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-sp-metric-card {
    background: #ffffff !important;
}

[data-theme="light"] .kop-sp-nav-tabs {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-sp-tab-btn {
    color: #475569 !important;
}

[data-theme="light"] .kop-sp-tab-btn:hover {
    color: #0f172a !important;
    background: #e2e8f0 !important;
}

[data-theme="light"] .kop-sp-tab-btn.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
}

[data-theme="light"] .kop-sp-due-card.unpaid {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
}

[data-theme="light"] .kop-sp-due-card.paid {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
}

[data-theme="light"] .kop-sp-due-title,
[data-theme="light"] .kop-sp-due-amount {
    color: #0f172a !important;
}

[data-theme="light"] .kop-sp-due-desc {
    color: #475569 !important;
}

[data-theme="light"] .kop-sp-savings-card,
[data-theme="light"] .kop-sp-form-card,
[data-theme="light"] .kop-sp-active-loan-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-sp-savings-title .title,
[data-theme="light"] .kop-sp-form-title {
    color: #0f172a !important;
}

[data-theme="light"] .kop-sp-input-field,
[data-theme="light"] .kop-sp-select-field,
[data-theme="light"] .kop-sp-textarea-field {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .kop-sp-preset-btn {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .kop-sp-calc-box {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
}

[data-theme="light"] .kop-sp-calc-title {
    color: #065f46 !important;
}

[data-theme="light"] .kop-sp-table-wrap {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-sp-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .kop-sp-table td {
    color: #0f172a !important;
    border-color: #f1f5f9 !important;
}

/* Koperasi Product Photo Uploader */
#kopProdFotoCard {
    transition: all 0.2s ease;
}
#kopProdFotoCard:hover {
    border-color: rgba(16, 185, 129, 0.45) !important;
    background: rgba(15, 23, 42, 0.85) !important;
}
[data-theme="light"] #kopProdFotoCard {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] #kopProdFotoCard:hover {
    background: #f1f5f9 !important;
    border-color: #10b981 !important;
}
[data-theme="light"] #kopProdFotoFileName {
    color: #0f172a !important;
}


