/* ==========================================================================
   SkolaDigi - Ultra-Modern Clean White High-Contrast Design System
   ========================================================================== */

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

:root {
    /* Emerald Accent Palette */
    --emerald-deep: #047857;
    --emerald-dark: #065f46;
    --emerald-card: #ffffff;
    --emerald-main: #059669;
    --emerald-light: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.15);

    /* Gold / Amber Accent Palette */
    --gold-deep: #b45309;
    --gold-main: #d97706;
    --gold-light: #f59e0b;
    --gold-bright: #d97706;
    --gold-border: rgba(217, 119, 6, 0.25);
    --gold-border-hover: rgba(217, 119, 6, 0.5);
    --gold-glow: rgba(245, 158, 11, 0.15);

    /* Neutral & High-Contrast Light Theme Palette */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-light: #0f172a;
    --text-body: #1e293b;
    --text-muted: #475569;
    --text-dim: #64748b;
    --glass-border: #e2e8f0;

    /* Layout & Radius */
    --radius-squircle: 20px;
    --radius-card: 22px;
    --radius-button: 12px;
    --shadow-luxury: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   CUSTOM LIGHT SCROLLBAR SYSTEM (GLOBAL & MODALS)
   ========================================================================== */
/* Firefox Scrollbar Standard */
html, body, *, *::before, *::after {
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 119, 6, 0.45) #f1f5f9;
}

/* Webkit Scrollbars (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    transition: all 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d97706, #b45309);
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

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

/* Specific Custom Scrollbars for Modals, Tables & Comboboxes */
.modal-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.combobox-dropdown-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.modal-body::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.combobox-dropdown-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.combobox-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

/* Global Reset & High-Contrast Anchors */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* Force Default Anchor Contrast Overrides */
a, a:link, a:visited {
    color: inherit;
    text-decoration: none;
}

/* Container Structure */
.app-container,
.page-body {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 1.25rem 1.25rem 2.5rem 1.25rem !important;
    margin-top: 62px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   PERSISTENT TOP EDGE-TO-EDGE APPLICATION HEADER NAVBAR
   ========================================================================== */
.portal-header.app-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 62px !important;
    background: rgba(238, 242, 246, 0.98) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
    z-index: 99999 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.portal-header.app-navbar .navbar-inner {
    max-width: 1240px !important;
    width: 100% !important;
    height: 100%;
    margin: 0 auto !important;
    padding: 0 1.25rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   USER PROFILE DROPDOWN PILL & FLOATING MENU SYSTEM
   ========================================================================== */
.user-dropdown-container {
    position: relative !important;
}

.user-card-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1.5px solid #3b82f6;
    border-radius: 50px;
    padding: 2px 8px 2px 3px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.user-card-pill:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.user-avatar-glow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    flex-shrink: 0;
    overflow: hidden;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-pill-text {
    font-size: 0.55rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.user-dropdown-caret {
    font-size: 0.55rem;
    color: #94a3b8;
    margin-left: 1px;
}

.user-nav-dropdown-menu {
    display: none;
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    min-width: 300px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22) !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    padding: 0 !important;
    animation: fadeInDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-nav-header-box {
    padding: 14px 16px 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.user-dropdown-section {
    padding: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.user-dropdown-section:last-child {
    border-bottom: none;
}

.user-dropdown-section-title {
    font-size: 0.62rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px 4px 10px;
}

.user-dropdown-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-dropdown-link-item:hover {
    background: #f1f5f9 !important;
    transform: translateX(3px);
}

.user-dropdown-link-item.logout-item:hover {
    background: #ffe4e6 !important;
}

.user-dropdown-icon-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.user-dropdown-link-item:hover .user-dropdown-icon-badge {
    transform: scale(1.08);
}

.user-dropdown-item-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.user-dropdown-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-item-desc {
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #0f172a !important;
    font-size: 0.82rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.18s ease;
}

.user-dropdown-link:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.user-dropdown-link.logout-link {
    color: #be123c !important;
    font-weight: 700;
}

.user-dropdown-link.logout-link:hover {
    background: #ffe4e6 !important;
}

.navbar-center {
    display: flex;
    align-items: center;
    gap: 0.05rem !important;
    flex-shrink: 1;
    min-width: 0;
    flex-wrap: nowrap !important;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.05rem !important;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap !important;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 3px !important;
    padding: 0.28rem 0.44rem !important;
    color: #334155;
    font-size: 0.76rem !important;
    font-weight: 700;
    text-decoration: none;
    border-radius: 16px !important;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap !important;
}

.nav-link:hover, .nav-item:hover > .nav-link {
    color: #1e293b;
    background: #e2e8f0;
}

.nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
    border: none;
}

.nav-link .nav-icon {
    font-size: 0.85rem;
    width: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.12);
}

.nav-link.active .nav-icon {
    color: #ffffff !important;
}

.nav-link .dropdown-caret {
    font-size: 0.6rem;
    color: #64748b;
    transition: transform 0.2s ease;
    margin-left: 1px;
}

.nav-link.active .dropdown-caret {
    color: #ffffff;
}

.nav-item:hover .dropdown-caret {
    transform: rotate(180deg);
}

/* Dropdown Menu Container */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 0.6rem;
    margin-top: 8px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.nav-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.55rem 0.85rem;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #2563eb;
    transform: translateX(4px);
}

.dropdown-item.active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
}

.dropdown-item-icon-badge {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon-badge {
    transform: scale(1.1);
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.dropdown-item-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item-desc {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-header {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem 0.3rem 0.85rem;
}

/* Header Live WITA Clock Badge */
.header-clock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header-clock-badge:hover {
    border-color: #d97706;
    background: #fef3c7;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.18);
}

.header-clock-badge .clock-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #047857;
    flex-shrink: 0;
}

.header-clock-badge .clock-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.header-clock-badge .clock-time {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.925rem;
    font-weight: 800;
    color: #b45309;
    letter-spacing: 0.5px;
}

.header-clock-badge .clock-date {
    font-size: 0.725rem;
    color: #475569;
    font-weight: 600;
}

/* User Badge Header & Navbar Navigation Button */
.user-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.skoladigi-header-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
    border: 1px solid #047857;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
    line-height: 1.2;
}

.skoladigi-header-nav-btn:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.skoladigi-header-nav-btn .nav-btn-shortcut {
    background: rgba(255, 255, 255, 0.22);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: monospace;
    font-weight: 800;
    margin-left: 2px;
}

.user-card-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 0.45rem 0.9rem;
    border-radius: 16px;
}

.user-avatar-glow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 0.925rem;
    color: #0f172a;
}

.user-subinfo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.role-pill-vibrant {
    padding: 2px 8px;
    font-size: 0.675rem;
    font-weight: 800;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin      { background: #ffe4e6; color: #be123c; border: 1px solid #fecdd3; }
.role-guru       { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.role-siswa      { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.role-bendahara  { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.role-pegawai    { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.role-purnabakti { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.role-supervisor { background: #fce7f3; color: #be185d; border: 1px solid #fbcfe8; }
.role-enlighten  { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }

.nis-nip-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.btn-logout-vibrant {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    background: #ffe4e6;
    color: #e11d48 !important;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.btn-logout-vibrant:hover {
    background: #e11d48;
    color: #ffffff !important;
    border-color: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

/* ==========================================================================
   News Ticker Banner
   ========================================================================== */
.news-ticker-banner {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-card);
}

.ticker-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.ticker-items {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.ticker-items::-webkit-scrollbar {
    display: none;
}

.ticker-item, 
.ticker-item:link, 
.ticker-item:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ticker-item:hover .ticker-title {
    color: #059669 !important;
    text-decoration: underline !important;
}

.ticker-title {
    color: #1e293b !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.ticker-separator {
    color: #cbd5e1;
    font-weight: bold;
    font-size: 1rem;
}

.ticker-btn-more,
.ticker-btn-more:link,
.ticker-btn-more:visited {
    background: #fef3c7;
    color: #b45309 !important;
    border: 1px solid #fde68a;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ticker-btn-more:hover {
    background: #d97706;
    color: #ffffff !important;
    border-color: #b45309;
    transform: translateY(-1px);
}

/* ==========================================================================
   Quick Stats Grid Pillars (4 Columns)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-clickable {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card-clickable:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.stat-card-clickable.active-filter {
    border-width: 2px !important;
    background: #ffffff !important;
    border-color: #d97706 !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25) !important;
}

.stat-card-clickable.active-filter::after {
    content: "✓ FILTER AKTIF";
    position: absolute;
    top: -10px;
    right: 14px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.card-glow-emerald:hover { border-color: #10b981; box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15); }
.card-glow-amber:hover   { border-color: #f59e0b; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15); }
.card-glow-indigo:hover  { border-color: #6366f1; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15); }
.card-glow-rose:hover    { border-color: #f43f5e; box-shadow: 0 8px 24px rgba(244, 63, 94, 0.15); }

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.grad-emerald { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25); }
.grad-amber   { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25); }
.grad-indigo  { background: linear-gradient(135deg, #4f46e5, #6366f1); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25); }
.grad-rose    { background: linear-gradient(135deg, #e11d48, #f43f5e); box-shadow: 0 4px 15px rgba(244, 63, 94, 0.25); }

/* Redesigned Featured Portal Icons */
.portal-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}

.portal-header-icon::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.portal-icon-purple {
    background: linear-gradient(135deg, #6b21a8 0%, #a855f7 50%, #c084fc 100%);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.3);
}

.portal-icon-blue {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #7dd3fc 100%);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}

.portal-icon-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.stat-card:hover .portal-header-icon {
    transform: scale(1.08) translateY(-2px) rotate(-3deg);
}

.stat-val {
    font-size: 1.45rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
}

.text-emerald-bright { color: #047857; }
.text-amber-bright   { color: #b45309; }
.text-indigo-bright  { color: #4338ca; }
.text-rose-bright    { color: #be123c; }

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 600;
}

.stat-desc {
    font-size: 0.68rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.1px;
}

.stat-desc-emerald {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.stat-desc-amber {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.stat-desc-indigo {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.stat-desc-rose {
    background: #ffe4e6;
    color: #be123c;
    border: 1px solid #fecdd3;
}

/* ==========================================================================
   Quick Filter Tabs Bar & Category Navigation
   ========================================================================== */
.filter-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 18px !important;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.filter-card label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.filter-card select,
.filter-card input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.portal-nav-bar {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-card);
}

.nav-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.filter-tab-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-filter-tab {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569 !important;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.portal-filter-tab:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

.portal-filter-tab.active {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #ffffff !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Berita Page Category Tabs & Controls (berita.php)
   ========================================================================== */
.news-controls-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.75rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.search-filter-form {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    flex: 1;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    min-width: 260px;
}

.form-input-clean {
    background: none;
    border: none;
    color: #0f172a !important;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.form-input-clean:focus {
    outline: none;
}

.form-input-clean::placeholder {
    color: #94a3b8;
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cat-tab, 
.cat-tab:link, 
.cat-tab:visited {
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569 !important;
    text-decoration: none !important;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    display: inline-block;
}

.cat-tab:hover {
    color: #0f172a !important;
    background: #e2e8f0;
}

.cat-tab.active {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #ffffff !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    font-weight: 700;
}

/* Category Badges (Pills) */
.badge-kat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pengumuman { background: #fef3c7; color: #b45309 !important; border: 1px solid #fde68a; }
.badge-akademik   { background: #dbeafe; color: #1d4ed8 !important; border: 1px solid #bfdbfe; }
.badge-kegiatan   { background: #f3e8ff; color: #6b21a8 !important; border: 1px solid #e9d5ff; }
.badge-prestasi   { background: #d1fae5; color: #047857 !important; border: 1px solid #a7f3d0; }

.badge-draft {
    background: #ffe4e6;
    color: #be123c !important;
    border: 1px solid #fecdd3;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
}

/* News Cards (berita.php) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-card);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #059669;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.news-date {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.news-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a !important;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.news-snippet {
    font-size: 0.875rem;
    color: #334155 !important;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.news-card-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-read,
.btn-read:link,
.btn-read:visited {
    background: #fef3c7;
    color: #b45309 !important;
    border: 1px solid #fde68a;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-read:hover {
    background: #d97706;
    color: #ffffff !important;
    border-color: #b45309;
}

.btn-icon-action {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-action:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

.btn-icon-action.danger {
    background: #ffe4e6;
    border-color: #fecdd3;
    color: #e11d48 !important;
}

.btn-icon-action.danger:hover {
    background: #e11d48;
    color: #ffffff !important;
}

/* ==========================================================================
   Grouped Category Sections & Bento Grid (index.php)
   ========================================================================== */
.category-block {
    margin-bottom: 2.5rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.category-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon-squircle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.category-icon-squircle svg {
    width: 24px;
    height: 24px;
}

.category-header h2 {
    font-size: 1.3rem;
    color: #0f172a !important;
    margin: 0;
}

.category-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

.cat-pill-badge {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-badge-amber   { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.cat-badge-blue    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.cat-badge-emerald { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.cat-badge-purple  { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.bento-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Card Specific Vibrant Border Hover Themes */
.card-amber:hover   { border-color: #f59e0b; }
.card-gold:hover    { border-color: #d97706; }
.card-red:hover     { border-color: #ef4444; }
.card-indigo:hover { border-color: #6366f1; }
.card-cyan:hover   { border-color: #06b6d4; }
.card-blue:hover   { border-color: #3b82f6; }
.card-emerald:hover{ border-color: #10b981; }
.card-teal:hover   { border-color: #14b8a6; }
.card-purple:hover { border-color: #a855f7; }
.card-violet:hover { border-color: #8b5cf6; }

.bento-top {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.squircle-icon-vibrant {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-amber .squircle-icon-vibrant   { background: linear-gradient(135deg, #d97706, #f59e0b); color: #ffffff; }
.card-gold .squircle-icon-vibrant    { background: linear-gradient(135deg, #b45309, #fbbf24); color: #ffffff; }
.card-red .squircle-icon-vibrant     { background: linear-gradient(135deg, #dc2626, #ef4444); color: #ffffff; }
.card-indigo .squircle-icon-vibrant { background: linear-gradient(135deg, #4338ca, #6366f1); color: #ffffff; }
.card-cyan .squircle-icon-vibrant   { background: linear-gradient(135deg, #0891b2, #06b6d4); color: #ffffff; }
.card-blue .squircle-icon-vibrant   { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #ffffff; }
.card-emerald .squircle-icon-vibrant{ background: linear-gradient(135deg, #047857, #10b981); color: #ffffff; }
.card-teal .squircle-icon-vibrant   { background: linear-gradient(135deg, #0f766e, #14b8a6); color: #ffffff; }
.card-purple .squircle-icon-vibrant { background: linear-gradient(135deg, #7e22ce, #a855f7); color: #ffffff; }
.card-violet .squircle-icon-vibrant { background: linear-gradient(135deg, #6d28d9, #8b5cf6); color: #ffffff; }

.squircle-icon-vibrant svg {
    width: 28px;
    height: 28px;
}

.bento-content {
    flex: 1;
}

.bento-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.bento-desc {
    font-size: 0.875rem;
    color: #334155 !important;
    line-height: 1.5;
}

.bento-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.bento-tag {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-action-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-bright);
    transition: transform 0.25s ease;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.bento-card:hover .arrow-icon {
    transform: translateX(4px);
}

/* Restricted Card Styling */
.bento-restricted {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.bento-restricted:hover {
    transform: none;
    box-shadow: none;
}

.restricted-icon {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: transparent !important;
    color: var(--text-dim) !important;
}

.restricted-tag-label {
    font-size: 0.75rem;
    color: #f87171;
    margin-left: 6px;
    font-weight: 600;
}

.tag-restricted {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.text-muted-card {
    color: var(--text-dim) !important;
}

/* Setup Application Layout (setup_aplikasi.php) */
.setup-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
}

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

/* Setup Application Layout (setup_aplikasi.php) */
.setup-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
}

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

.setup-preview-card,
.setup-form-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.logo-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.logo-circle-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f8fafc;
    border: 3px solid var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.logo-circle-lg img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.preview-school-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0f172a;
}

.preview-school-npsn {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 600;
}

.preview-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    color: #64748b;
    font-size: 0.775rem;
    font-weight: 600;
}

.detail-val {
    color: #0f172a;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group label, label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155 !important;
}

.form-input, input, select, textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #0f172a !important;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.form-input-file {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    color: #1e293b;
    width: 100%;
    cursor: pointer;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10000;
    padding: 1rem;
    box-sizing: border-box;
}

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

.modal-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
    color: #0f172a;
}

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

.modal-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.75rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #0f172a;
}

/* Form Controls, Modals & Utility Cards */
.card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
    border: 1px solid #047857;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-button);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-button);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* Flash Alerts & General Alerts */
.flash-alert,
.alert {
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-button);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.flash-alert i,
.alert i {
    font-size: 1.15rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flash-alert span,
.alert span {
    flex: 1;
    text-align: left;
}

.flash-success,
.alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.flash-danger,
.alert-danger {
    background: #ffe4e6;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.flash-warning,
.alert-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
}

.flash-info,
.alert-info {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.flash-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 0.25rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.flash-close:hover {
    opacity: 1;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2.5rem 0 1.5rem 0;
    color: #64748b;
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 3.5rem;
    font-weight: 500;
}

/* ==========================================================================
   Universal Professional High-Contrast Table & Form System (All Portals)
   ========================================================================== */
.content-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-card);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    margin-top: 1rem;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .table-responsive {
        overflow-x: auto;
    }
}

/* Universal Table Base */
table,
.data-table,
.luxury-table,
.table-custom {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    color: #1e293b !important;
    table-layout: auto;
}

/* Table Header */
table th,
.data-table th,
.luxury-table th {
    padding: 0.55rem 0.65rem;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.73rem;
    color: #0f172a !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    border-bottom: 2px solid #059669;
    white-space: nowrap;
}

/* Table Rows & Animation */
table tbody tr,
.data-table tbody tr,
.luxury-table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

table tbody tr:nth-child(odd),
.data-table tbody tr:nth-child(odd),
.luxury-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even),
.luxury-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

table tbody tr:hover,
.data-table tbody tr:hover,
.luxury-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.08) !important;
    box-shadow: inset 3px 0 0 #059669;
}

/* Table Cells & Responsive Text Wrapping */
table td,
.data-table td,
.luxury-table td {
    padding: 0.55rem 0.65rem;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    color: #334155 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    font-size: 0.82rem;
}

/* Prevent index / row number column (#) from word-wrapping vertically */
table th:first-child,
table td:first-child,
.data-table th:first-child,
.data-table td:first-child,
.luxury-table th:first-child,
.luxury-table td:first-child {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    min-width: 45px;
}

table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.luxury-table tbody tr:last-child td {
    border-bottom: none;
}

/* Universal Status Badges */
.badge,
.status-badge,
.badge-tingkat,
.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.badge-success, .badge-lunas, .badge-hadir, .status-success, .badge-siap {
    background: #d1fae5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

.badge-warning, .badge-belum-lunas, .badge-izin, .status-warning, .badge-digunakan {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.badge-danger, .badge-alpa, .badge-terlambat, .status-danger, .badge-perbaikan {
    background: #ffe4e6 !important;
    color: #be123c !important;
    border: 1px solid #fecdd3 !important;
}

.badge-info, .badge-sakit, .status-info {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

/* Standardized Table Action Buttons System (Ultra Premium Micro-Pills) */
.btn-action-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-action-icon,
.btn-gold-sm,
.btn-action-verify,
.btn-action-cancel,
.btn-action-reset,
.btn-action-edit,
.btn-reset,
.btn-edit,
.btn-delete,
.btn-danger-sm,
.btn-success-sm {
    height: 27px;
    padding: 0 11px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.btn-action-icon:active,
.btn-gold-sm:active,
.btn-action-verify:active,
.btn-action-cancel:active,
.btn-action-reset:active,
.btn-action-edit:active {
    transform: translateY(0) scale(0.96) !important;
}

.btn-action-icon svg,
.btn-gold-sm svg,
.btn-action-verify svg,
.btn-action-cancel svg,
.btn-action-reset svg,
.btn-action-edit svg {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Edit / Warning Button Theme (Gold/Amber Glass) */
.btn-edit,
.btn-action-edit {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.32) !important;
}

.btn-edit:hover,
.btn-action-edit:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.65) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Delete / Cancel / Danger Button Theme (Rose/Pink Glass) */
.btn-delete,
.btn-danger-sm,
.btn-action-cancel {
    background: rgba(244, 63, 94, 0.12) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(251, 113, 133, 0.32) !important;
}

.btn-delete:hover,
.btn-danger-sm:hover,
.btn-action-cancel:hover {
    background: rgba(244, 63, 94, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(251, 113, 133, 0.65) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}

/* Verify / Success Button Theme (Emerald/Green Glass) */
.btn-action-verify,
.btn-success-sm {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.32) !important;
}

.btn-action-verify:hover,
.btn-success-sm:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(52, 211, 153, 0.65) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Reset / Detail / Info Button Theme (Sky Blue Glass) */
.btn-reset,
.btn-action-reset {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.32) !important;
}

.btn-reset:hover,
.btn-action-reset:hover {
    background: rgba(56, 189, 248, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.65) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

/* Gold / Kwitansi / Print Button Theme (Luxury Amber Gold Gradient) */
.btn-gold-sm,
.btn-action-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.32)) !important;
    color: #fef08a !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.btn-gold-sm:hover,
.btn-action-gold:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.55)) !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.7) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

/* Common Form Controls & Layouts */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #0f172a !important;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

/* Gold Button Variants */
.btn-gold {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff !important;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 0 14px;
    height: 38px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    box-sizing: border-box;
    vertical-align: middle;
    line-height: 1;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-gold-sm {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff !important;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 4px 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.775rem;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-gold-sm:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* Standardized Portal Header Action Buttons */
.portal-header .btn-pay-multi,
.portal-header .btn-excel-export,
.portal-header .btn-tabungan-print,
.portal-header .btn-batch-print,
.portal-header .btn-gold {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    vertical-align: middle !important;
}

.portal-header .btn-pay-multi svg,
.portal-header .btn-excel-export svg,
.portal-header .btn-tabungan-print svg,
.portal-header .btn-batch-print svg,
.portal-header .btn-gold svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* Header Container & Action Group Layout */
.portal-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-status-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 1360px) {
    .portal-header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
}

@media (max-width: 900px) {
    .portal-header-right {
        width: 100%;
        align-items: flex-start;
    }
    .portal-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


/* Floating Action Dropdown Menu Container */
.action-dropdown-container {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.action-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #062319 !important;
    border: 1.5px solid #f59e0b !important;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(245, 158, 11, 0.4) !important;
    z-index: 9999999 !important;
    min-width: 180px;
    padding: 6px;
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    gap: 4px;
    animation: dropdownFade 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 769px) {
    .table-responsive {
        overflow-x: auto !important;
        max-width: 100% !important;
    }
    .content-card, .card-glass-table, .card-glass {
        box-sizing: border-box;
    }
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #e5e7eb;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Specific Hover Styles for Dropdown Menu Items */
.action-dropdown-item.item-detail:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.action-dropdown-item.item-edit:hover {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

.action-dropdown-item.item-status:hover {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
}

.action-dropdown-item.item-delete:hover {
    background: rgba(244, 63, 94, 0.16) !important;
    color: #fb7185 !important;
    border-color: rgba(251, 113, 133, 0.35) !important;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Keyframes for Import & Export Progress Modal */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   Mobile APK-Style Navigation & Anti-Horizontal Overflow System
   ========================================================================== */

/* Global Anti-Overflow Guards */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

.app-container {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 1.25rem 1.25rem 2.5rem 1.25rem !important;
    margin-top: 62px !important;
    box-sizing: border-box !important;
}

.content-card,
.portal-header,
.card,
.stat-card,
.bento-card,
.setup-preview-card,
.setup-form-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Header Mobile Trigger Button */
.btn-mobile-menu-trigger {
    display: none !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35)) !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    color: #fef08a !important;
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-mobile-menu-trigger:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.5)) !important;
    border-color: var(--gold-bright) !important;
}

/* Floating Bottom Navigation Bar for Mobile */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(4, 18, 14, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(245, 158, 11, 0.35);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #94a3b8;
    text-decoration: none !important;
    background: none;
    border: none;
    cursor: pointer;
    flex: 1;
    height: 100%;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.mobile-nav-item.active,
.mobile-nav-item:active {
    color: #fbbf24 !important;
}

.mobile-nav-item.active .mobile-nav-icon,
.mobile-nav-item:active .mobile-nav-icon {
    transform: translateY(-2px);
    color: #fbbf24;
}

.mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mobile-nav-icon svg {
    width: 22px;
    height: 22px;
}

.mobile-nav-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Mobile Slide-Over Drawer Menu */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: rgba(6, 26, 19, 0.98);
    border-left: 1px solid var(--gold-border);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.mobile-drawer-backdrop.active .mobile-drawer-panel {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(3, 19, 14, 0.95);
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.drawer-user-details {
    display: flex;
    flex-direction: column;
}

.drawer-user-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
}

.drawer-user-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.drawer-nis-nip {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
}

.drawer-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.8px;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    padding-left: 0.5rem;
    text-transform: uppercase;
}

.drawer-section-title:first-child {
    margin-top: 0;
}

.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.drawer-menu-item:hover,
.drawer-menu-item.active {
    background: rgba(16, 185, 129, 0.18);
    color: #ffffff !important;
    border-color: rgba(52, 211, 153, 0.35);
}

.drawer-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.drawer-icon svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.grad-emerald { background: linear-gradient(135deg, #059669, #10b981); }
.grad-amber   { background: linear-gradient(135deg, #d97706, #f59e0b); }
.grad-cyan    { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.grad-indigo  { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.grad-blue    { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.grad-teal    { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.grad-purple  { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.grad-violet  { background: linear-gradient(135deg, #9333ea, #a855f7); }
.grad-rose    { background: linear-gradient(135deg, #e11d48, #f43f5e); }

.mobile-drawer-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(3, 19, 14, 0.95);
}

.drawer-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.drawer-logout-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff !important;
}

/* ==========================================================================
   Comprehensive Screen Responsiveness (Screens <= 768px and <= 480px)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-bottom: 85px !important; /* Extra bottom padding so content is never obscured by bottom nav */
    }

    .btn-mobile-menu-trigger {
        display: inline-flex !important;
    }

    /* Permanent Fixed Bottom Navigation Bar for Mobile (Never disappears) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 64px !important;
        z-index: 999999 !important;
        background: rgba(4, 18, 14, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-top: 1px solid rgba(251, 191, 36, 0.4) !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.95) !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
    }

    .portal-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.1rem;
        border-radius: 18px;
    }

    .brand-wrapper {
        gap: 0.85rem;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .brand-title h1 {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .brand-subtitle {
        font-size: 0.78rem;
        flex-wrap: wrap;
    }

    .navbar-center {
        display: none !important;
    }

    .user-badge-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding-top: 0.85rem !important;
        box-sizing: border-box !important;
    }

    /* Logged-in User Profile Card spans 100% full width on mobile top row */
    .user-card-pill {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        order: 1 !important;
        padding: 0.65rem 0.85rem !important;
        border-radius: 14px !important;
        background: rgba(6, 30, 22, 0.95) !important;
        border: 1px solid rgba(52, 211, 153, 0.4) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }

    .user-avatar-glow {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        font-size: 1.15rem !important;
        flex-shrink: 0 !important;
    }

    .user-info {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .user-name {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .user-subinfo {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 2px !important;
    }

    /* Action buttons sit side-by-side on the bottom row */
    .btn-mobile-menu-trigger {
        order: 2 !important;
        flex: 1 1 calc(50% - 4px) !important;
        justify-content: center !important;
        padding: 0.55rem 0.75rem !important;
        font-size: 0.82rem !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    .btn-logout-vibrant {
        order: 3 !important;
        flex: 1 1 calc(50% - 4px) !important;
        justify-content: center !important;
        padding: 0.55rem 0.75rem !important;
        font-size: 0.82rem !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    .user-badge-wrapper .btn-secondary,
    .user-badge-wrapper a:not(.btn-logout-vibrant) {
        order: 4 !important;
        flex: 1 1 100% !important;
        justify-content: center !important;
        padding: 0.55rem 0.75rem !important;
        font-size: 0.82rem !important;
    }

    /* News Ticker Banner Responsiveness */
    .news-ticker-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 0.85rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .ticker-badge-header {
        align-self: flex-start;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .ticker-items {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        white-space: normal !important;
    }

    .ticker-item {
        width: 100% !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.82rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .ticker-title {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        flex: 1;
        font-size: 0.82rem !important;
    }

    .ticker-separator {
        display: none !important;
    }

    .ticker-btn-more {
        align-self: flex-end;
        font-size: 0.78rem !important;
        color: #fbbf24 !important;
        font-weight: 700;
        margin-top: 2px;
    }

    /* Grids & Cards Layout */
    .form-row,
    .form-grid,
    .setup-grid,
    .absen-main-grid,
    .student-cards-grid,
    .portal-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Absensi Scanner & Action Form Card Mobile Responsiveness */
    .scanner-card, .action-form-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 1rem !important;
        overflow: hidden !important;
    }

    .scanner-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .mode-toggle-group {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
    }

    .mode-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 8px 4px !important;
        font-size: 0.8rem !important;
    }

    .camera-viewport-container {
        height: 250px !important;
        max-height: 50vh !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .qr-target-box {
        width: 150px !important;
        height: 150px !important;
    }

    .face-biometric-mesh {
        width: 140px !important;
        height: 180px !important;
    }

    .gps-status-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gps-info {
        justify-content: center !important;
    }

    .gps-badge-indicator {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        font-size: 0.75rem !important;
    }

    #face_match_status_card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.75rem !important;
    }

    .tab-presensi-header {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 3px !important;
    }

    .tab-presensi-btn {
        padding: 8px 4px !important;
        font-size: 0.78rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .tab-presensi-btn svg {
        width: 15px !important;
        height: 15px !important;
        flex-shrink: 0 !important;
    }

    .user-presensi-box {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 10px !important;
    }

    #btn_submit_absen, #btn_instant_absen {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.92rem !important;
        padding: 0.85rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Ultra-Sleek 2-Column Mobile Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-bottom: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .stat-card {
        padding: 0.85rem 0.9rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        border-radius: 16px !important;
        background: rgba(6, 26, 20, 0.96) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .stat-card > div:not(.stat-icon-wrapper) {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .stat-icon-wrapper {
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    }

    .stat-icon-wrapper svg {
        width: 20px !important;
        height: 20px !important;
    }

    .stat-val {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .stat-lbl {
        font-size: 0.72rem !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        margin-top: 2px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .stat-desc {
        font-size: 0.65rem !important;
        color: #94a3b8 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-top: 5px !important;
        margin-top: 4px !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .content-card {
        padding: 1.15rem !important;
        border-radius: 18px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Tables Anti-Overflow & Mobile Scrollability */
    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
        margin-top: 0.75rem;
    }

    table th, table td,
    .data-table th, .data-table td,
    .luxury-table th, .luxury-table td {
        padding: 0.6rem 0.7rem !important;
        font-size: 0.8rem !important;
    }

    .btn-action-wrapper {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Modals Mobile Sizing */
    .modal-box {
        width: 95vw !important;
        max-width: 100% !important;
        padding: 1.25rem !important;
        max-height: 88vh !important;
        border-radius: 18px;
    }

    /* Prevent iOS input zoom by guaranteeing font-size >= 16px */
    .form-control,
    .form-input,
    select,
    input,
    textarea {
        font-size: 16px !important;
    }

    /* Portal Filter Bar & Category Navigation Mobile Enhancements */
    .portal-nav-bar {
        padding: 0.75rem 1rem !important;
        margin-bottom: 1.25rem !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .filter-tab-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        width: 100% !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
    }

    .filter-tab-group::-webkit-scrollbar {
        display: none !important;
    }

    .portal-filter-tab {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 0.78rem !important;
        padding: 0.4rem 0.85rem !important;
        border-radius: 20px !important;
    }

    .category-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 1rem !important;
    }

    .category-header h2 {
        font-size: 1.1rem !important;
        color: #ffffff !important;
        font-weight: 800 !important;
    }

    .category-header p {
        font-size: 0.78rem !important;
        color: #cbd5e1 !important;
    }

    .cat-pill-badge {
        font-size: 0.68rem !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .bento-card {
        padding: 1.15rem !important;
        border-radius: 16px !important;
        background: rgba(6, 26, 20, 0.96) !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    }

    .bento-top {
        gap: 0.85rem !important;
    }

    .squircle-icon-vibrant {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
    }

    .squircle-icon-vibrant svg {
        width: 22px !important;
        height: 22px !important;
    }

    .bento-title {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
    }

    .bento-desc {
        font-size: 0.8rem !important;
        color: #cbd5e1 !important;
        line-height: 1.4 !important;
    }

    .bento-footer {
        margin-top: 1rem !important;
        padding-top: 0.75rem !important;
        justify-content: flex-end !important;
    }

    .bento-tag {
        display: none !important; /* Hide redundant floating sub-tags on mobile to eliminate visual confusion */
    }

    .btn-action-arrow {
        width: 100% !important;
        justify-content: center !important;
        background: rgba(16, 185, 129, 0.18) !important;
        color: #34d399 !important;
        border: 1px solid rgba(52, 211, 153, 0.4) !important;
        padding: 0.6rem 1rem !important;
        border-radius: 12px !important;
        font-size: 0.85rem !important;
        font-weight: 800 !important;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 1rem 0.65rem;
    }

    .glow-text {
        font-size: 1.2rem;
    }

    .user-name {
        max-width: 120px;
    }

    .bento-card {
        padding: 1rem;
    }
}

/* Global Modal Card Clipping Protection */
.modal-card,
.modal-box {
    overflow: hidden !important;
}

.modal-footer,
.modal-actions,
.dialog-footer,
.modal-card form div[style*="justify-content"],
.modal-box form div[style*="justify-content"],
.modal-overlay form div[style*="justify-content"],
.modal-backdrop form div[style*="justify-content"],
.modal-card div[style*="justify-content: flex-end"],
.modal-card div[style*="justify-content:flex-end"],
.modal-box div[style*="justify-content: flex-end"],
.modal-box div[style*="justify-content:flex-end"] {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
}

.modal-card button,
.modal-box button,
.modal-overlay button,
.modal-backdrop button,
.modal-footer button,
.modal-actions button,
.btn-cancel,
.btn-modal-cancel,
.btn-modal-confirm {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 1.35rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    margin: 0 !important;
}

/* Header Close Button Exception (X button top-right) */
.modal-header .modal-close-btn,
.modal-card .close-btn,
.modal-box .modal-close-btn,
button.modal-close-btn,
.modal-close-btn {
    height: 32px !important;
    width: 32px !important;
    min-height: 32px !important;
    min-width: 32px !important;
    max-height: 32px !important;
    max-width: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.modal-header .modal-close-btn:hover,
button.modal-close-btn:hover {
    background: rgba(244, 63, 94, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(244, 63, 94, 0.5) !important;
}

/* Modal Cancel / Secondary Button Styling */
.btn-cancel,
.btn-modal-cancel,
.modal-card .btn-danger-sm,
.modal-card .btn-secondary,
.modal-box .btn-danger-sm,
.modal-box .btn-secondary,
.modal-overlay .btn-danger-sm,
.modal-overlay .btn-secondary {
    background: rgba(244, 63, 94, 0.15) !important;
    color: #fda4af !important;
    border: 1px solid rgba(244, 63, 94, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.btn-cancel:hover,
.btn-modal-cancel:hover,
.modal-card .btn-danger-sm:hover,
.modal-card .btn-secondary:hover,
.modal-box .btn-danger-sm:hover,
.modal-box .btn-secondary:hover,
.modal-overlay .btn-danger-sm:hover,
.modal-overlay .btn-secondary:hover {
    background: rgba(244, 63, 94, 0.35) !important;
    color: #ffffff !important;
    border-color: rgba(251, 113, 133, 0.8) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4) !important;
}

/* Modal Primary / Confirm Button Styling */
.btn-modal-confirm,
.modal-card .btn-primary,
.modal-card .btn-gold,
.modal-box .btn-primary,
.modal-box .btn-gold,
.modal-overlay .btn-primary,
.modal-overlay .btn-gold {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: #ffffff !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35) !important;
}

.btn-modal-confirm:hover,
.modal-card .btn-primary:hover,
.modal-card .btn-gold:hover,
.modal-box .btn-primary:hover,
.modal-box .btn-gold:hover,
.modal-overlay .btn-primary:hover,
.modal-overlay .btn-gold:hover {
    background: linear-gradient(135deg, #b45309, #92400e) !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5) !important;
}

/* ==========================================================================
   Coming Soon & Disabled Menu Badges Design
   ========================================================================== */
.badge-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.2;
    white-space: nowrap;
}

.bento-card.is-coming-soon {
    position: relative;
    cursor: pointer;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card.is-coming-soon .bento-title span {
    color: #0f172a !important;
}

.bento-card.is-coming-soon .bento-desc {
    color: #475569 !important;
}

.bento-card.is-coming-soon:hover {
    transform: translateY(-4px);
    border-color: #3b82f6 !important;
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.15) !important;
}

.drawer-menu-item.disabled-menu-item {
    opacity: 0.88;
    position: relative;
    cursor: pointer;
}

.drawer-menu-item.disabled-menu-item:hover {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

/* Coming Soon Custom Toast/Modal */
.cs-toast-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 14, 11, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease-out forwards;
}

.cs-toast-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.25);
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    padding: 2.25rem 2rem 1.75rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUpScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cs-toast-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6, #10b981);
    background-size: 300% 100%;
    animation: gradientShift 3s linear infinite;
}

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

/* ==========================================================================
   SkolaDigi Multi-Tenant SaaS Sidebar & App Layout Core CSS
   ========================================================================== */
/* ==========================================================================
   SkolaDigi Multi-Tenant SaaS Sidebar & App Layout Core CSS
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main, #f8fafc);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-body, #1e293b);
    margin: 0;
    overflow-x: hidden;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    width: 270px;
    min-width: 270px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 999;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px;
}

.sidebar-header .brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-header .brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
}

.sidebar-header .brand-subtitle {
    font-size: 0.68rem;
    color: #059669;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mobile-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
}

.user-badge-card {
    margin: 1rem 1.15rem 0.5rem 1.15rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.user-avatar {
    font-size: 1.85rem;
    color: #059669;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.user-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 3px;
    width: fit-content;
}

.role-enlighten { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #ffffff; }
.role-supervisor { background: linear-gradient(135deg, #0284c7, #0369a1); color: #ffffff; }
.role-admin { background: linear-gradient(135deg, #059669, #047857); color: #ffffff; }
.role-guru { background: linear-gradient(135deg, #d97706, #b45309); color: #ffffff; }
.role-siswa { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #ffffff; }

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.85rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    padding: 0.9rem 0.85rem 0.35rem 0.85rem;
    margin-top: 0.4rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 0.9rem;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateX(3px);
}

.nav-item:hover i {
    color: #059669;
}

.nav-item.active {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    font-weight: 700;
    border-color: #047857;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
}

.nav-item.active i {
    color: #ffffff;
}

.sidebar-footer {
    padding: 1rem 1.15rem;
    border-top: 1px solid #e2e8f0;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.68rem;
    background: #ffe4e6;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    color: #be123c;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.25);
}

.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-main, #f8fafc);
}

@media (min-width: 993px) {
    .main-content {
        margin-left: 270px;
    }
}

.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.top-navbar-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.top-navbar-sub {
    font-size: 0.74rem;
    color: var(--gold-bright, #fbbf24);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.top-navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-pill-dropdown {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.42rem 0.95rem;
    font-size: 0.83rem;
    font-weight: 700;
    color: #ffffff;
}

.mobile-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
}

.page-body {
    padding: 1.25rem 1.25rem 3.5rem 1.25rem !important;
    flex: 1;
    max-width: 1240px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

.app-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: #475569 !important;
    font-weight: 600;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    border-radius: 16px;
    margin-top: 2.5rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.app-footer strong {
    color: #0f172a !important;
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0 !important;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-toggle-btn {
        display: flex;
    }
    
    .mobile-close-btn {
        display: block;
    }
    
    .page-body {
        padding: 1.25rem 1rem 2rem 1rem;
    }
}

/* ==========================================================================
   ULTRA-LUXURY STUDENT DASHBOARD & REKAP PRESENSI SYSTEM
   ========================================================================== */
/* ==========================================================================
   ULTRA-LUXURY STUDENT DASHBOARD & REKAP PRESENSI SYSTEM
   ========================================================================== */
.student-hero-banner {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-card, 22px);
    padding: 1.35rem 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.student-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.student-avatar-halo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
    border: 2px solid #ffffff;
}

.student-info-main h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.student-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #475569;
}

.student-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 3px 10px;
    border-radius: 12px;
    color: #334155;
    font-weight: 600;
}

.student-chip strong {
    color: #0f172a !important;
}

/* Presensi Luxury Card Container */
.presensi-luxury-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 22px;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.presensi-header-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.presensi-title-group h3 {
    margin: 4px 0 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Presensi Quick Check-in Cards */
.presensi-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.presensi-check-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 1.1rem;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.presensi-check-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.presensi-check-card.masuk-done {
    background: #d1fae5;
    border-color: #a7f3d0;
}

.presensi-check-card.masuk-pending {
    background: #fef3c7;
    border-color: #fde68a;
}

.presensi-check-card.pulang-done {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.presensi-check-card.pulang-pending {
    background: #ffe4e6;
    border-color: #fecdd3;
}

.presensi-check-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #ffffff;
}

/* KPI Summary Widgets */
.presensi-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.presensi-kpi-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 1rem 0.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.presensi-kpi-card:hover {
    border-color: #059669;
    background: #f8fafc;
}

.presensi-kpi-val {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.presensi-kpi-lbl {
    font-size: 0.72rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Kalender Presensi Luxury Grid */
.attendance-calendar-wrapper {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.attendance-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    min-width: 320px;
}

.attendance-day-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    padding: 6px 0;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    text-align: center;
}

.attendance-cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 4px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
}

.attendance-cell.cell-today {
    border-color: #d97706;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
}

.attendance-cell.cell-hadir {
    background: #d1fae5;
    border-color: #a7f3d0;
}

.attendance-cell.cell-izin {
    background: #fef3c7;
    border-color: #fde68a;
}

.attendance-cell.cell-sakit {
    background: #e0f2fe;
    border-color: #bae6fd;
}

.attendance-cell.cell-alpa {
    background: #ffe4e6;
    border-color: #fecdd3;
}

.cell-num {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
}

.cell-badge {
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Tabel Histori Presensi Rinci */
.attendance-history-table-wrapper {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.attendance-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}

.attendance-history-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid #059669;
}

.attendance-history-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.attendance-history-table tr:last-child td {
    border-bottom: none;
}

.attendance-history-table tr:hover td {
    background: rgba(16, 185, 129, 0.06);
}

/* Media Queries for Mobile Responsiveness (HP) */
@media (max-width: 992px) {
    .presensi-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .student-hero-banner {
        padding: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .presensi-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .presensi-kpi-card:first-child {
        grid-column: span 2;
    }

    .attendance-cell {
        min-height: 44px;
        padding: 4px 2px;
    }

    .cell-num {
        font-size: 0.72rem;
    }

    .cell-badge {
        font-size: 0.58rem;
    }

    .newspaper-gazette-card div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .newspaper-gazette-card div[style*="border-right"] {
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .presensi-luxury-card {
        padding: 1rem;
    }

    .presensi-kpi-val {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   FLOATING QUICK NAVIGATION WIDGET & MODAL SYSTEM
   ========================================================================== */

/* ==========================================================================
   HEADER NAVBAR QUICK NAVIGATION MODAL SYSTEM
   ========================================================================== */

#skoladigi-floating-menu-wrapper {
    display: none !important;
}

/* Modal Overlay & Dialog */
.skoladigi-nav-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 16px;
}

.skoladigi-nav-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.skoladigi-nav-modal-dialog {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2), 0 0 40px rgba(5, 150, 105, 0.1);
    width: 100%;
    max-width: 980px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.94) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skoladigi-nav-modal-backdrop.active .skoladigi-nav-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.skoladigi-nav-modal-header {
    padding: 20px 24px 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.nav-header-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-header-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d1fae5, #fef3c7);
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.nav-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-header-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 2px 0 0 0;
    font-weight: 500;
}

.nav-header-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    color: #0f172a;
    font-weight: 700;
}

.nav-header-user-pill .role-tag {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.skoladigi-nav-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.skoladigi-nav-close-btn:hover {
    background: #ffe4e6;
    border-color: #fecdd3;
    color: #e11d48;
    transform: rotate(90deg);
}

/* Search Box */
.skoladigi-nav-search-wrap {
    position: relative;
    width: 100%;
}

.skoladigi-nav-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #d97706;
    font-size: 1.1rem;
    pointer-events: none;
}

.skoladigi-nav-search-input {
    width: 100%;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px;
    padding: 11px 16px 11px 42px;
    color: #0f172a !important;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    transition: all 0.25s ease;
}

.skoladigi-nav-search-input:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 12px rgba(5, 150, 105, 0.2) !important;
    background: #ffffff !important;
}

.skoladigi-nav-search-input::placeholder {
    color: #94a3b8;
}

/* Modal Body */
.skoladigi-nav-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #ffffff;
}

/* Category Sections */
.skoladigi-cat-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skoladigi-cat-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #cbd5e1;
}

.skoladigi-cat-title.cat-portal { color: #0284c7; }
.skoladigi-cat-title.cat-finance { color: #b45309; }
.skoladigi-cat-title.cat-academic { color: #6b21a8; }
.skoladigi-cat-title.cat-setup { color: #be185d; }

/* Menu Grid */
.skoladigi-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.skoladigi-menu-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.skoladigi-menu-card:hover {
    background: #f8fafc;
    border-color: #059669;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.skoladigi-menu-card.is-active-page {
    background: #d1fae5;
    border: 1.5px solid #059669;
    box-shadow: 0 0 12px rgba(5, 150, 105, 0.2);
}

/* Icon Box inside Menu Card */
.menu-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
}

.skoladigi-menu-card:hover .menu-icon-box {
    transform: scale(1.1) rotate(4deg);
}

/* Icon Box Colors */
.icon-bg-cyan { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #fff; }
.icon-bg-emerald { background: linear-gradient(135deg, #059669, #34d399); color: #fff; }
.icon-bg-amber { background: linear-gradient(135deg, #d97706, #fbbf24); color: #fff; }
.icon-bg-indigo { background: linear-gradient(135deg, #4f46e5, #818cf8); color: #fff; }
.icon-bg-purple { background: linear-gradient(135deg, #7c3aed, #c084fc); color: #fff; }
.icon-bg-rose { background: linear-gradient(135deg, #e11d48, #fb7185); color: #fff; }
.icon-bg-teal { background: linear-gradient(135deg, #0d9488, #2dd4bf); color: #fff; }
.icon-bg-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff; }

.menu-card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.menu-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-card-desc {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.active-page-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #059669;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.menu-card-arrow {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.skoladigi-menu-card:hover .menu-card-arrow {
    color: #059669;
    transform: translateX(4px);
}

/* Empty State search */
.skoladigi-nav-empty {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-size: 0.9rem;
    display: none;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .skoladigi-nav-modal-dialog {
        max-height: 92vh;
        border-radius: 20px;
    }

    .skoladigi-nav-modal-header {
        padding: 16px;
    }

    .skoladigi-nav-modal-body {
        padding: 16px;
        gap: 18px;
    }

    .skoladigi-menu-grid {
        grid-template-columns: 1fr;
    }
}





