﻿/* ============================================================
   SATOTANG SMANIKA - Flat Soft UI Theme
   Clean flat design with soft colors
   ============================================================ */
:root {
    /* === PRIMARY PALETTE (Purple/Indigo) === */
    --purple-deep: #5B4CE0;
    --purple-light: #7C6FF0;
    --purple-softest: #EDE9FE;
    --purple-glow: rgba(91, 76, 224, 0.15);

    --warm-white: #FAFBFE;
    --ice-gray: #F1F3F9;
    --cloud-gray: #E4E7F0;
    --slate-text: #1E1B3A;
    --muted-ink: #6B7196;

    /* === SEMANTIC COLORS === */
    --emerald: #10B981;
    --emerald-bg: rgba(16, 185, 129, 0.12);
    --amber: #F59E0B;
    --amber-bg: rgba(245, 158, 11, 0.12);
    --coral: #EF4444;
    --coral-bg: rgba(239, 68, 68, 0.10);
    --sky: #3B82F6;
    --sky-bg: rgba(59, 130, 246, 0.10);
    --rose: #EC4899;
    --rose-bg: rgba(236, 72, 153, 0.10);
    --teal: #14B8A6;
    --teal-bg: rgba(20, 184, 166, 0.10);
    --indigo: #6366F1;
    --indigo-bg: rgba(99, 102, 241, 0.10);

    /* === MAPPED TOKENS === */
    --primary: var(--purple-deep);
    --primary-light: var(--purple-light);
    --primary-dark: #4338CA;
    --primary-bg: var(--purple-softest);

    --accent: var(--purple-deep);
    --accent-dark: #4338CA;
    --accent-bg: var(--purple-glow);
    --accent-solid: #5B4CE0;

    --soft-green: var(--emerald);
    --soft-green-bg: var(--emerald-bg);
    --soft-red: var(--coral);
    --soft-red-bg: var(--coral-bg);
    --soft-blue: var(--sky);
    --soft-blue-bg: var(--sky-bg);
    --soft-orange: var(--amber);
    --soft-orange-bg: var(--amber-bg);
    --soft-pink: var(--rose);
    --soft-pink-bg: var(--rose-bg);
    --soft-teal: var(--teal);
    --soft-teal-bg: var(--teal-bg);
    --soft-violet: var(--indigo);
    --soft-violet-bg: var(--indigo-bg);

    --bg: var(--warm-white);
    --bg-secondary: var(--ice-gray);
    --cotton: var(--ice-gray);
    --crystal-falls: var(--ice-gray);
    --card: #FFFFFF;
    --border: var(--cloud-gray);
    --border-light: var(--cloud-gray);
    --text: var(--slate-text);
    --text-secondary: #3D3A5C;
    --muted: var(--muted-ink);
    --light: #FFFFFF;
    --shadow-soft: 0 4px 24px rgba(91, 76, 224, 0.06);
    --shadow-card: 0 2px 16px rgba(91, 76, 224, 0.06), 0 0 0 1px rgba(91, 76, 224, 0.03);
    --shadow-elevated: 0 8px 40px rgba(91, 76, 224, 0.12);

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Nav icon colors (for colorful sidebar) */
    --icon-dashboard: #5B4CE0;
    --icon-absensi: #10B981;
    --icon-rekap: #3B82F6;
    --icon-pantau: #F59E0B;
    --icon-jadwal: #EC4899;
    --icon-dinas: #14B8A6;
    --icon-tatib: #EF4444;
    --icon-tatib-rekap: #8B5CF6;
    --icon-warning: #F97316;
    --icon-siswa: #06B6D4;
    --icon-kelas: #6366F1;
    --icon-guru: #0EA5E9;
    --icon-aturan: #A855F7;
    --icon-libur: #F43F5E;
    --icon-kelulusan: #8B5CF6;
    --icon-settings: #64748B;
    --icon-akun: #0D9488;
}

/* === RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}
input, select, textarea, button { font-family: inherit; }

/* === LAYOUT === */
.app-wrapper { display: flex; min-height: 100vh; width: 100%; position: relative; }

/* === SIDEBAR === */
.sidebar {
    width: 286px;
    background: var(--card);
    border: 1px solid var(--border-light);
    position: fixed;
    top: 18px;
    left: 18px;
    height: calc(100% - 36px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
}

.sidebar-logo {
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--border-light);
    background: var(--card);
}
.sidebar-logo h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: 0;
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
}
.sidebar-logo p {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.35;
    max-width: 220px;
}

.sidebar-nav {
    flex: 1;
    padding: 14px 14px 18px;
    overflow-y: auto;
}
.nav-section {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    padding: 18px 14px 8px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    margin-bottom: 5px;
}
.nav-item:hover {
    background: var(--cotton);
    border-color: var(--border);
    color: var(--text);
    transform: translateX(2px);
}
.nav-item.active {
    background: #5B4CE0;
    color: white;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(91, 76, 224, 0.25);
}
.nav-item.active i { color: white !important; }
.nav-item i { width: 22px; text-align: center; font-size: 16px; }

/* === COLORFUL NAV ICONS === */
.nav-item[data-page='dashboard'] i { color: var(--icon-dashboard); }
.nav-item[data-page='absensi'] i { color: var(--icon-absensi); }
.nav-item[data-page='rekap'] i { color: var(--icon-rekap); }
.nav-item[data-page='pantau'] i { color: var(--icon-pantau); }
.nav-item[data-page='jadwal'] i { color: var(--icon-jadwal); }
.nav-item[data-page='tugas-dinas'] i { color: var(--icon-dinas); }
.nav-item[data-page='tatib-catat'] i { color: var(--icon-tatib); }
.nav-item[data-page='tatib-rekap'] i { color: var(--icon-tatib-rekap); }
.nav-item[data-page='tatib-warning'] i { color: var(--icon-warning); }
.nav-item[data-page='data-siswa'] i { color: var(--icon-siswa); }
.nav-item[data-page='data-kelas'] i { color: var(--icon-kelas); }
.nav-item[data-page='data-guru'] i { color: var(--icon-guru); }
.nav-item[data-page='data-aturan'] i { color: var(--icon-aturan); }
.nav-item[data-page='hari-libur'] i { color: var(--icon-libur); }
.nav-item[data-page='kelulusan'] i { color: var(--icon-kelulusan); }
.nav-item[data-page='settings'] i { color: var(--icon-settings); }
.nav-item[data-page='akun'] i { color: var(--icon-akun); }

.sidebar-footer {
    padding: 14px;
    border-top: 1px solid var(--border-light);
    background: var(--card);
}
.conn-status {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--soft-green-bg);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    margin-bottom: 10px;
}
.conn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    width: 100%;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: var(--card);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-logout:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

/* === MAIN AREA === */
.main-area {
    flex: 1;
    margin-left: 322px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.main-area::before,
.main-area::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.main-area::before {
    width: 760px;
    height: 380px;
    top: -60px;
    right: -220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 380'%3E%3Cpath d='M736 42C633 54 590 120 510 164C411 218 290 181 215 242C162 285 126 334 54 344' fill='none' stroke='%235B4CE0' stroke-opacity='0.06' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.main-area::after {
    width: 620px;
    height: 320px;
    left: -180px;
    bottom: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 320'%3E%3Cpath d='M16 238C90 206 109 133 196 113C287 91 355 142 430 118C493 98 528 54 603 34' fill='none' stroke='%235B4CE0' stroke-opacity='0.05' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* === TOPBAR === */
.topbar {
    background: var(--card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 18px;
    z-index: 10;
    margin: 18px 24px 0;
    border-radius: 28px;
}

.content {
    padding: 22px 24px 30px;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.content::before,
.content::after {
    content: none;
}

.content > * {
    position: relative;
    z-index: 1;
}

/* === CARDS & BUTTONS === */
.card {
    background: var(--card);
    border-radius: 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}
.card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.btn-primary {
    background: #5B4CE0;
    color: white;
    font-weight: 700;
    border-radius: 18px;
    border: none;
    padding: 12px 22px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(91, 76, 224, 0.25);
}
.btn-primary:hover {
    background: #4F3FD5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 76, 224, 0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
    background: var(--primary);
    color: #FFFFFF;
    opacity: 0.58;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-weight: 600;
    border-radius: 18px;
    padding: 10px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-secondary:hover {
    background: var(--soft-blue-bg);
    border-color: var(--accent);
    color: var(--text);
}
.btn-secondary:disabled {
    background: var(--card);
    color: var(--muted);
    opacity: 0.72;
    cursor: not-allowed;
}

.btn-danger {
    background: var(--soft-red-bg);
    color: var(--soft-red);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-danger:hover {
    background: var(--soft-red);
    border-color: var(--soft-red);
    color: white;
}

.input-field {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 11px 16px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--card);
    width: 100%;
    color: var(--text);
    font-weight: 600;
}
.input-field:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--card);
    box-shadow: none;
}
.input-field::placeholder { color: var(--muted); font-weight: 500; }

/* === TABLE === */
.table-pro {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.table-pro thead th {
    background: var(--cotton);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 14px 16px;
    border-bottom: 1.5px solid var(--border);
}
.table-pro tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}
.table-pro tbody tr {
    transition: background 0.15s;
}
.table-pro tbody tr:hover {
    background: var(--soft-blue-bg);
}
.table-pro tbody tr:last-child td { border-bottom: none; }

/* Responsive Table Wrapper */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }

/* === STATUS BUTTONS (Absensi) === */
.status-btn {
    transition: all 0.2s ease;
    min-width: 42px;
    width: 42px;
    min-height: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--border);
    background: white;
    color: var(--muted);
    font-size: 13px;
    box-shadow: none;
}
.status-btn:hover:not(:disabled) {
    transform: none;
    border-color: var(--accent);
}
.status-btn.active {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.04);
}
.status-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.status-H.active { background: #10B981; color: white; border-color: #10B981; }
.status-S.active { background: #F59E0B; color: white; border-color: #F59E0B; }
.status-I.active { background: #3B82F6; color: white; border-color: #3B82F6; }
.status-A.active { background: #EF4444; color: white; border-color: #EF4444; }
.status-B.active { background: #1E1B3A; color: white; border-color: #1E1B3A; }

.absensi-status-th {
    width: 74px;
    min-width: 74px;
    text-align: center;
    vertical-align: middle;
}

.absensi-status-th-label,
.absensi-status-th-code {
    display: block;
    line-height: 1.1;
}

.absensi-status-th-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 5px;
}

.absensi-status-th-code {
    font-size: 13px;
    font-weight: 900;
    color: var(--text);
}

.absensi-status-cell {
    width: 74px;
    min-width: 74px;
    text-align: center;
    vertical-align: middle;
    padding-left: 6px;
    padding-right: 6px;
}

.absensi-status-choice {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.absensi-status-label {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 18px;
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    text-align: center;
    line-height: 1.1;
}

/* === JAM BUTTONS (Hour Selector) === */
.jam-btn {
    min-width: 46px;
    min-height: 46px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: white;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jam-btn:hover {
    background: var(--soft-blue-bg);
    border-color: var(--accent);
    color: var(--text);
}
.jam-btn.active {
    background: #5B4CE0;
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}
.jam-btn.filled {
    border-color: var(--accent);
    background: var(--soft-blue-bg);
    color: var(--primary);
}
.jam-btn.filled.active {
    background: #5B4CE0;
    color: white;
    border-color: var(--primary);
}

/* === STAT CARDS === */
.stat-card { display: flex; align-items: center; gap: 16px; padding: 22px; }
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
}
.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
}

/* === TOPBAR REFRESH === */
.topbar-group,
.topbar-user {
    display: flex;
    align-items: center;
}

.topbar-group {
    gap: 14px;
}

.topbar-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topbar-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.topbar-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
}

.topbar-subtitle {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.topbar-user {
    gap: 14px;
    padding: 6px 6px 6px 16px;
    border-radius: 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.topbar-user-meta {
    text-align: right;
}

.topbar-user-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.topbar-user-role {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

.topbar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #5B4CE0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(91, 76, 224, 0.25);
}

.sidebar-role {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-role-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-role-text small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.sidebar-role-text span {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

/* === DASHBOARD REFRESH === */
.dashboard-shell {
    display: grid;
    gap: 20px;
}

.dashboard-shell-atmosphere {
    position: relative;
    isolation: isolate;
    padding: 6px 4px 12px;
}

.dashboard-shell-atmosphere::before,
.dashboard-shell-atmosphere::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.dashboard-shell-atmosphere::before {
    width: min(100%, 920px);
    height: 190px;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 920 190'%3E%3Cpath d='M16 150C144 108 209 145 324 110C447 72 517 26 642 42C742 56 804 126 904 100' fill='none' stroke='%231A1A1A' stroke-opacity='0.06' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dashboard-shell-atmosphere::after {
    content: none;
}

.dashboard-ornament {
    display: none;
}

.metric-grid {
    position: relative;
    z-index: 1;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px;
    background: var(--card);
}

.dashboard-hero::before,
.dashboard-hero::after {
    content: none;
}

.dashboard-hero-copy,
.dashboard-hero-visual {
    position: relative;
    z-index: 1;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--cotton);
    border: 1px solid var(--border-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.dashboard-title {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 10px;
    max-width: 640px;
}

.dashboard-title strong {
    color: var(--accent);
}

.dashboard-subtitle {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 620px;
}

.dashboard-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-badge,
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--border-light);
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.hero-badge i,
.hero-chip i {
    color: var(--accent);
}

.dashboard-hero-visual {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.hero-visual-card {
    width: min(100%, 360px);
    min-height: 100%;
    padding: 18px;
    border-radius: 28px;
    background: var(--cotton);
    border: 1px solid var(--border-light);
    display: grid;
    gap: 14px;
}

.hero-visual-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.hero-visual-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-visual-score {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-top: 6px;
}

.hero-visual-pill {
    padding: 10px 12px;
    border-radius: 18px;
    background: var(--soft-violet-bg);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.hero-visual-image {
    border-radius: 24px;
    background: var(--card);
    padding: 16px;
    display: grid;
    gap: 12px;
    min-height: 220px;
}

.hero-visual-list {
    display: grid;
    gap: 12px;
}

.hero-visual-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--cotton);
    border: 1px solid var(--border-light);
}

.hero-visual-item-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.hero-visual-item-value {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.hero-visual-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-mini {
    padding: 14px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--border-light);
}

.hero-mini-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.hero-mini-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

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

.metric-card {
    padding: 22px;
    display: grid;
    gap: 12px;
    cursor: default;
}

.metric-card.is-link {
    cursor: pointer;
}

.metric-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.metric-trend {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--cotton);
}

.metric-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.metric-value {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: var(--text);
    margin: 8px 0 0;
}

.metric-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.metric-card.is-blue .metric-icon {
    background: var(--soft-blue-bg);
    color: var(--soft-blue);
}

.metric-card.is-green .metric-icon {
    background: var(--soft-green-bg);
    color: var(--primary);
}

.metric-card.is-violet .metric-icon {
    background: var(--soft-violet-bg);
    color: var(--soft-violet);
}

.metric-card.is-orange .metric-icon {
    background: var(--soft-orange-bg);
    color: var(--primary);
}

.metric-card.is-pink .metric-icon {
    background: var(--soft-pink-bg);
    color: var(--primary);
}

.metric-card.is-red .metric-icon {
    background: var(--soft-red-bg);
    color: var(--primary);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.feature-panel,
.stack-panel {
    padding: 24px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-title-wrap {
    display: grid;
    gap: 4px;
}

.panel-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.panel-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
}

.panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    background: var(--cotton);
    border: 1px solid var(--border-light);
}

.panel-description {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.action-card {
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 18px;
    background: var(--card);
    display: grid;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
}

.action-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.action-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.action-arrow {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cotton);
    color: var(--text);
}

.action-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.action-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.action-card.is-blue .action-icon {
    background: var(--soft-blue-bg);
    color: var(--soft-blue);
}

.action-card.is-orange .action-icon {
    background: var(--soft-orange-bg);
    color: var(--primary);
}

.action-card.is-violet .action-icon {
    background: var(--soft-violet-bg);
    color: var(--soft-violet);
}

.action-card.is-green .action-icon {
    background: var(--soft-green-bg);
    color: var(--primary);
}

.stack-grid {
    display: grid;
    gap: 18px;
}

.overview-card {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.overview-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.overview-badge {
    padding: 10px 12px;
    border-radius: 18px;
    background: var(--accent-bg);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.overview-main {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.overview-caption {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 8px;
}

.progress-track {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--cotton);
    border: 1px solid var(--border-light);
}

.info-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.info-value {
    font-size: 13px;
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.mini-rows {
    display: grid;
    gap: 12px;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border-light);
}

.mini-row-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-row-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-blue-bg);
    color: var(--soft-blue);
}

.mini-row:nth-child(2) .mini-row-icon {
    background: var(--soft-green-bg);
    color: var(--primary);
}

.mini-row-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.mini-row-sub {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.mini-row-value {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.compact-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 6px;
}

.simple-divider {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.selection-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.selection-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.selection-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-light);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.selection-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selection-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--soft-blue-bg);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.selection-badge.is-secondary {
    background: var(--soft-green-bg);
    color: var(--primary);
}

.selection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.student-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.student-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: var(--card);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.student-check-item:hover {
    border-color: var(--accent);
    background: var(--soft-blue-bg);
    transform: translateY(-1px);
}

.student-check-item.is-active {
    border-color: var(--accent);
    background: var(--soft-blue-bg);
}

.student-check-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.student-check-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.empty-note {
    padding: 16px;
    border-radius: 18px;
    background: var(--crystal-falls);
    border: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.absensi-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.absensi-filter-date {
    min-width: 140px;
}

.absensi-date-picker {
    position: relative;
}

.absensi-date-display {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.absensi-date-display:hover,
.absensi-date-picker.is-open .absensi-date-display {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.absensi-date-display i {
    color: var(--muted);
    font-size: 14px;
}

.absensi-date-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 30;
    width: min(320px, calc(100vw - 40px));
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.absensi-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.absensi-calendar-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

.absensi-calendar-nav {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--light-gray);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.absensi-calendar-nav:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
}

.absensi-calendar-weekdays,
.absensi-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.absensi-calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    padding: 3px 0 6px;
}

.absensi-calendar-weekday.is-sunday {
    color: #dc2626;
}

.absensi-calendar-day {
    min-height: 38px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.absensi-calendar-day:hover {
    background: var(--light-gray);
    transform: translateY(-1px);
}

.absensi-calendar-day.is-muted {
    color: rgba(26, 26, 26, 0.38);
}

.absensi-calendar-day.is-sunday {
    color: #dc2626;
}

.absensi-calendar-day.is-today {
    box-shadow: inset 0 0 0 1px var(--border-light);
}

.absensi-calendar-day.is-selected {
    background: #5B4CE0;
    color: white;
}

.absensi-filter-class {
    min-width: 180px;
    flex: 1;
}

.absensi-jam-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.absensi-summary {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.absensi-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.absensi-actions .btn-primary,
.absensi-actions .btn-secondary {
    min-height: 46px;
    justify-content: center;
}

.absensi-mobile-list {
    display: grid;
    gap: 12px;
}

.absensi-mobile-card {
    padding: 18px;
}

.absensi-mobile-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.absensi-mobile-number {
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--soft-blue-bg);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.absensi-mobile-info {
    min-width: 0;
}

.absensi-mobile-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.absensi-mobile-nisn {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.absensi-mobile-statuses {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.absensi-mobile-status-item {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 16px;
    background: var(--light);
    border: 1px solid var(--border-light);
}

.absensi-mobile-status-label {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 28px;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
    line-height: 1.15;
}

/* === ANIMATIONS === */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease-out; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* === MOBILE === */
.mobile-header { display: none; }
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.24);
    z-index: 30;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(calc(-100% - 32px));
        top: 12px;
        left: 12px;
        height: calc(100% - 24px);
        width: min(88vw, 320px);
    }
    .sidebar.open { transform: translateX(0); }
    .mobile-overlay.open { display: block; }
    .main-area { margin-left: 0; }
    .main-area::before {
        width: 420px;
        height: 220px;
        top: -20px;
        right: -150px;
    }
    .main-area::after {
        width: 360px;
        height: 190px;
        left: -120px;
        bottom: 90px;
    }
    .content { padding: 14px; }
    .mobile-header { display: flex; }
    .stat-value { font-size: 22px; }
    .sidebar-logo { padding: 18px; }
    .sidebar-logo h2 { font-size: 14px; }
    .topbar {
        gap: 12px;
        margin: 12px 14px 0;
        padding: 16px;
        border-radius: 24px;
        top: 12px;
    }
    .topbar-title { font-size: 18px; }
    .btn-primary, .btn-secondary { padding: 10px 14px; font-size: 12px; }
    .input-field { padding: 9px 12px; font-size: 13px; }
    .card { overflow-x: auto !important; }
    .absensi-controls,
    .absensi-guru-card,
    .absensi-mobile-card {
        overflow: visible !important;
    }
    .absensi-filter-row {
        display: grid;
        grid-template-columns: 1fr;
    }
    .absensi-filter-date,
    .absensi-filter-class {
        min-width: 0;
        width: 100%;
    }
    .absensi-date-popover {
        width: 100%;
    }
    .absensi-load-btn {
        width: 100%;
        justify-content: center;
    }
    .absensi-guru-inner {
        flex-wrap: wrap;
        align-items: stretch !important;
    }
    .absensi-guru-inner .input-field {
        width: 100%;
    }
    .absensi-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .absensi-actions .btn-primary,
    .absensi-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .dashboard-hero,
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-shell-atmosphere {
        padding: 0 0 10px;
    }
    .dashboard-shell-atmosphere::before {
        width: calc(100% + 8px);
        height: 120px;
        top: -4px;
    }
    .action-grid {
        grid-template-columns: 1fr;
    }
    .hero-visual-footer {
        grid-template-columns: 1fr;
    }
}

/* === PRINT === */
@media print {
    @page { margin: 6mm; }
    .sidebar, .topbar, .mobile-header, .mobile-overlay, .no-print, #abs-actions { display: none !important; }
    html, body, .app-wrapper, .main-area, .content {
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    .main-area {
        margin-left: 0 !important;
        display: block !important;
    }
    .main-area::before,
    .main-area::after,
    .content::before,
    .content::after {
        content: none !important;
        display: none !important;
    }
    .content { padding: 0 !important; display: block !important; }
    body { background: white !important; color: #000 !important; }
    .card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }
    .card.no-print { display: none !important; }
    table { width: 100%; border-collapse: collapse; margin-top: 10px; }
    th, td { border: 1px solid #000 !important; padding: 4px 8px !important; font-size: 11px !important; }
    th.no-print, td.no-print { display: none !important; }
    table.info-table td, .print-only table td { border: none !important; }
    .print-only { display: block !important; color: #000 !important; }
    .print-only * { color: #000 !important; }
    .daily-rekap-card {
        overflow: visible !important;
    }
    .daily-rekap-table {
        width: 100% !important;
        table-layout: fixed !important;
    }
    .daily-rekap-table th,
    .daily-rekap-table td {
        padding: 3px 5px !important;
        font-size: 9px !important;
        line-height: 1.15 !important;
        word-break: break-word !important;
    }
    .daily-rekap-table th:first-child,
    .daily-rekap-table td:first-child {
        width: 24px !important;
        text-align: center !important;
    }
    .daily-rekap-table th:nth-child(2),
    .daily-rekap-table td:nth-child(2) {
        width: 210px !important;
        white-space: normal !important;
    }
    .monthly-rekap-card {
        overflow: visible !important;
    }
    .monthly-rekap-table {
        width: 100% !important;
        table-layout: fixed;
        margin-top: 6px !important;
    }
    .monthly-rekap-table thead th {
        font-size: 7px !important;
        padding: 3px 2px !important;
        letter-spacing: 0.01em !important;
        line-height: 1.05 !important;
    }
    .monthly-rekap-table tbody td {
        font-size: 7px !important;
        padding: 3px 2px !important;
        line-height: 1.1 !important;
    }
    .monthly-rekap-table .monthly-name {
        white-space: normal !important;
        line-height: 1.15 !important;
        word-break: break-word !important;
        width: 120px !important;
    }
    .monthly-rekap-table .monthly-no {
        width: 22px !important;
        text-align: center !important;
    }
    .monthly-rekap-table .monthly-day,
    .monthly-rekap-table .monthly-total {
        width: 15px !important;
        min-width: 15px !important;
    }
    .btn-primary, .btn-secondary, .btn-danger { display: none !important; }
    .kop-surat { border-bottom-color: #000 !important; }
    .signature-section {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-top: 14px !important;
        padding-bottom: 18mm !important;
        color: #000 !important;
    }
    .signature-section p {
        margin: 0 0 3px !important;
        color: #000 !important;
        line-height: 1.35 !important;
    }
    .sig-box { overflow: visible !important; }
    .sig-space { height: 14px !important; }
    .sig-name {
        display: block !important;
        color: #000 !important;
        font-weight: 700 !important;
        text-decoration: underline !important;
        white-space: normal !important;
        overflow: visible !important;
    }
}
.print-only { display: none; }

/* Kop Surat */
.kop-surat { text-align: center; border-bottom: 3px double var(--primary); padding-bottom: 10px; margin-bottom: 20px; }
.kop-surat h1 { font-size: 18px; text-transform: uppercase; margin: 2px 0; letter-spacing: 1px; }
.kop-surat h2 { font-size: 16px; margin: 2px 0; }
.kop-surat p { font-size: 11px; margin: 2px 0; }

/* Signatures */
.signature-section { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; text-align: center; font-size: 13px; }
.sig-box { display: flex; flex-direction: column; align-items: center; }
.sig-space { height: 70px; }
.sig-name { font-weight: 700; text-decoration: underline; }

/* === UTILITY CLASSES === */
.form-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 6px;
}
.badge-blue { background: var(--soft-blue-bg); color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-green { background: var(--soft-green-bg); color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-red { background: var(--soft-red-bg); color: var(--soft-red); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-gray { background: var(--bg-secondary); color: var(--text-secondary); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.gap-12 { gap: 12px; }
.mb-16 { margin-bottom: 16px; }

/* === EXPORT BUTTON === */
.btn-export {
    background: #5B4CE0;
    color: white;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    padding: 10px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(91, 76, 224, 0.2);
}
.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(91, 76, 224, 0.3);
}

/* === ENHANCED MOBILE === */
@media (max-width: 480px) {
    .topbar { padding: 14px !important; }
    .content { padding: 12px; }
    .stat-card { padding: 16px; gap: 12px; }
    .stat-icon { width: 42px; height: 42px; font-size: 18px; }
    .stat-value { font-size: 20px; }
    .status-btn { min-width: 38px; min-height: 38px; font-size: 12px; }
    .status-btn { width: 38px; height: 38px; }
    .jam-btn { min-width: 40px; min-height: 40px; font-size: 14px; }
    .topbar-group,
    .topbar-user {
        gap: 10px;
    }
    .topbar-user {
        padding-left: 12px;
    }
    .topbar-user-meta {
        display: none;
    }
    .dashboard-hero,
    .feature-panel,
    .stack-panel,
    .overview-card {
        padding: 18px;
    }
    .dashboard-title {
        font-size: 24px;
    }
    .metric-value,
    .overview-main,
    .hero-visual-score {
        font-size: 28px;
    }
    .absensi-mobile-card {
        padding: 14px;
    }
    .absensi-mobile-statuses {
        gap: 6px;
    }
    .absensi-mobile-status-label {
        min-height: 24px;
        font-size: 9px;
    }
    .absensi-mobile-status-item {
        padding: 8px 4px;
        gap: 6px;
        border-radius: 14px;
    }
}

/* === CUSTOM SWEETALERT2 THEME === */
.swal2-popup {
    border-radius: var(--radius-xl) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.swal2-title {
    font-weight: 800 !important;
    color: var(--text) !important;
}
.swal2-confirm {
    background: #5B4CE0 !important;
    color: white !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    box-shadow: 0 4px 12px rgba(91, 76, 224, 0.25) !important;
}
.swal2-cancel {
    background: var(--card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
