/* ==========================================================================
   DigiMTs - Ultra-Modern High-Contrast Glassmorphism 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 Palette */
    --emerald-deep: #031913;
    --emerald-dark: #06261c;
    --emerald-card: rgba(8, 38, 29, 0.92);
    --emerald-main: #059669;
    --emerald-light: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.35);

    /* Gold / Amber Palette */
    --gold-deep: #78350f;
    --gold-main: #d97706;
    --gold-light: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-border: rgba(255, 215, 0, 0.35);
    --gold-border-hover: rgba(255, 215, 0, 0.75);
    --gold-glow: rgba(245, 158, 11, 0.3);

    /* Neutral & High Contrast Text */
    --bg-main: #040e0b;
    --text-light: #ffffff;
    --text-body: #e2e8f0;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Layout & Radius */
    --radius-squircle: 20px;
    --radius-card: 22px;
    --radius-button: 12px;
    --shadow-luxury: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(5, 150, 105, 0.2);
}

/* 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 5% 10%, rgba(5, 150, 105, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 95% 20%, rgba(245, 158, 11, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(3, 25, 19, 0.9) 0%, transparent 100%);
    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: #ffffff;
}

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

/* Container Structure */
.app-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ==========================================================================
   Header & Brand Banner
   ========================================================================== */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 24, 19, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-card);
    padding: 1.25rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-luxury);
    position: relative;
    overflow: hidden;
}

.portal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #fbbf24, #6366f1, #10b981);
    background-size: 300% 100%;
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand-logo-halo {
    position: relative;
}

.brand-logo-halo::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981, #f59e0b, #6366f1);
    opacity: 0.6;
    filter: blur(8px);
    z-index: 0;
    animation: pulseAura 4s ease-in-out infinite alternate;
}

@keyframes pulseAura {
    0% { opacity: 0.4; filter: blur(6px); }
    100% { opacity: 0.8; filter: blur(12px); }
}

.brand-logo {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    background: #031913;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-bright);
    overflow: hidden;
}

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

.brand-logo svg {
    width: 32px;
    height: 32px;
    color: var(--gold-bright);
}

.glow-text {
    font-size: 1.65rem;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.1rem;
}

.brand-title h1 {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.65rem;
}

.brand-title p {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.npsn-pill {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
}

/* User Badge Header */
.user-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-card-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    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.4);
}

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

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

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

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

.role-admin     { background: rgba(239, 68, 68, 0.25); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.5); }
.role-guru      { background: rgba(59, 130, 246, 0.25); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.5); }
.role-siswa     { background: rgba(16, 185, 129, 0.25); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.5); }
.role-bendahara { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.5); }

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

.btn-logout-vibrant {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.btn-logout-vibrant:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff !important;
    border-color: #f87171;
    transform: translateY(-2px);
}

/* ==========================================================================
   News Ticker Banner
   ========================================================================== */
.news-ticker-banner {
    background: rgba(6, 24, 19, 0.92);
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.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.3);
}

.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: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ticker-item:hover .ticker-title {
    color: var(--gold-bright) !important;
    text-decoration: underline !important;
}

.ticker-title {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.875rem;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    font-size: 1rem;
}

.ticker-btn-more,
.ticker-btn-more:link,
.ticker-btn-more:visited {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ticker-btn-more:hover {
    background: rgba(245, 158, 11, 0.35);
    color: #ffffff !important;
    border-color: #fbbf24;
    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;
}

.stat-card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.card-glow-emerald:hover { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2); }
.card-glow-amber:hover   { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2); }
.card-glow-indigo:hover  { border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2); }
.card-glow-rose:hover    { border-color: rgba(244, 63, 94, 0.6); box-shadow: 0 10px 30px rgba(244, 63, 94, 0.2); }

.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.3); }
.grad-amber   { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
.grad-indigo  { background: linear-gradient(135deg, #4f46e5, #6366f1); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.grad-rose    { background: linear-gradient(135deg, #e11d48, #f43f5e); box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3); }

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

.text-emerald-bright { color: #34d399; }
.text-amber-bright   { color: #fbbf24; }
.text-indigo-bright  { color: #818cf8; }
.text-rose-bright    { color: #fb7185; }

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

/* ==========================================================================
   Quick Filter Tabs Bar & Category Navigation
   ========================================================================== */
.portal-nav-bar {
    background: rgba(6, 24, 19, 0.92);
    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;
    backdrop-filter: blur(16px);
}

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

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

.portal-filter-tab {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1 !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: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

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

/* ==========================================================================
   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: rgba(6, 24, 19, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-luxury);
}

.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: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    min-width: 260px;
}

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

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

.form-input-clean::placeholder {
    color: var(--text-muted);
}

.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: #cbd5e1 !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    display: inline-block;
}

.cat-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.cat-tab.active {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #ffffff !important;
    border-color: #34d399 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    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: rgba(245, 158, 11, 0.25); color: #fbbf24 !important; border: 1px solid rgba(245, 158, 11, 0.5); }
.badge-akademik   { background: rgba(59, 130, 246, 0.25); color: #60a5fa !important; border: 1px solid rgba(59, 130, 246, 0.5); }
.badge-kegiatan   { background: rgba(168, 85, 247, 0.25); color: #c084fc !important; border: 1px solid rgba(168, 85, 247, 0.5); }
.badge-prestasi   { background: rgba(16, 185, 129, 0.25); color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.5); }

.badge-draft {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.5);
    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: rgba(8, 38, 29, 0.92);
    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;
    backdrop-filter: blur(16px);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

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

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

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

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

.news-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    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: var(--text-muted);
}

.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: rgba(245, 158, 11, 0.18);
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.45);
    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: rgba(245, 158, 11, 0.35);
    color: #ffffff !important;
    border-color: #fbbf24;
}

.btn-icon-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-action:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-icon-action.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171 !important;
}

.btn-icon-action.danger:hover {
    background: rgba(239, 68, 68, 0.4);
    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 rgba(255, 255, 255, 0.1);
}

.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: #ffffff !important;
    margin: 0;
}

.category-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    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: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.cat-badge-blue    { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.cat-badge-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.cat-badge-purple  { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }

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

.bento-card {
    background: rgba(8, 38, 29, 0.92);
    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;
    backdrop-filter: blur(16px);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Card Specific Vibrant Border Hover Themes */
.card-amber:hover   { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25); }
.card-gold:hover    { border-color: rgba(251, 191, 36, 0.6); box-shadow: 0 15px 35px rgba(251, 191, 36, 0.25); }
.card-red:hover     { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 15px 35px rgba(239, 68, 68, 0.25); }
.card-indigo:hover { border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25); }
.card-cyan:hover   { border-color: rgba(6, 182, 212, 0.6); box-shadow: 0 15px 35px rgba(6, 182, 212, 0.25); }
.card-blue:hover   { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25); }
.card-emerald:hover{ border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25); }
.card-teal:hover   { border-color: rgba(20, 184, 166, 0.6); box-shadow: 0 15px 35px rgba(20, 184, 166, 0.25); }
.card-purple:hover { border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 15px 35px rgba(168, 85, 247, 0.25); }
.card-violet:hover { border-color: rgba(139, 92, 246, 0.6); box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25); }

.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 6px 15px rgba(0,0,0,0.3);
}

.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: #ffffff !important;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.bento-desc {
    font-size: 0.875rem;
    color: #cbd5e1 !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 rgba(255, 255, 255, 0.1);
}

.bento-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    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-preview-card,
.setup-form-card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
}

.logo-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.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: #ffffff;
}

.preview-school-npsn {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.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: var(--text-muted);
    font-size: 0.775rem;
}

.detail-val {
    color: #ffffff;
    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 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-bright);
}

.form-input-file {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    color: #ffffff;
    width: 100%;
    cursor: pointer;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    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: #061d16;
    border: 1px solid var(--gold-bright);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

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

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
}

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

/* Form Controls, Modals & Utility Cards */
.card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
    border: 1px solid #34d399;
    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.35);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    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: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* Flash Alerts */
.flash-alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-button);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.flash-success {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid var(--emerald-light);
    color: #a7f3d0;
}

.flash-danger {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid #f87171;
    color: #fecaca;
}

.flash-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2.5rem 0 1.5rem 0;
    color: var(--text-dim);
    font-size: 0.875rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 3.5rem;
}

/* ==========================================================================
   Mobile Responsiveness (Ultra Optimized for Smartphones & Tablets)
   ========================================================================== */
@media (max-width: 900px) {
    .portal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .user-badge-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .portal-nav-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tab-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

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

    .portal-filter-tab {
        white-space: nowrap;
    }
}

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

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

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

    .user-card-pill {
        padding: 0.4rem 0.75rem;
    }

    .user-name {
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .stat-val {
        font-size: 1.2rem;
    }

    .stat-lbl {
        font-size: 0.75rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-card {
        padding: 1.25rem;
    }

    .squircle-icon-vibrant {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

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

    .bento-title {
        font-size: 1.05rem;
    }

    .bento-desc {
        font-size: 0.8rem;
    }

    .news-ticker-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.85rem 1rem;
    }

    .ticker-btn-more {
        align-self: flex-end;
    }
}

/* ==========================================================================
   Absensi Digital Scanner & Geofencing GPS Styles (absen_siswa.php)
   ========================================================================== */
.absen-main-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .absen-main-grid {
        grid-template-columns: 1fr;
    }
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 12px;
}

.live-dot-pulse {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mode-toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mode-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Camera Viewport Container */
.camera-viewport-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: #020c09;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-viewport-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-fallback-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Scanner Overlays */
.scanner-overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-overlay.active {
    display: flex;
}

/* QR Code Laser Frame */
.qr-target-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #fbbf24;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.45);
}

.laser-scanner-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    box-shadow: 0 0 15px #fbbf24;
    position: absolute;
    top: 0;
    animation: laserScan 2.5s ease-in-out infinite alternate;
}

@keyframes laserScan {
    0% { top: 5%; }
    100% { top: 95%; }
}

/* Face Biometric Oval Mesh */
.face-biometric-mesh {
    width: 190px;
    height: 240px;
    position: relative;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.45);
}

.face-oval {
    width: 100%;
    height: 100%;
    border: 2px solid #34d399;
    border-radius: 50% 50% 45% 45%;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
    animation: facePulse 2s ease-in-out infinite alternate;
}

@keyframes facePulse {
    0% { border-color: #34d399; box-shadow: 0 0 15px rgba(52, 211, 153, 0.3); }
    100% { border-color: #fbbf24; box-shadow: 0 0 25px rgba(251, 191, 36, 0.6); }
}

.mesh-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #10b981;
    border-style: solid;
}
.mesh-corner.top-left     { top: -5px; left: -5px; border-width: 3px 0 0 3px; }
.mesh-corner.top-right    { top: -5px; right: -5px; border-width: 3px 3px 0 0; }
.mesh-corner.bottom-left  { bottom: -5px; left: -5px; border-width: 0 0 3px 3px; }
.mesh-corner.bottom-right { bottom: -5px; right: -5px; border-width: 0 3px 3px 0; }

.overlay-text {
    margin-top: 14px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.775rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* GPS Geofencing Status Bar */
.gps-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 8px;
}

.gps-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.gps-badge-indicator {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.775rem;
    font-weight: 700;
}
.gps-badge-indicator.valid    { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.gps-badge-indicator.invalid  { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.gps-badge-indicator.warning  { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.gps-badge-indicator.checking { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.2); }

/* Tab Presensi Header (Datang vs Pulang) */
.tab-presensi-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tab-presensi-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

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

.user-presensi-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 14px;
    margin-top: 1rem;
}

.wa-info-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badges for Data Table */
.time-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
}
.time-badge.in  { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.time-badge.out { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }

.status-pill {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 800;
}
.status-on-time { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.status-late    { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.method-tag {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
}
.method-qr-code { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.method-wajah   { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.method-manual  { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.2); }

.wa-status-pill.status-sent {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
}

/* ==========================================================================
   Universal Professional High-Contrast Table & Form System (All Portals)
   ========================================================================== */
.content-card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

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

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(4, 18, 14, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    scrollbar-width: thin;
}

/* Universal Table Styles */
table,
.data-table,
.luxury-table,
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    color: #e2e8f0 !important;
}

table thead tr,
.data-table thead tr,
.luxury-table thead tr {
    background: linear-gradient(135deg, #05261c 0%, #021812 100%);
}

table th,
.data-table th,
.luxury-table th {
    padding: 1.1rem 1.25rem;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold-bright);
    white-space: nowrap;
}

table tbody tr,
.data-table tbody tr,
.luxury-table tbody tr {
    transition: background 0.2s ease;
}

table tbody tr:nth-child(odd),
.data-table tbody tr:nth-child(odd),
.luxury-table tbody tr:nth-child(odd) {
    background: rgba(8, 38, 29, 0.65);
}

table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even),
.luxury-table tbody tr:nth-child(even) {
    background: rgba(3, 20, 15, 0.85);
}

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

table td,
.data-table td,
.luxury-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0 !important;
}

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 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-success, .badge-lunas, .badge-hadir, .status-success {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
}

.badge-warning, .badge-belum-lunas, .badge-izin, .status-warning {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
}

.badge-danger, .badge-alpa, .badge-terlambat, .status-danger {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
}

.badge-info, .badge-sakit, .status-info {
    background: rgba(59, 130, 246, 0.25) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
}

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

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

.form-control:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Gold Button Variants */
.btn-gold,
.btn-gold-sm {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff !important;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

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

.btn-danger-sm {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger-sm:hover {
    background: rgba(239, 68, 68, 0.45);
    color: #ffffff !important;
}

