/* ==========================================================================
   GARUDA CBT - MODERN CLEAN DESIGN SYSTEM & MOBILE ENHANCEMENTS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --g-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Core Neutral Palette */
    --g-bg-page: #f8fafc;
    --g-card-bg: #ffffff;
    --g-card-border: #e2e8f0;
    --g-card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 12px 0 rgba(0, 0, 0, 0.03);
    --g-card-shadow-hover: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    
    /* Typography Colors */
    --g-text-heading: #0f172a;
    --g-text-body: #334155;
    --g-text-muted: #64748b;
    --g-text-subtle: #94a3b8;
    
    /* Primary Accent - Garuda Plus Logo (Purple & Cyan/Jade Gradient Spectrum) */
    --g-primary: #7c3aed;
    --g-primary-hover: #6d28d9;
    --g-primary-light: #f5f3ff;
    --g-primary-border: #ddd6fe;
    
    /* Garuda Plus Brand Gradients */
    --g-logo-gradient: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #10b981 100%);
    --g-logo-gradient-vibrant: linear-gradient(135deg, #c026d3 0%, #7c3aed 40%, #2563eb 80%, #059669 100%);
    --g-logo-purple: #7c3aed;
    --g-logo-magenta: #c026d3;
    --g-logo-blue: #2563eb;
    --g-logo-cyan: #06b6d4;
    --g-logo-emerald: #10b981;

    /* Logo Inspired Pastel Theme Accents */
    --g-blue-bg: #eff6ff;
    --g-blue-text: #2563eb;
    --g-blue-border: #bfdbfe;
    
    --g-indigo-bg: #eef2ff;
    --g-indigo-text: #4f46e5;
    --g-indigo-border: #c7d2fe;
    
    --g-emerald-bg: #ecfdf5;
    --g-emerald-text: #059669;
    --g-emerald-border: #a7f3d0;
    
    --g-purple-bg: #f5f3ff;
    --g-purple-text: #7c3aed;
    --g-purple-border: #ddd6fe;

    --g-fuchsia-bg: #fdf4ff;
    --g-fuchsia-text: #c026d3;
    --g-fuchsia-border: #f5d0fe;

    --g-cyan-bg: #ecfeff;
    --g-cyan-text: #0891b2;
    --g-cyan-border: #a5f3fc;
    
    --g-amber-bg: #fffbeb;
    --g-amber-text: #d97706;
    --g-amber-border: #fde68a;
    
    --g-rose-bg: #fff1f2;
    --g-rose-text: #e11d48;
    --g-rose-border: #ffe4e6;
    
    /* Sidebar */
    --g-sidebar-width: 260px;
    --g-radius-lg: 16px;
    --g-radius-md: 12px;
    --g-radius-sm: 8px;
}

/* Base Typography Reset */
body, 
.main-sidebar, 
.main-header, 
.content-wrapper,
.modal-content,
.btn,
.form-control {
    font-family: var(--g-font-sans) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--g-bg-page) !important;
    color: var(--g-text-body);
}

.content-wrapper {
    background-color: var(--g-bg-page) !important;
}

/* Lucide Icon Standard Styling */
[data-lucide],
.lucide {
    width: 1.15rem;
    height: 1.15rem;
    stroke-width: 1.9px;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.lucide-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.lucide-xl {
    width: 2rem;
    height: 2rem;
}

/* ==========================================================================
   NAVBAR MODERNIZATION
   ========================================================================== */

.main-header.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid var(--g-card-border) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03) !important;
    padding: 0.6rem 1.25rem !important;
    min-height: 58px;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
    z-index: 1030;
}

/* Pushmenu Hamburger Button */
.main-header .nav-link[data-widget="pushmenu"] {
    color: #475569 !important;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--g-radius-sm);
    background: #f1f5f9;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.75rem;
    border: 1px solid #e2e8f0;
}

.main-header .nav-link[data-widget="pushmenu"]:hover {
    background: #e2e8f0;
    color: var(--g-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Modern TP & Semester Badge - Garuda Plus Gradient Outline */
.navbar-badge-tp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #c026d3 0%, #2563eb 50%, #10b981 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.08);
}

.navbar-badge-tp [data-lucide] {
    width: 1rem;
    height: 1rem;
    color: var(--g-primary);
}

/* Modern Digital Clock */
.navbar-clock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid var(--g-card-border);
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.navbar-clock-badge [data-lucide] {
    width: 1rem;
    height: 1rem;
    color: var(--g-primary);
}

/* Modern Navbar Profile Pill (Beside Clock) */
.navbar-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid var(--g-card-border);
    padding: 3px 12px 3px 4px;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    line-height: 1.2;
}

.navbar-profile-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
    color: #0f172a;
}

.navbar-profile-pill:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.navbar-profile-avatar {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.navbar-profile-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--g-primary, #7c3aed);
    background: #f1f5f9;
}

.navbar-profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.navbar-profile-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.2px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-profile-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1;
}

.navbar-profile-role .status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

/* ==========================================================================
   SIDEBAR MODERNIZATION & MOBILE FIXES
   ========================================================================== */

.main-sidebar {
    background: #ffffff !important;
    border-right: 1px solid var(--g-card-border) !important;
    box-shadow: 2px 0 16px rgba(15, 23, 42, 0.04) !important;
    width: var(--g-sidebar-width) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Brand Link */
.main-sidebar .brand-link {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1rem 1.25rem !important;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.main-sidebar .brand-link .brand-image {
    max-height: 36px;
    margin-right: 0.65rem;
    border-radius: 8px;
}

.main-sidebar .brand-link .brand-text {
    font-weight: 800 !important;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #c026d3 0%, #7c3aed 45%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

/* Mobile Sidebar Close Button */
.sidebar-mobile-close {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-mobile-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ==========================================================================
   SIDEBAR SCROLLBAR (SINGLE CLEAN SLIM MODERN SCROLLBAR)
   ========================================================================== */

/* 1. Cegah scrollbar native browser muncul di dalam kontainer OverlayScrollbars
      (Inilah biang kerok yang sebelumnya memunculkan 2 scrollbar bertumpuk di sidebar) */
.main-sidebar .os-viewport::-webkit-scrollbar,
.os-viewport::-webkit-scrollbar,
.main-sidebar.os-host::-webkit-scrollbar,
.main-sidebar .sidebar.os-host::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* 2. Tampilkan TEPAT 1 scrollbar vertikal OverlayScrollbars yang ramping, bersih, dan modern */
.main-sidebar .os-scrollbar-vertical,
.main-sidebar .sidebar .os-scrollbar-vertical {
    display: block !important;
    visibility: visible !important;
    width: 6px !important;
    right: 2px !important;
    top: 66px !important; /* Di bawah logo brand */
    bottom: 8px !important;
    padding: 0 !important;
    opacity: 0.65 !important;
    transition: opacity 0.2s ease, width 0.2s ease !important;
    z-index: 1039 !important;
}

/* Jangan pernah tampilkan scrollbar jika unusable (konten menu tidak melebihi tinggi layar) */
.main-sidebar .os-scrollbar-unusable,
.main-sidebar .os-scrollbar-vertical.os-scrollbar-unusable {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.main-sidebar:hover .os-scrollbar-vertical:not(.os-scrollbar-unusable),
.main-sidebar .os-scrollbar-vertical:not(.os-scrollbar-unusable):hover {
    opacity: 1 !important;
    width: 7px !important;
}

.main-sidebar .os-scrollbar-vertical .os-scrollbar-track,
.main-sidebar .sidebar .os-scrollbar-vertical .os-scrollbar-track {
    background: transparent !important;
    border: none !important;
}

.main-sidebar .os-scrollbar-vertical .os-scrollbar-handle,
.main-sidebar .sidebar .os-scrollbar-vertical .os-scrollbar-handle,
.main-sidebar .os-theme-light > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle,
.main-sidebar .os-theme-dark > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle {
    background: #cbd5e1 !important;
    border-radius: 9999px !important;
    min-height: 36px !important;
    opacity: 1 !important;
    transition: background 0.2s ease !important;
}

.main-sidebar:hover .os-scrollbar-vertical .os-scrollbar-handle,
.main-sidebar .os-scrollbar-vertical .os-scrollbar-handle:hover {
    background: #94a3b8 !important;
}

.main-sidebar .os-scrollbar-vertical .os-scrollbar-handle.active,
.main-sidebar .os-scrollbar-vertical .os-scrollbar-handle:active {
    background: #64748b !important;
}

/* Sembunyikan horizontal scrollbar sepenuhnya agar tidak memunculkan artefak bulatan abu-abu */
.main-sidebar .os-scrollbar-horizontal,
.main-sidebar .sidebar .os-scrollbar-horizontal,
.sidebar .os-scrollbar-horizontal,
.os-scrollbar-horizontal {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.main-sidebar .os-scrollbar-horizontal *,
.sidebar .os-scrollbar-horizontal *,
.os-scrollbar-horizontal * {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* 3. Fallback HANYA bila OverlayScrollbars tidak aktif pada browser tertentu */
.main-sidebar .sidebar:not(.os-host) {
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}
.main-sidebar .sidebar:not(.os-host)::-webkit-scrollbar {
    width: 6px !important;
}
.main-sidebar .sidebar:not(.os-host)::-webkit-scrollbar-track {
    background: transparent !important;
}
.main-sidebar .sidebar:not(.os-host)::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 9999px !important;
}
.main-sidebar .sidebar:not(.os-host)::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* 4. Global fallback for any scrollable content */
*::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* User Profile Panel in Sidebar */
.main-sidebar .sidebar .user-panel {
    background: #f8fafc;
    border: 1px solid #f1f5f9 !important;
    border-radius: var(--g-radius-md);
    padding: 0.75rem !important;
    margin: 1rem 0.85rem !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.main-sidebar .sidebar .user-panel .image {
    padding-left: 0 !important;
}

.main-sidebar .sidebar .user-panel .image img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.main-sidebar .sidebar .user-panel .info {
    padding: 0 !important;
    overflow: hidden;
}

.main-sidebar .sidebar .user-panel .info a {
    color: var(--g-text-heading) !important;
    font-weight: 600;
    font-size: 0.88rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    margin-top: 2px;
}

.user-status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

/* Sidebar Navigation Items */
.nav-sidebar {
    padding: 0 0.5rem 2rem 0.5rem !important;
}

.nav-sidebar .nav-header {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.1rem 0.85rem 0.35rem !important;
}

.nav-sidebar .nav-item {
    margin-bottom: 2px;
}

.nav-sidebar .nav-link {
    border-radius: var(--g-radius-sm) !important;
    padding: 0.6rem 0.85rem !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-sidebar .nav-link:hover {
    background: #f1f5f9 !important;
    color: var(--g-text-heading) !important;
    transform: translateX(3px);
}

.nav-sidebar .nav-link.active,
.main-sidebar.sidebar-light-teal .nav-sidebar > .nav-item > .nav-link.active,
.main-sidebar .nav-sidebar > .nav-item > .nav-link.active {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3) !important;
    font-weight: 600 !important;
    transform: none !important;
}

.nav-sidebar .nav-link.active [data-lucide],
.main-sidebar .nav-sidebar > .nav-item > .nav-link.active [data-lucide] {
    color: #ffffff !important;
}

.nav-sidebar .nav-link > .nav-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin-right: 0.75rem !important;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-sidebar .nav-link p {
    margin: 0 !important;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-sidebar .nav-arrow {
    width: 0.95rem !important;
    height: 0.95rem !important;
    transition: transform 0.25s ease !important;
    color: #94a3b8;
}

.nav-item.menu-open > .nav-link .nav-arrow {
    transform: rotate(90deg) !important;
    color: #475569;
}

.nav-item.menu-open > .nav-link.active .nav-arrow {
    color: #ffffff !important;
}

/* Submenu indentation */
.nav-treeview {
    margin-left: 1.5rem !important;
    padding-left: 0.4rem !important;
    border-left: 2px solid #e2e8f0;
}

.nav-treeview .nav-link {
    font-size: 0.82rem !important;
    padding: 0.45rem 0.75rem !important;
    color: #64748b !important;
}

.nav-treeview .nav-link.active {
    background: #f5f3ff !important;
    color: #7c3aed !important;
    border: 1px solid #ddd6fe !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

.nav-treeview .nav-link.active [data-lucide] {
    color: #7c3aed !important;
}

/* ==========================================================================
   MOBILE MENU OVERLAY & RESPONSIVE BEHAVIOR
   ========================================================================== */

@media (max-width: 991.98px) {
    .sidebar-mobile-close {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: auto !important;
        z-index: 20;
    }

    .sidebar-mobile-close svg {
        pointer-events: none;
    }
    
    .main-sidebar {
        z-index: 1045 !important;
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translate3d(-100%, 0, 0) !important;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }
    
    body.sidebar-open .main-sidebar {
        transform: translate3d(0, 0, 0) !important;
    }
    
    /* Elegant Blur Overlay */
    #sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(15, 23, 42, 0.5) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 1040 !important;
        display: none;
        cursor: pointer;
        pointer-events: auto !important;
    }
    
    body.sidebar-open #sidebar-overlay {
        display: block !important;
    }
    
    /* Navbar Mobile Fit */
    .main-header.navbar {
        padding: 0.5rem 0.85rem !important;
    }
    
    .navbar-badge-tp {
        padding: 0.35rem 0.6rem;
        font-size: 0.72rem;
    }
    
    .navbar-badge-tp .tp-full {
        display: none;
    }
    
    .navbar-badge-tp .tp-short {
        display: inline;
    }
    
    .navbar-clock-badge {
        padding: 0.35rem 0.6rem;
        font-size: 0.74rem;
    }
}

@media (min-width: 992px) {
    .navbar-badge-tp .tp-short {
        display: none;
    }

    /* Hide pushmenu toggle on PC / Desktop */
    .main-header .pushmenu-btn,
    .main-header [data-widget="pushmenu"],
    .main-header .pushmenu-item {
        display: none !important;
    }

    #sidebar-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   DASHBOARD HERO & WELCOME SECTION
   ========================================================================== */

.dashboard-hero {
    background: linear-gradient(135deg, #090d16 0%, #1e1b4b 55%, #0f172a 100%);
    border-radius: var(--g-radius-lg);
    padding: 1.75rem 2rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.25);
    margin-bottom: 1.75rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(192, 38, 211, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 15%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.dashboard-hero > .row {
    position: relative;
    z-index: 2;
}

/* --- PURE CSS NEON RAIN ANIMATION FOR DASHBOARD HERO --- */
.dashboard-hero .neon-rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.dashboard-hero .rain-drop {
    position: absolute;
    top: -40px;
    left: var(--left, 50%);
    width: 2px;
    height: var(--length, 24px);
    border-radius: 9999px;
    animation: heroRainFall var(--duration, 1.6s) linear infinite;
    animation-delay: var(--delay, 0s);
    filter: drop-shadow(0 0 5px currentColor);
    opacity: 0.85;
}

/* Variasi Warna Gradien Neon */
.dashboard-hero .drop-cyan {
    background: linear-gradient(to bottom, transparent, #06b6d4, #22d3ee);
    color: #22d3ee;
}
.dashboard-hero .drop-magenta {
    background: linear-gradient(to bottom, transparent, #d946ef, #f43f5e);
    color: #f43f5e;
}
.dashboard-hero .drop-purple {
    background: linear-gradient(to bottom, transparent, #8b5cf6, #a855f7);
    color: #a855f7;
}
.dashboard-hero .drop-emerald {
    background: linear-gradient(to bottom, transparent, #10b981, #34d399);
    color: #34d399;
}
.dashboard-hero .drop-gold {
    background: linear-gradient(to bottom, transparent, #f59e0b, #fbbf24);
    color: #fbbf24;
}

@keyframes heroRainFall {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
    }
    85% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(260px);
        opacity: 0;
    }
}

.hero-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.4px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.hero-badge-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.pulse-beacon {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-date-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.55rem 1rem;
    border-radius: var(--g-radius-md);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .dashboard-hero {
        padding: 1.35rem 1.25rem !important;
    }
    .hero-title {
        font-size: 1.25rem !important;
    }
    .hero-date-box {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   CLEAN METRIC / STAT CARDS
   ========================================================================== */

.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1399.98px) {
    .stat-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .stat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
}

.clean-stat-card {
    background: #ffffff;
    border: 1px solid var(--g-card-border);
    border-radius: var(--g-radius-lg);
    padding: 1.05rem 1.15rem;
    box-shadow: var(--g-card-shadow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 122px;
    position: relative;
    overflow: hidden;
}

.clean-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--g-card-shadow-hover);
    border-color: #cbd5e1;
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.4rem;
}

.stat-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--g-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.stat-icon-chip {
    width: 34px;
    height: 34px;
    border-radius: var(--g-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.stat-icon-chip [data-lucide] {
    width: 1.05rem;
    height: 1.05rem;
}

.clean-stat-card:hover .stat-icon-chip {
    transform: scale(1.08);
}

.stat-chip-blue {
    background: var(--g-blue-bg);
    color: var(--g-blue-text);
    border: 1px solid var(--g-blue-border);
}

.stat-chip-indigo {
    background: var(--g-indigo-bg);
    color: var(--g-indigo-text);
    border: 1px solid var(--g-indigo-border);
}

.stat-chip-emerald {
    background: var(--g-emerald-bg);
    color: var(--g-emerald-text);
    border: 1px solid var(--g-emerald-border);
}

.stat-chip-purple {
    background: var(--g-purple-bg);
    color: var(--g-purple-text);
    border: 1px solid var(--g-purple-border);
}

.stat-chip-amber {
    background: var(--g-amber-bg);
    color: var(--g-amber-text);
    border: 1px solid var(--g-amber-border);
}

.stat-chip-rose {
    background: var(--g-rose-bg);
    color: var(--g-rose-text);
    border: 1px solid var(--g-rose-border);
}

.stat-chip-fuchsia {
    background: var(--g-fuchsia-bg);
    color: var(--g-fuchsia-text);
    border: 1px solid var(--g-fuchsia-border);
}

.stat-chip-cyan {
    background: var(--g-cyan-bg);
    color: var(--g-cyan-text);
    border: 1px solid var(--g-cyan-border);
}

.stat-card-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--g-text-heading);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.stat-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--g-text-muted);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.stat-card-link [data-lucide] {
    width: 0.85rem;
    height: 0.85rem;
    transition: transform 0.2s ease;
}

.clean-stat-card:hover .stat-card-link {
    color: var(--g-primary);
}

.clean-stat-card:hover .stat-card-link [data-lucide] {
    transform: translateX(3px);
}

/* ==========================================================================
   CLEAN CONTENT CARDS (PENILAIAN, JADWAL, INFO)
   ========================================================================== */

.clean-card {
    background: #ffffff !important;
    border: 1px solid var(--g-card-border) !important;
    border-radius: var(--g-radius-lg) !important;
    box-shadow: var(--g-card-shadow) !important;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.clean-card.h-100 {
    height: 100% !important;
    margin-bottom: 0 !important;
}

.clean-card.mb-0 {
    margin-bottom: 0 !important;
}

.clean-card > .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.clean-card:hover {
    box-shadow: var(--g-card-shadow-hover) !important;
}

.clean-card .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.1rem 1.35rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clean-card-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--g-text-heading) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}

.clean-card-header-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--g-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mini Stats Grid inside Penilaian - Spacious 2x2 Grid */
.penilaian-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 1600px) {
    .penilaian-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.penilaian-mini-box {
    background: #f8fafc;
    border: 1px solid var(--g-card-border);
    border-radius: var(--g-radius-md);
    padding: 0.85rem 0.65rem;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: block;
}

.penilaian-mini-box:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.penilaian-mini-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--g-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.penilaian-mini-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin: 0;
}

/* Modern Token Box */
.token-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--g-card-border);
    border-radius: var(--g-radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    margin-top: 0.75rem;
}

.token-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.token-value-display {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 4px;
    color: #0f172a;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: var(--g-radius-sm);
    padding: 0.5rem 1rem;
    display: inline-block;
    min-width: 160px;
    max-width: 100%;
    margin-bottom: 0.75rem;
    user-select: all;
    cursor: pointer;
    transition: all 0.2s ease;
    word-break: break-all;
}

.token-value-display:hover {
    border-color: var(--g-primary);
    background: #f5f3ff;
    color: #7c3aed;
}

/* Modern Empty State */
.clean-empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: auto 0;
    width: 100%;
}

.empty-state-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--g-text-heading);
    margin-bottom: 0.25rem;
}

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

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   GLOBAL CLEAN REFINEMENTS (TABS, TABLES, BUTTONS)
   ========================================================================== */

.nav-tabs {
    border-bottom: 1px solid var(--g-card-border);
}

.nav-tabs .nav-link {
    border: none !important;
    border-radius: var(--g-radius-sm) !important;
    color: var(--g-text-muted) !important;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem !important;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--g-text-heading) !important;
    background: #f1f5f9;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25) !important;
}

/* Timetable Clean Borders & Horizontal Expansion */
.my-timetable {
    min-width: 520px;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
}

.my-timetable td {
    border-color: #f1f5f9 !important;
    padding: 0.35rem !important;
}

.my-timetable .column-time {
    color: #64748b;
    font-size: 0.72rem;
    background: #f8fafc;
    min-width: 55px;
    width: 55px;
    font-weight: 700;
}

.my-timetable .frozen-column {
    background-color: #f8fafc !important;
    border-right: 1px solid #e2e8f0;
}

.my-timetable .frozen-column-2,
.my-timetable .frozen-column-3 {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0;
}

/* Horizontal Class Pills for E-Learning */
.nav-pills.kelas-pills-bar {
    gap: 6px;
    padding-bottom: 4px;
}

.nav-pills.kelas-pills-bar .nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-pills.kelas-pills-bar .nav-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.nav-pills.kelas-pills-bar .nav-link.active {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25) !important;
}

/* Table Clean Component */
.table-clean {
    min-width: 760px;
    margin-bottom: 0 !important;
}

.table-clean th {
    white-space: nowrap !important;
}

.table-clean td {
    vertical-align: middle !important;
}

.td-sesi, .td-jam, .td-pengawas {
    white-space: nowrap !important;
}

.td-mapel {
    min-width: 150px;
}

/* Global Card Modern Overrides */
.card:not(.clean-card) {
    border-radius: var(--g-radius-lg) !important;
    border: 1px solid var(--g-card-border) !important;
    box-shadow: var(--g-card-shadow) !important;
}

.card:not(.clean-card) .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: var(--g-text-heading) !important;
}

/* ==========================================================================
   COMPREHENSIVE MODERN TABLES DESIGN SYSTEM
   ========================================================================== */

/* Table Base */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--g-text-body);
    vertical-align: middle;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table td, 
.table th {
    padding: 0.75rem 0.95rem;
    vertical-align: middle;
    border-top: 1px solid var(--g-card-border);
    border-color: var(--g-card-border) !important;
    font-size: 0.85rem;
}

.table-sm td, 
.table-sm th {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
}

/* Neutralize legacy alert styling on thead & table headers */
table thead th,
table thead tr th,
.table thead th,
.table thead tr.alert th,
.table thead th.alert,
.table thead tr.alert,
.table-bordered thead th,
.table-bordered thead td,
th.alert,
td.alert {
    background-color: #f8fafc !important;
    background-image: none !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border: 1px solid #e2e8f0 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-radius: 0 !important; /* Jangan buat kolom jadi rounded bubble terpisah */
    margin: 0 !important;
    padding: 0.65rem 0.85rem !important;
    box-shadow: none !important;
    text-shadow: none !important;
    vertical-align: middle !important;
    height: auto !important;
}

/* Sudut membulat hanya pada ujung terluar wrapper tabel */
.table thead tr th:first-child,
.table-bordered thead tr th:first-child {
    border-top-left-radius: var(--g-radius-md) !important;
}

.table thead tr th:last-child,
.table-bordered thead tr th:last-child {
    border-top-right-radius: var(--g-radius-md) !important;
}

/* Zebra Striping */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafbfc !important;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff !important;
}

/* Row Hover Interaction */
.table-hover tbody tr:hover,
.table tbody tr:hover {
    background-color: #f1f5f9 !important;
    transition: background-color 0.15s ease-in-out;
}

/* Rounded Border Wrapper */
.table-responsive {
    border: 1px solid var(--g-card-border);
    border-radius: var(--g-radius-md);
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.table-responsive > .table {
    margin-bottom: 0 !important;
    border: none !important;
}

/* DataTables Modernization */
.dataTables_wrapper {
    padding: 0.5rem 0;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--g-radius-sm) !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.82rem !important;
    background: #ffffff !important;
    outline: none !important;
    transition: all 0.2s ease;
    min-width: 220px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--g-primary) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--g-radius-sm) !important;
    padding: 0.35rem 1.75rem 0.35rem 0.65rem !important;
    font-size: 0.82rem !important;
    background-color: #ffffff !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.8rem;
    color: var(--g-text-muted);
    padding-top: 0.85rem !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--g-radius-sm) !important;
    border: 1px solid transparent !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    color: var(--g-primary) !important;
    border-color: #e2e8f0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border-color: #7c3aed !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25) !important;
}

/* Status Badges in Tables */
.badge-status-danger {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #b91c1c;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 9999px;
}

.badge-status-warning {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #b45309;
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 9999px;
}

.badge-status-success {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #047857;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
}

.badge-status-info {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #0369a1;
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 9999px;
}

/* ==========================================================================
   COMPREHENSIVE BUTTONS MODERNIZATION
   ========================================================================== */

.btn {
    font-family: var(--g-font-sans) !important;
    font-weight: 600 !important;
    border-radius: var(--g-radius-sm) !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.84rem !important;
    letter-spacing: 0.1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
    outline: none !important;
}

/* Sizes */
.btn-sm {
    padding: 0.32rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
}

.btn-lg {
    padding: 0.65rem 1.35rem !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
}

.btn-xs {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.72rem !important;
    border-radius: 4px !important;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%) !important;
    border-color: #6d28d9 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-success:hover,
.btn-success:focus {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-danger {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover,
.btn-danger:focus {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-warning {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover,
.btn-warning:focus {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-info {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.btn-info:hover,
.btn-info:focus {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
    background: #64748b !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #475569 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

.btn-light,
.btn-default {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-light:hover,
.btn-default:hover,
.btn-light:focus,
.btn-default:focus {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* Outline Buttons */
.btn-outline-primary {
    border-color: #7c3aed !important;
    color: #7c3aed !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* ==========================================================================
   COMPREHENSIVE FORMS MODERNIZATION
   ========================================================================== */

/* Form Group & Labels */
.form-group {
    margin-bottom: 1.15rem !important;
}

label,
.col-form-label {
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 0.35rem !important;
    display: inline-block;
}

/* Form Controls (Inputs, Textarea, Select) */
.form-control {
    height: 38px;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--g-radius-sm) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 80px;
}

.form-control-sm {
    height: 32px !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
}

.form-control-lg {
    height: 46px !important;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
}

/* ==========================================================================
   INPUTS WITH ICONS (PREVENT ICON AND PLACEHOLDER OVERLAPPING)
   ========================================================================== */
.search-field-container,
.filter-input-wrapper,
.has-icon-left,
.input-icon-left {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.search-field-container > i,
.search-field-container > .fas,
.search-field-container > .far,
.search-field-container > .fa,
.search-field-container .search-icon,
.filter-input-wrapper > i,
.filter-input-wrapper > .fas,
.filter-input-wrapper > .far,
.filter-input-wrapper > .fa,
.filter-input-wrapper .filter-input-icon,
.has-icon-left > i,
.has-icon-left > .fas,
.has-icon-left > .far,
.has-icon-left > .fa,
.input-icon-left > i,
.input-icon-left > .fas,
.input-icon-left > .far,
.input-icon-left > .fa {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    pointer-events: none !important;
    z-index: 4 !important;
    line-height: 1 !important;
    width: 16px !important;
    text-align: center !important;
}

.search-field-container input,
.search-field-container input.form-control,
.search-field-container input.form-control-sm,
.filter-input-wrapper input,
.filter-input-wrapper input.form-control,
.filter-input-wrapper input.form-control-sm,
.filter-input-wrapper .filter-input-field,
.has-icon-left input,
.has-icon-left input.form-control,
.has-icon-left input.form-control-sm,
.input-icon-left input,
.input-icon-left input.form-control,
.input-icon-left input.form-control-sm {
    padding-left: 38px !important;
}

.search-field-container input,
.search-field-container input.form-control,
.search-field-container input.form-control-sm {
    padding-right: 32px !important;
}

.search-field-container .btn-clear-search {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 4px !important;
    z-index: 5 !important;
}
.search-field-container .btn-clear-search:hover {
    color: #ef4444 !important;
}

.form-control:focus {
    border-color: var(--g-primary) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    font-size: 0.82rem;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
    cursor: not-allowed;
    opacity: 0.85;
}

/* Input Groups */
.input-group {
    border-radius: var(--g-radius-sm);
}

.input-group-text {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    font-size: 0.82rem !important;
    padding: 0.45rem 0.85rem !important;
}

.input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group > .input-group-prepend > .input-group-text {
    border-top-left-radius: var(--g-radius-sm) !important;
    border-bottom-left-radius: var(--g-radius-sm) !important;
    border-right: 0 !important;
}

.input-group > .input-group-append > .input-group-text,
.input-group > .input-group-append > .btn {
    border-top-right-radius: var(--g-radius-sm) !important;
    border-bottom-right-radius: var(--g-radius-sm) !important;
    border-left: 0 !important;
}

/* Select2 Modern Overrides */
.select2-container--bootstrap4 .select2-selection {
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--g-radius-sm) !important;
    min-height: 38px !important;
    padding: 0.35rem 0.5rem !important;
    font-size: 0.85rem !important;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: var(--g-primary) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

.select2-dropdown {
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--g-radius-sm) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
    font-size: 0.85rem !important;
}

.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
    background-color: var(--g-primary) !important;
    color: #ffffff !important;
}

/* Modals (Clean & Floating) */
.modal-content {
    border-radius: var(--g-radius-lg) !important;
    border: 1px solid var(--g-card-border) !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18) !important;
    overflow: hidden;
}

.modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.15rem 1.5rem !important;
}

.modal-title {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--g-text-heading) !important;
}

.modal-body {
    padding: 1.5rem !important;
    background: #ffffff;
}

.modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 0.85rem 1.5rem !important;
}

/* Custom Alert Messages */
.alert {
    border-radius: var(--g-radius-md) !important;
    font-size: 0.82rem !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid transparent;
}

.alert-default-warning,
.alert-warning {
    background-color: #fefce8 !important;
    border-color: #fef08a !important;
    color: #854d0e !important;
}

.alert-default-danger,
.alert-danger {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

.alert-default-success,
.alert-success {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}

.alert-default-info,
.alert-info {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

/* ==========================================================================
   COLUMN GRID SPACING & MASTERSUBCARD ENHANCEMENTS
   ========================================================================== */

.master-subcard {
    background: #ffffff;
    border-radius: var(--g-radius-md) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

/* Fallback: ensure clean margin gap if border/alert classes are on grid columns */
.row > [class*="col-"].alert,
.row > [class*="col-"].border {
    margin-bottom: 1.25rem !important;
}

/* ==========================================================================
   GLOBAL 1:1 SOFT ACTION BUTTONS IN TABLES
   ========================================================================== */

/* Spacing between action buttons in table cells */
.table td .btn-group,
.table td .btn-group-xs,
.table td .btn-group-sm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.table td .btn-group > .btn,
.table td .btn-group-xs > .btn,
.table td .btn-group-sm > .btn {
    margin-left: 0 !important;
    border-radius: 8px !important;
}

/* Responsive Action Buttons inside Tables */
.table td .btn,
.table th .btn,
.table td a.btn,
.table td button.btn {
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: 28px !important;
    aspect-ratio: auto !important;
    padding: 0.28rem 0.68rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 8px !important;
    margin: 2px !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
}

/* 1:1 Square Soft Action Buttons: Only for icon-only action buttons */
.table td .btn-action-square,
.table td a.btn-action-square,
.table td button.btn-action-square,
.table td .btn-action-icon,
.table td .btn-square,
.table td .btn-icon-only,
.table td .btn.btn-icon,
.table td a[class*="btn-warning"],
.table td button[class*="btn-warning"],
.table td a[class*="btn-danger"],
.table td button[class*="btn-danger"],
.table td a[class*="btn-info"],
.table td button[class*="btn-info"],
.table td a[class*="btn-primary"]:not(.btn-block):not([type="submit"]),
.table td button[class*="btn-primary"]:not(.btn-block):not([type="submit"]) {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0 !important; /* Hide legacy button text while preserving icons */
    line-height: 1 !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: none !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Center icons inside action buttons */
.table td .btn-action-square i,
.table td .btn-action-square [data-lucide],
.table td .btn-action-square svg,
.table td .btn-action-icon i,
.table td .btn-action-icon [data-lucide],
.table td .btn-action-icon svg,
.table td a[class*="btn-"] i,
.table td button[class*="btn-"] i {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
}

/* 1. SOFT WARNING / EDIT BUTTON */
.table td .btn-warning,
.table td a.btn-warning,
.table td button.btn-warning,
.table td .btn-soft-amber,
.table td .btn-soft-warning,
.table td .btn-edit,
.table td .editRecord {
    background-color: #fffbeb !important;
    color: #d97706 !important;
    border-color: #fde68a !important;
}

.table td .btn-warning i,
.table td a.btn-warning i,
.table td button.btn-warning i,
.table td .btn-soft-amber i,
.table td .btn-soft-warning i,
.table td .btn-edit i,
.table td .editRecord i,
.table td .btn-warning .text-white {
    color: #d97706 !important;
}

.table td .btn-warning:hover,
.table td .btn-warning:focus,
.table td a.btn-warning:hover,
.table td button.btn-warning:hover,
.table td .btn-soft-amber:hover,
.table td .btn-soft-warning:hover,
.table td .btn-edit:hover,
.table td .editRecord:hover {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #fcd34d !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.18) !important;
    transform: translateY(-1.5px) !important;
}

.table td .btn-warning:hover i,
.table td a.btn-warning:hover i,
.table td button.btn-warning:hover i,
.table td .btn-soft-amber:hover i,
.table td .btn-soft-warning:hover i,
.table td .btn-edit:hover i,
.table td .editRecord:hover i,
.table td .btn-warning:hover .text-white {
    color: #b45309 !important;
}

/* 2. SOFT DANGER / DELETE BUTTON */
.table td .btn-danger,
.table td a.btn-danger,
.table td button.btn-danger,
.table td .btn-soft-rose,
.table td .btn-soft-danger,
.table td .btn-hapus,
.table td .deleteRecord,
.table td .hapuskelas {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
    border-color: #fecdd3 !important;
}

.table td .btn-danger i,
.table td a.btn-danger i,
.table td button.btn-danger i,
.table td .btn-soft-rose i,
.table td .btn-soft-danger i,
.table td .btn-hapus i,
.table td .deleteRecord i,
.table td .hapuskelas i,
.table td .btn-danger .text-white {
    color: #e11d48 !important;
}

.table td .btn-danger:hover,
.table td .btn-danger:focus,
.table td a.btn-danger:hover,
.table td button.btn-danger:hover,
.table td .btn-soft-rose:hover,
.table td .btn-soft-danger:hover,
.table td .btn-hapus:hover,
.table td .deleteRecord:hover,
.table td .hapuskelas:hover {
    background-color: #ffe4e6 !important;
    color: #be123c !important;
    border-color: #fda4af !important;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.18) !important;
    transform: translateY(-1.5px) !important;
}

.table td .btn-danger:hover i,
.table td a.btn-danger:hover i,
.table td button.btn-danger:hover i,
.table td .btn-soft-rose:hover i,
.table td .btn-soft-danger:hover i,
.table td .btn-hapus:hover i,
.table td .deleteRecord:hover i,
.table td .hapuskelas:hover i,
.table td .btn-danger:hover .text-white {
    color: #be123c !important;
}

/* 3. SOFT PRIMARY BUTTON */
.table td .btn-primary,
.table td a.btn-primary,
.table td button.btn-primary {
    background: rgba(124, 58, 237, 0.12) !important;
    color: #7c3aed !important;
    border-color: rgba(124, 58, 237, 0.25) !important;
}

.table td .btn-primary i,
.table td .btn-primary .text-white {
    color: #7c3aed !important;
}

.table td .btn-primary:hover,
.table td .btn-primary:focus {
    background: #7c3aed !important;
    color: #ffffff !important;
    border-color: #7c3aed !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3) !important;
    transform: translateY(-1px);
}

.table td .btn-primary:hover i,
.table td .btn-primary:hover .text-white {
    color: #ffffff !important;
}

/* 4. SOFT SUCCESS BUTTON */
.table td .btn-success,
.table td a.btn-success,
.table td button.btn-success {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

.table td .btn-success i,
.table td .btn-success .text-white {
    color: #059669 !important;
}

.table td .btn-success:hover,
.table td .btn-success:focus {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

.table td .btn-success:hover i,
.table td .btn-success:hover .text-white {
    color: #ffffff !important;
}

/* 5. SOFT INFO BUTTON */
.table td .btn-info,
.table td a.btn-info,
.table td button.btn-info {
    background: rgba(6, 182, 212, 0.12) !important;
    color: #0891b2 !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
}

.table td .btn-info i,
.table td .btn-info .text-white {
    color: #0891b2 !important;
}

.table td .btn-info:hover,
.table td .btn-info:focus {
    background: #06b6d4 !important;
    color: #ffffff !important;
    border-color: #06b6d4 !important;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3) !important;
    transform: translateY(-1px);
}

.table td .btn-info:hover i,
.table td .btn-info:hover .text-white {
    color: #ffffff !important;
}

/* 6. SOFT SECONDARY / DEFAULT BUTTON */
.table td .btn-secondary,
.table td .btn-default,
.table td a.btn-secondary,
.table td a.btn-default,
.table td button.btn-secondary,
.table td button.btn-default {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #475569 !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
}

.table td .btn-secondary:hover,
.table td .btn-default:hover {
    background: #64748b !important;
    color: #ffffff !important;
    border-color: #64748b !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   GARUDA CBT - MODERN CLEAN FOOTER SYSTEM
   ========================================================================== */
.main-footer {
    background-color: #ffffff !important;
    border-top: 1px solid var(--g-card-border, #e2e8f0) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    padding: 0.85rem 1.5rem !important;
    color: var(--g-text-muted, #64748b) !important;
    font-size: 0.84rem !important;
    font-family: var(--g-font-sans, 'Plus Jakarta Sans', sans-serif) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.02) !important;
    transition: margin-left .3s ease-in-out !important;
}

.main-footer.alert {
    background-color: #ffffff !important;
    border-color: var(--g-card-border, #e2e8f0) !important;
    color: var(--g-text-muted, #64748b) !important;
    margin: 0 !important;
}

.main-footer .footer-left {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
    font-size: 0.84rem;
}

.main-footer .footer-right {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-left: auto;
}

.main-footer .footer-brand-link {
    color: var(--g-text-heading, #0f172a) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.main-footer .footer-brand-link:hover {
    color: var(--g-primary, #7c3aed) !important;
    text-decoration: none !important;
}

.main-footer .footer-version-link {
    color: var(--g-text-muted, #64748b) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-footer .footer-version-link:hover {
    color: var(--g-primary, #7c3aed) !important;
    text-decoration: underline !important;
}

.main-footer .footer-sep {
    color: var(--g-text-subtle, #94a3b8);
    margin: 0 4px;
    user-select: none;
    font-weight: 400;
}

.main-footer .footer-custom-pill {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569 !important;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.main-footer .footer-custom-pill:hover {
    background: #f5f3ff;
    color: var(--g-primary, #7c3aed) !important;
    border-color: #ddd6fe;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.12);
}

.main-footer .footer-php-badge {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: var(--g-text-muted, #64748b);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.main-footer .footer-php-badge strong {
    color: var(--g-text-heading, #1e293b);
    margin-left: 4px;
}

@media (max-width: 767.98px) {
    .main-footer {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 1rem !important;
    }
    .main-footer .footer-left {
        justify-content: center;
    }
}

/* ==========================================================================
   GLOBAL TABLE BORDER & RESPONSIVE ENHANCEMENTS
   ========================================================================== */
.table-bordered {
    border: 1px solid #dee2e6 !important;
}

.table-bordered th, 
.table-bordered td {
    border: 1px solid #dee2e6 !important;
    vertical-align: middle !important;
}

.table-bordered thead th {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #cbd5e1 !important;
    padding: 0.75rem 0.6rem !important;
}

.table-bordered tbody td {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.88rem;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .content-wrapper {
        padding: 0.75rem !important;
    }
    .card-body {
        padding: 0.85rem !important;
    }
    .table-bordered thead th {
        font-size: 0.75rem !important;
        padding: 0.6rem 0.5rem !important;
    }
    .table-bordered tbody td {
        padding: 0.55rem 0.6rem !important;
        font-size: 0.82rem !important;
    }
}

/* ==========================================================================
   MODERN STYLISH SAAS COMPONENTS (CARD, STATUS PILLS, SOFT BUTTONS)
   ========================================================================== */
.stylish-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 12px 0 rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.stylish-card:hover {
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
}

.stylish-card-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stylish-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

/* Modern Status Pills with Dot Indicator */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.status-pill .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-pill-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.status-pill-success .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-pill-primary {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}
.status-pill-primary .status-dot {
    background-color: #6366f1;
}

.status-pill-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.status-pill-warning .status-dot {
    background-color: #f59e0b;
}

.status-pill-danger {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}
.status-pill-danger .status-dot {
    background-color: #ef4444;
}

.status-pill-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}
.status-pill-secondary .status-dot {
    background-color: #94a3b8;
}

/* ==========================================================================
   SIDEBAR & GLOBAL SCROLLBAR (SLIM MODERN GRAY)
   ========================================================================== */
/* Native webkit scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}


/* ==========================================================================
   1:1 SOFT ACTION BUTTONS & PALETTES (MODERN ICON-ONLY TABLE ACTIONS)
   ========================================================================== */
.btn-action-square {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    border-width: 1px !important;
    border-style: solid !important;
}

/* Soft buttons with text (e.g. + Tambah, Filter) */
.btn-action-soft {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border-width: 1px !important;
    border-style: solid !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 0.95rem !important;
    width: auto !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    white-space: nowrap !important;
}

/* When .btn-action-soft is used inside a table cell as an icon-only button */
.table td .btn-action-soft,
td .btn-action-soft {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.table td .btn-action-soft i,
.table td .btn-action-soft [data-lucide],
.table td .btn-action-soft svg {
    font-size: 0.85rem !important;
}

/* When in card header or with text or padding */
.stylish-card-header .btn-action-soft,
.cbt-page-header .btn-action-soft,
.card-header .btn-action-soft,
.btn-action-soft.btn-sm,
.btn-action-soft.px-3,
.btn-action-soft.px-2 {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    padding: 0 0.95rem !important;
    font-size: 0.85rem !important;
}

.btn-action-square i,
.btn-action-square .fas,
.btn-action-square .far,
.btn-action-square .fa,
.btn-action-soft i,
.btn-action-soft .fas,
.btn-action-soft .far,
.btn-action-soft .fa {
    font-size: 0.85rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.btn-action-square:hover:not(:disabled):not(.disabled),
.btn-action-soft:hover:not(:disabled):not(.disabled) {
    transform: translateY(-1.5px) !important;
}

.btn-action-square:active:not(:disabled):not(.disabled),
.btn-action-soft:active:not(:disabled):not(.disabled) {
    transform: translateY(0) !important;
}

.btn-action-square:disabled,
.btn-action-square.disabled,
.btn-action-soft:disabled,
.btn-action-soft.disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Soft Color Palette Variants */
/* Amber / Warning */
.btn-soft-amber,
.btn-soft-warning {
    background-color: #fffbeb !important;
    color: #d97706 !important;
    border-color: #fde68a !important;
}
.btn-soft-amber:hover,
.btn-soft-warning:hover {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #fcd34d !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15) !important;
}

/* Rose / Danger / Delete */
.btn-soft-rose,
.btn-soft-danger {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
    border-color: #ffe4e6 !important;
}
.btn-soft-rose:hover,
.btn-soft-danger:hover {
    background-color: #ffe4e6 !important;
    color: #be123c !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.15) !important;
}

/* Emerald / Success */
.btn-soft-emerald,
.btn-soft-success {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}
.btn-soft-emerald:hover,
.btn-soft-success:hover {
    background-color: #d1fae5 !important;
    color: #047857 !important;
    border-color: #6ee7b7 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.15) !important;
}

/* Blue / Info */
.btn-soft-blue,
.btn-soft-info {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}
.btn-soft-blue:hover,
.btn-soft-info:hover {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15) !important;
}

/* Purple / Primary */
.btn-soft-purple,
.btn-soft-primary {
    background-color: #f5f3ff !important;
    color: #7c3aed !important;
    border-color: #ddd6fe !important;
}
.btn-soft-purple:hover,
.btn-soft-primary:hover {
    background-color: #ede9fe !important;
    color: #6d28d9 !important;
    border-color: #c4b5fd !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15) !important;
}

/* Cyan / Teal */
.btn-soft-cyan,
.btn-soft-teal {
    background-color: #ecfeff !important;
    color: #0891b2 !important;
    border-color: #a5f3fc !important;
}
.btn-soft-cyan:hover,
.btn-soft-teal:hover {
    background-color: #cffafe !important;
    color: #0e7490 !important;
    border-color: #67e8f9 !important;
    box-shadow: 0 4px 10px rgba(8, 145, 178, 0.15) !important;
}

/* Slate / Neutral / Secondary */
.btn-soft-slate,
.btn-soft-secondary {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}
.btn-soft-slate:hover,
.btn-soft-secondary:hover {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.12) !important;
}

.icon-box-sm {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.bg-primary-soft {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

/* ==========================================================================
   SISWA MOBILE BOTTOM NAVIGATION BAR & APP SHELL
   ========================================================================== */
.siswa-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    .has-bottom-nav {
        padding-bottom: 70px !important;
    }

    .siswa-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border-top: 1px solid #e2e8f0;
        z-index: 1040;
        align-items: center;
        justify-content: space-around;
        padding: 0 0.5rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .siswa-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 600;
        padding: 4px 0;
        transition: all 0.2s ease;
        position: relative;
    }

    .siswa-bottom-nav .nav-item i,
    .siswa-bottom-nav .nav-item [data-lucide] {
        font-size: 1.15rem;
        width: 1.15rem;
        height: 1.15rem;
        margin-bottom: 3px;
        transition: all 0.2s ease;
    }

    .siswa-bottom-nav .nav-item.active {
        color: #7c3aed;
    }

    .siswa-bottom-nav .nav-item.active i,
    .siswa-bottom-nav .nav-item.active [data-lucide] {
        color: #7c3aed;
        transform: translateY(-2px);
    }

    .siswa-bottom-nav .nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: linear-gradient(90deg, #7c3aed, #4f46e5);
        border-radius: 0 0 3px 3px;
    }

    /* Siswa Modern App Header */
    .siswa-app-header {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
        padding: 1.25rem 1rem 2rem 1rem;
        color: #ffffff;
        border-radius: 0 0 20px 20px;
        margin-bottom: -1rem;
        position: relative;
    }

    .siswa-app-avatar {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.4);
        object-fit: cover;
    }
}

/* ==========================================================================
   GLOBAL CARD HEADER FIXES (PEPET KANAN & ANTI-MENEMPEL JUDUL/SUBJUDUL)
   ========================================================================== */

/* 1. Hilangkan pseudo-element ::after dari AdminLTE yang merusak flexbox card-header */
.card-header::after,
.card-header.d-flex::after,
.stylish-card-header::after,
.card-modern .card-header::after {
    display: none !important;
    content: none !important;
    clear: none !important;
}

/* 2. Pastikan card-header selalu full-width flexbox */
.card-header.d-flex,
.stylish-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* 3. Nonaktifkan float:left pada .card-title dari AdminLTE agar judul & subjudul tidak menempel */
.card-header .card-title,
.stylish-card-header .card-title,
.card-title {
    float: none !important;
    display: block !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
}

/* 4. Pepetkan tombol / grup aksi ke ujung paling kanan kartu (flush right) */
.card-header-actions,
.card-header .card-tools,
.card-header-tools,
.card-header.d-flex > div:last-child:not(:first-child):not(.table-responsive):not(.card-body),
.stylish-card-header > div:last-child:not(:first-child) {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    gap: 8px !important;
}

/* 5. Khusus layar kecil/HP agar tombol tetap rapi */
@media (max-width: 576px) {
    .card-header.d-flex,
    .stylish-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    .card-header-actions,
    .card-header .card-tools,
    .card-header-tools,
    .card-header.d-flex > div:last-child:not(:first-child):not(.table-responsive):not(.card-body),
    .stylish-card-header > div:last-child:not(:first-child) {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
}

/* ==========================================================================
   PROFILE PAGE - MODERN DESIGN SYSTEM
   ========================================================================== */

.profile-container {
    max-width: 1150px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
}

.profile-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid var(--g-card-border);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.25s ease;
}

.profile-card:hover {
    box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.08);
}

.profile-banner {
    height: 100px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 40%, #3b82f6 100%);
    position: relative;
}

.profile-banner-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 116px;
    height: 116px;
    margin: -58px auto 0.75rem;
    border-radius: 50%;
    padding: 4px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f8fafc;
    border: 2px solid #ffffff;
}

.profile-avatar-upload-btn {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--g-primary, #7c3aed);
    color: #ffffff;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-avatar-upload-btn:hover {
    background: #6d28d9;
    transform: scale(1.1);
    color: #ffffff;
}

.profile-card-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card-body {
    padding: 1.5rem;
}

.profile-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-input-wrapper {
    position: relative;
}

.profile-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    width: 1rem;
    height: 1rem;
}

.profile-input {
    height: 44px;
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    padding-left: 2.6rem !important;
    font-size: 0.9rem !important;
    color: #1e293b !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

.profile-input:focus {
    border-color: var(--g-primary, #7c3aed) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
    outline: none !important;
}

.profile-input-btn-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.profile-input-btn-toggle:hover {
    color: var(--g-primary, #7c3aed);
}

.btn-profile-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.65rem 1.4rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-profile-primary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%) !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-profile-primary:active {
    transform: translateY(0);
}

.profile-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.85rem;
}

.profile-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-meta-label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
}

.profile-meta-val {
    font-weight: 600;
    color: #1e293b;
}

/* ==========================================================================
   SWEETALERT2 ADVANCING PROGRESS BAR (ELIMINATES SPINNING OK BUTTON)
   ========================================================================== */

/* 1. HIDE the spinning OK and Cancel button completely */
.swal2-actions.swal2-loading .swal2-confirm,
.swal2-actions.swal2-loading button.swal2-confirm,
.swal2-actions.swal2-loading .swal2-styled.swal2-confirm,
.swal2-actions.swal2-loading .swal2-cancel,
.swal2-actions.swal2-loading button.swal2-cancel,
.swal2-actions.swal2-loading .swal2-styled.swal2-cancel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: none !important;
    -webkit-animation: none !important;
    transform: none !important;
}

/* 2. Transform .swal2-actions.swal2-loading into a modern advancing progress bar */
.swal2-actions.swal2-loading {
    width: 100% !important;
    max-width: 320px !important;
    height: 8px !important;
    min-height: 8px !important;
    margin: 22px auto 14px auto !important;
    padding: 0 !important;
    background: #e2e8f0 !important;
    border-radius: 999px !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
}

/* 3. Advancing animated progress fill bar */
.swal2-actions.swal2-loading::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%) !important;
    background-size: 200% 100% !important;
    animation: swalAdvanceProgressBar 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation: swalAdvanceProgressBar 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

/* 4. Moving light shimmer across progress */
.swal2-actions.swal2-loading::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%) !important;
    animation: swalProgressShimmer 1.4s linear infinite !important;
    -webkit-animation: swalProgressShimmer 1.4s linear infinite !important;
}

@keyframes swalAdvanceProgressBar {
    0% {
        width: 10%;
        background-position: 0% 50%;
    }
    35% {
        width: 48%;
        background-position: 50% 50%;
    }
    70% {
        width: 82%;
        background-position: 100% 50%;
    }
    100% {
        width: 98%;
        background-position: 0% 50%;
    }
}

@keyframes swalProgressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 5. Custom HTML progress bar inside SweetAlert modals */
.modern-swal-progress-wrap {
    width: 100%;
    max-width: 340px;
    margin: 16px auto 8px auto;
}

.modern-swal-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.modern-swal-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    animation: swalAdvanceProgressBar 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ==========================================================================
   GLOBAL STANDARDIZED TABLE, BADGE, BUTTON & MODAL SYSTEM (TAHAP 0)
   ========================================================================== */
.table-modern,
.table-bordered {
    border: 1px solid #dee2e6 !important;
}

.table-modern th,
.table-modern td,
.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6 !important;
    vertical-align: middle !important;
}

.table-modern thead th,
.table-bordered thead th,
.table thead.thead-modern th {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #cbd5e1 !important;
    padding: 0.75rem 0.6rem !important;
}

.table-modern tbody td,
.table-bordered tbody td {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.88rem;
    vertical-align: middle !important;
}

.table tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.8);
}

.row-active {
    background-color: rgba(16, 185, 129, 0.05) !important;
}

/* Standard Table Column Widths */
.col-w-no { width: 50px !important; text-align: center !important; }
.col-w-check { width: 40px !important; text-align: center !important; }
.col-w-action { width: 110px !important; text-align: center !important; }
.col-w-action-sm { width: 90px !important; text-align: center !important; }
.col-w-action-lg { width: 140px !important; text-align: center !important; }
.col-w-status { width: 120px !important; text-align: center !important; }

/* Standard Active Badge & Soft Buttons */
.badge-active-pill {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

.badge-active-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
}

.btn-activate-soft {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.btn-activate-soft:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* Subtle Badges */
.badge-subtle-primary { background: #eef2ff !important; color: #4f46e5 !important; border: 1px solid #c7d2fe !important; }
.badge-subtle-success { background: #ecfdf5 !important; color: #059669 !important; border: 1px solid #a7f3d0 !important; }
.badge-subtle-warning { background: #fffbeb !important; color: #d97706 !important; border: 1px solid #fde68a !important; }
.badge-subtle-danger  { background: #fff1f2 !important; color: #e11d48 !important; border: 1px solid #fecdd3 !important; }
.badge-subtle-secondary { background: #f1f5f9 !important; color: #64748b !important; border: 1px solid #cbd5e1 !important; }
.badge-subtle-info    { background: #eff6ff !important; color: #2563eb !important; border: 1px solid #bfdbfe !important; }

/* Standard Page Header */
.cbt-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.cbt-page-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Standard Modals & Form Dialogs */
.modal-content {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1rem 1.25rem !important;
    background: #ffffff;
    border-radius: 14px 14px 0 0 !important;
}

.modal-footer {
    border-top: 1px solid #f1f5f9 !important;
    padding: 0.75rem 1.25rem !important;
    background: #f8fafc;
    border-radius: 0 0 14px 14px !important;
}

/* ==========================================================================
   BANK SOAL MATRIX & COMPOSITION CARDS
   ========================================================================== */
.badge-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    min-width: 72px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.badge-chip i {
    font-size: 0.82rem !important;
    line-height: 1 !important;
}

.badge-chip-pg {
    background: rgba(79, 70, 229, 0.08) !important;
    color: #4f46e5 !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
}
.badge-chip-kompleks {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}
.badge-chip-jodohkan {
    background: rgba(6, 182, 212, 0.08) !important;
    color: #0284c7 !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
}
.badge-chip-isian {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
.badge-chip-essai {
    background: rgba(100, 116, 139, 0.08) !important;
    color: #475569 !important;
    border: 1px solid rgba(100, 116, 139, 0.25) !important;
}
.matrix-input-number {
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.2s ease !important;
}
.matrix-input-number:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* ==========================================================================
   MODERN DROPIFY DROPZONE STYLING
   ========================================================================== */
.dropify-wrapper {
    display: block !important;
    position: relative !important;
    cursor: pointer !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    padding: 24px 16px !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    text-align: center !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.dropify-wrapper:hover {
    background-color: #f1f5f9 !important;
    background-image: none !important;
    -webkit-animation: none !important;
    animation: none !important;
    border-color: #6366f1 !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.1) !important;
}

.dropify-wrapper .dropify-message {
    position: relative !important;
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
}

.dropify-wrapper .dropify-message span.file-icon {
    font-size: 44px !important;
    color: #6366f1 !important;
    display: block !important;
    margin-bottom: 8px !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
}

.dropify-wrapper:hover .dropify-message span.file-icon {
    color: #4f46e5 !important;
    transform: translateY(-4px) scale(1.08) !important;
}

.dropify-wrapper .dropify-message p {
    font-family: inherit !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.dropify-wrapper.has-preview {
    border-style: solid !important;
    border-color: #e2e8f0 !important;
    background-color: #ffffff !important;
}

.dropify-wrapper.has-preview .dropify-preview {
    background-color: #ffffff !important;
}

.dropify-wrapper .dropify-preview .dropify-render img {
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.dropify-wrapper .dropify-clear {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    transition: all 0.2s ease !important;
    opacity: 0.9 !important;
}

.dropify-wrapper .dropify-clear:hover {
    background: #dc2626 !important;
    opacity: 1 !important;
}

#submit-hapus, #submit-aktifkan, #submit-nonaktifkan, .btn-hapus-terpilih {
    white-space: nowrap !important;
}






/* ==========================================================================
   PRINT MEDIA OPTIMIZATIONS (KARTU UJIAN, BERITA ACARA, RAPOR, BUKU INDUK)
   ========================================================================== */
@media print {
    .main-header,
    .main-sidebar,
    .main-footer,
    .sidebar-backdrop,
    .garuda-toast-container,
    .btn,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate,
    .dataTables_info,
    .cbt-page-header .btn,
    .siswa-bottom-nav,
    .card-tools {
        display: none !important;
    }

    body,
    .content-wrapper {
        background-color: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card,
    .clean-card,
    .stylish-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}
