/* ============================================================
   STAM Portal — Standalone Design System
   No Tailwind dependency. Pure CSS.
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    --primary: #059669;
    --primary-dark: #065f46;
    --primary-light: #ecfdf5;
    --accent: #ea580c;
    --accent-light: #fff7ed;
    --secondary: #2563eb;
    --secondary-light: #eff6ff;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-600: #059669;
    --amber-500: #f59e0b;
    --orange-600: #ea580c;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
}

/* --- Base Reset & Body --- */
*, *::before, *::after { box-sizing: border-box; }
body.stam-body {
    font-family: var(--font-body);
    background: var(--gray-50);
    color: var(--gray-900);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
.stam-body h1, .stam-body h2, .stam-body h3, .stam-body h4, .stam-body h5, .stam-body h6 {
    font-family: var(--font-heading);
    margin: 0;
}
.stam-body a { text-decoration: none !important; color: inherit; }
.stam-body img { max-width: 100%; display: block; }

/* --- Glass Navbar --- */
.s-navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 100; height: 72px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.s-navbar-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.s-nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.s-nav-logo i { font-size: 1.6rem; color: var(--primary); transition: transform 0.3s; }
.s-nav-logo:hover i { transform: scale(1.15); }
.s-nav-logo span { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--gray-800); letter-spacing: -0.02em; }
.s-nav-links { display: flex; align-items: center; gap: 0.25rem; }
.s-nav-link {
    padding: 0.5rem 1rem; border-radius: var(--radius-lg);
    font-weight: 600; font-size: 0.875rem; color: var(--gray-500) !important;
    transition: all 0.2s ease;
}
.s-nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.s-nav-link.active { color: var(--primary) !important; background: var(--primary-light); }
.s-nav-link-ai {
    padding: 0.5rem 1rem; border-radius: var(--radius-lg);
    font-weight: 600; font-size: 0.875rem;
    color: var(--white); display: flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
    transition: all 0.3s; cursor: pointer; border: none;
}
.s-nav-link-ai:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }
.s-nav-right { display: flex; align-items: center; gap: 0.75rem; }
.s-nav-dashboard {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.25rem; border-radius: var(--radius-full);
    border: 1px solid var(--gray-200); color: var(--gray-600);
    font-size: 0.875rem; font-weight: 500; transition: all 0.2s;
}
.s-nav-dashboard:hover { background: var(--white); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.s-mobile-toggle {
    display: none; background: none; border: none;
    color: var(--gray-500); font-size: 1.25rem; cursor: pointer; padding: 0.5rem;
}
.s-mobile-toggle:hover { color: var(--primary); }

/* Mobile Nav */
.s-mobile-nav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--white); border-top: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg); padding: 1rem;
}
.s-mobile-nav.show { display: block; }
.s-mobile-nav a {
    display: block; padding: 0.65rem 1rem; border-radius: var(--radius-lg);
    font-weight: 500; color: var(--gray-600); transition: all 0.2s;
}
.s-mobile-nav a:hover, .s-mobile-nav a.active { color: var(--primary); background: var(--primary-light); }

/* --- Hero Section --- */
.s-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #10b981 100%);
    color: var(--white);
    padding: 9rem 1.5rem 7rem;
    text-align: center;
}
.s-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.s-hero-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.s-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(250,204,21,0.15); color: #fef9c3;
    border: 1px solid rgba(250,204,21,0.25);
    padding: 0.4rem 1.25rem; border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.8rem; margin-bottom: 1.75rem;
    backdrop-filter: blur(8px);
}
.s-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800; line-height: 1.1;
    margin-bottom: 1.5rem; letter-spacing: -0.03em;
    color: #ffffff !important;
}
.s-hero h1 .gradient-text {
    background: linear-gradient(to right, #ffffff, #a5b4c4) !important;
    -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.s-hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85) !important; line-height: 1.7;
    margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto;
}
.s-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.s-btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #ffffff !important; color: #059669 !important;
    padding: 0.9rem 2rem; border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.95rem;
    box-shadow: var(--shadow-lg); transition: all 0.3s;
}
.s-btn-primary:hover { background: #f0fdf4 !important; color: #065f46 !important; box-shadow: var(--shadow-2xl); transform: translateY(-3px); }
.s-btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent !important; color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    padding: 0.9rem 2rem; border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.95rem; transition: all 0.3s;
}
.s-btn-outline:hover { background: rgba(255,255,255,0.15) !important; border-color: rgba(255,255,255,0.8) !important; }

/* --- Main Content Container --- */
.s-main {
    max-width: 1280px; margin: -4rem auto 0; padding: 0 1.5rem 5rem;
    position: relative; z-index: 10;
}

/* --- Module Cards (Quick Links) --- */
.s-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.s-module-card {
    background: var(--white); border-radius: var(--radius-2xl);
    padding: 2rem; border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg); transition: all 0.3s;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.s-module-card:hover { box-shadow: var(--shadow-2xl); transform: translateY(-6px); }
.s-module-icon {
    width: 4.5rem; height: 4.5rem; border-radius: var(--radius-2xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; margin-bottom: 1.25rem;
    transition: all 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}
.s-module-icon.green { background: var(--emerald-50); color: var(--primary); }
.s-module-card:hover .s-module-icon.green { background: var(--primary); color: var(--white); }
.s-module-icon.orange { background: var(--accent-light); color: var(--accent); }
.s-module-card:hover .s-module-icon.orange { background: var(--accent); color: var(--white); }
.s-module-icon.blue { background: var(--secondary-light); color: var(--secondary); }
.s-module-card:hover .s-module-icon.blue { background: var(--secondary); color: var(--white); }
.s-module-title { font-weight: 700; font-size: 1.15rem; color: var(--gray-800); margin-bottom: 0.6rem; }
.s-module-desc { color: var(--gray-500); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1.25rem; flex-grow: 1; }
.s-module-link {
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
    transition: transform 0.3s; display: inline-flex; align-items: center; gap: 0.35rem;
}
.s-module-link.green { color: var(--primary); }
.s-module-link.orange { color: var(--accent); }
.s-module-link.blue { color: var(--secondary); }
.s-module-card:hover .s-module-link { transform: translateX(4px); }

/* --- SPI Alert Banner --- */
.s-alert-banner {
    background: var(--white); border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
    padding: 2rem; margin-bottom: 3rem;
    display: flex; align-items: center; gap: 2rem;
    position: relative; overflow: hidden;
}
.s-alert-banner::after {
    content: '\f06a'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: -1rem; bottom: -2.5rem;
    font-size: 12rem; color: var(--gray-100); opacity: 0.4; z-index: 0;
}
.s-alert-content { flex: 1; position: relative; z-index: 1; }
.s-alert-badges { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.s-badge-danger {
    background: var(--red-50); color: var(--red-600);
    padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 700; border: 1px solid var(--red-100);
    letter-spacing: 0.05em;
}
.s-badge-date {
    color: var(--gray-400); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    display: flex; align-items: center; gap: 0.4rem;
}
.s-alert-title { font-weight: 700; font-size: 1.35rem; color: var(--gray-800); margin-bottom: 0.6rem; }
.s-alert-text { color: var(--gray-600); line-height: 1.7; font-size: 0.95rem; }
.s-alert-action { flex-shrink: 0; position: relative; z-index: 1; }
.s-btn-download {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-xl);
    border: 2px solid var(--primary); color: var(--primary);
    font-weight: 700; font-size: 0.9rem; transition: all 0.3s;
    white-space: nowrap;
}
.s-btn-download:hover { background: var(--primary); color: var(--white); }

/* --- Stats Filter Bar --- */
.s-filter-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--white); padding: 1rem 1.5rem; border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
    margin-bottom: 2rem; flex-wrap: wrap;
}
.s-filter-title {
    font-weight: 700; font-size: 1.15rem; color: var(--gray-800);
    display: flex; align-items: center; gap: 0.75rem;
}
.s-filter-icon {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius-xl);
    background: rgba(5,150,105,0.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.s-filter-form { display: flex; align-items: center; gap: 0.75rem; }
.s-filter-label { font-size: 0.85rem; font-weight: 700; color: var(--gray-500); white-space: nowrap; }
.s-select-wrap { position: relative; }
.s-select {
    appearance: none; -webkit-appearance: none;
    background: var(--gray-50); border: 1px solid var(--gray-200);
    color: var(--gray-800); padding: 0.65rem 2.5rem 0.65rem 1rem;
    border-radius: var(--radius-xl); font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s; min-width: 120px;
}
.s-select:focus { outline: none; background: var(--white); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }
.s-select-arrow {
    position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
    color: var(--gray-400); font-size: 0.75rem; pointer-events: none;
}

/* --- Stats Cards Grid --- */
.s-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }

/* Gradient Stat Card */
.s-stat-card {
    border-radius: var(--radius-2xl); padding: 1.5rem;
    position: relative; overflow: hidden;
    transition: all 0.3s; cursor: default;
}
.s-stat-card:hover { transform: translateY(-4px); }
.s-stat-card.gradient-green {
    background: linear-gradient(135deg, #059669, #065f46);
    color: var(--white); box-shadow: 0 8px 24px rgba(5,150,105,0.25);
}
.s-stat-card.gradient-amber {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: var(--white); box-shadow: 0 8px 24px rgba(245,158,11,0.25);
}
.s-stat-card.card-white {
    background: var(--white); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}
.s-stat-card.card-white:hover { border-color: var(--gray-200); }
.s-stat-deco {
    position: absolute; right: -0.5rem; bottom: -0.5rem;
    font-size: 5rem; opacity: 0.1;
    transition: transform 0.5s;
}
.s-stat-card:hover .s-stat-deco { transform: scale(1.1); }
.s-stat-card.card-white .s-stat-deco { color: var(--gray-200); opacity: 0.5; }
.s-stat-body { position: relative; z-index: 1; }
.s-stat-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.s-stat-icon {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.s-stat-icon.glass { background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); color: var(--white); }
.s-stat-icon.emerald { background: var(--emerald-100); color: var(--emerald-600); border: 1px solid var(--emerald-50); }
.s-stat-icon.blue { background: var(--blue-100); color: var(--blue-600); border: 1px solid var(--blue-50); }
.s-stat-badge {
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.25rem 0.7rem; border-radius: var(--radius-full);
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; color: var(--white);
}
.s-stat-label {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 0.15rem; opacity: 0.8;
}
.s-stat-card.card-white .s-stat-label { color: var(--gray-500); }
.s-stat-value { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.s-stat-card.card-white .s-stat-value { color: var(--gray-800); }
.s-stat-unit { font-size: 1.25rem; font-weight: 700; opacity: 0.6; margin-left: 0.15rem; }
.s-stat-card.card-white .s-stat-unit { color: var(--gray-400); }

/* --- Grade Distribution Section --- */
.s-grade-section {
    background: var(--white); border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
    overflow: hidden; margin-bottom: 3rem;
}
.s-grade-header {
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid var(--gray-50);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap;
}
.s-grade-header-left {}
.s-grade-title {
    font-weight: 700; font-size: 1.15rem; color: var(--gray-800);
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.3rem;
}
.s-grade-title-icon {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: var(--white); display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.s-grade-subtitle { color: var(--gray-400); font-size: 0.85rem; padding-left: 3.25rem; }
.s-grade-total {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--gray-50); padding: 0.5rem 1rem; border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100); font-size: 0.85rem;
}
.s-grade-total i { color: var(--gray-400); }
.s-grade-total span { color: var(--gray-500); font-weight: 500; }
.s-grade-total strong { color: var(--gray-800); font-weight: 800; }
.s-grade-body { display: grid; grid-template-columns: 5fr 7fr; }
.s-chart-area {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 2.5rem; border-right: 1px solid var(--gray-50);
}
.s-chart-wrap { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; }
.s-cards-area { padding: 1.5rem 2rem; }
.s-grade-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.s-grade-card {
    border-radius: var(--radius-2xl); padding: 1.25rem;
    border: 1px solid; position: relative; overflow: hidden;
    transition: all 0.3s;
}
.s-grade-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.s-grade-card-deco {
    position: absolute; right: -0.4rem; bottom: -0.4rem;
    font-size: 3.5rem; opacity: 0.06;
    transition: transform 0.5s;
}
.s-grade-card:hover .s-grade-card-deco { transform: scale(1.15); }
.s-grade-card-body { position: relative; z-index: 1; }
.s-grade-card-top { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem; }
.s-grade-card-icon {
    width: 2rem; height: 2rem; border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 0.75rem; box-shadow: var(--shadow-md);
}
.s-grade-card-label { font-size: 0.8rem; font-weight: 700; color: var(--gray-700); line-height: 1.3; }
.s-grade-card-numbers { display: flex; align-items: baseline; justify-content: space-between; }
.s-grade-card-count { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.02em; }
.s-grade-card-count small { font-size: 0.8rem; font-weight: 500; color: var(--gray-400); margin-left: 0.25rem; }
.s-grade-card-pct {
    font-size: 1rem; font-weight: 800;
    padding: 0.25rem 0.75rem; border-radius: var(--radius-xl);
}
.s-grade-card-bar { margin-top: 0.75rem; width: 100%; height: 0.45rem; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; }
.s-grade-card-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 1s ease-out; }

/* --- Pass/Fail Summary --- */
.s-passfail { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }
.s-passfail-card {
    border-radius: var(--radius-2xl); padding: 1rem;
    border: 1px solid; display: flex; align-items: center; gap: 0.75rem;
}
.s-passfail-icon {
    width: 2.75rem; height: 2.75rem; border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); flex-shrink: 0;
}
.s-passfail-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.s-passfail-values { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.s-passfail-count { font-size: 1.4rem; font-weight: 900; }
.s-passfail-pct { font-size: 0.8rem; font-weight: 700; }

.s-passfail-card.pass {
    background: linear-gradient(135deg, var(--emerald-50), rgba(209,250,229,0.4));
    border-color: rgba(167,243,208,0.5);
}
.s-passfail-card.pass .s-passfail-icon { background: #10b981; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.s-passfail-card.pass .s-passfail-label { color: var(--emerald-600); }
.s-passfail-card.pass .s-passfail-count { color: #065f46; }
.s-passfail-card.pass .s-passfail-pct { color: #10b981; }

.s-passfail-card.fail {
    background: linear-gradient(135deg, var(--red-50), rgba(254,226,226,0.4));
    border-color: rgba(252,165,165,0.4);
}
.s-passfail-card.fail .s-passfail-icon { background: var(--red-500); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.s-passfail-card.fail .s-passfail-label { color: var(--red-600); }
.s-passfail-card.fail .s-passfail-count { color: #991b1b; }
.s-passfail-card.fail .s-passfail-pct { color: var(--red-500); }

/* --- Floating Action Button --- */
.s-fab {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
    width: 3.5rem; height: 3.5rem;
    background: var(--white); color: var(--primary);
    border-radius: var(--radius-full); box-shadow: var(--shadow-2xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; border: 3px solid var(--gray-100);
    transition: all 0.3s;
}
.s-fab:hover { background: var(--primary); color: var(--white); transform: scale(1.1); }
.s-fab:hover i { transform: rotate(45deg); }
.s-fab i { transition: transform 0.3s; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.s-animate { animation: fadeInUp 0.6s ease-out both; }
.s-animate-d1 { animation-delay: 0.1s; }
.s-animate-d2 { animation-delay: 0.2s; }
.s-animate-d3 { animation-delay: 0.3s; }
.s-animate-d4 { animation-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .s-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .s-grade-body { grid-template-columns: 1fr; }
    .s-chart-area { border-right: none; border-bottom: 1px solid var(--gray-50); padding: 2rem; }
    .s-chart-wrap { max-width: 260px; }
}
@media (max-width: 768px) {
    .s-nav-links { display: none; }
    .s-mobile-toggle { display: block; }
    .s-nav-dashboard { display: none; }
    .s-modules { grid-template-columns: 1fr; }
    .s-alert-banner { flex-direction: column; align-items: stretch; }
    .s-alert-action { width: 100%; }
    .s-btn-download { width: 100%; justify-content: center; }
    .s-filter-bar { flex-direction: column; align-items: stretch; }
    .s-hero { padding: 7rem 1rem 5rem; }
    .s-hero h1 { font-size: 2rem; }
    .s-grade-cards { grid-template-columns: 1fr; }
    .s-stat-value { font-size: 2rem; }
    .s-grade-header { flex-direction: column; }
}
@media (max-width: 480px) {
    .s-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .s-stat-card { padding: 1rem; border-radius: var(--radius-xl); }
    .s-stat-value { font-size: 1.6rem; }
    .s-stat-icon { width: 2rem; height: 2rem; font-size: 0.8rem; }
    .s-stat-deco { font-size: 3.5rem; }
    .s-passfail { grid-template-columns: 1fr; }
}

/* ============================================================
   JADUAL KERJA PAGE — Schedule/Timetable Styles
   ============================================================ */

/* --- Page Container --- */
.s-page-container {
    max-width: 1140px; margin: 0 auto; padding: 0 1.5rem 5rem;
}

/* --- Tab Navigation --- */
.s-tabs {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    padding: 0.5rem; background: var(--white);
    border-radius: var(--radius-2xl); box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100); margin-bottom: 2rem;
    overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.s-tabs::-webkit-scrollbar { display: none; }
.s-tab-btn {
    flex: 1; min-width: fit-content;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-xl);
    font-weight: 700; font-size: 0.875rem; white-space: nowrap;
    transition: all 0.25s; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: none; background: transparent; color: var(--gray-500);
    font-family: var(--font-body);
}
.s-tab-btn:hover { background: var(--gray-50); color: var(--gray-700); }
.s-tab-btn.active {
    background: var(--primary); color: var(--white);
    box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

/* --- Tab Content Panel --- */
.s-tab-panel {
    background: var(--white); padding: 2rem;
    border-radius: var(--radius-3xl); box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}
.s-tab-panel.hidden { display: none; }

/* --- Section Header (inside tab) --- */
.s-section-header {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: flex-start; gap: 1rem;
    padding-bottom: 1.5rem; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-50);
}
.s-section-header-left {}
.s-section-title {
    font-size: 1.35rem; font-weight: 800; color: var(--gray-800);
    display: flex; align-items: center; gap: 0.75rem;
}
.s-section-icon {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 0.95rem;
}
.s-section-icon.green { background: rgba(5,150,105,0.1); color: var(--primary); }
.s-section-icon.emerald { background: var(--emerald-100); color: var(--emerald-600); }
.s-section-icon.orange { background: #fff7ed; color: #ea580c; }
.s-section-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.s-section-desc { color: var(--gray-500); font-size: 0.9rem; margin-top: 0.4rem; padding-left: 3.25rem; }
.s-btn-pdf {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--gray-50); color: var(--gray-700);
    padding: 0.6rem 1.25rem; border-radius: var(--radius-xl);
    font-weight: 700; font-size: 0.85rem; border: 1px solid var(--gray-200);
    transition: all 0.2s; white-space: nowrap;
}
.s-btn-pdf:hover { background: var(--gray-100); border-color: var(--gray-300); }
.s-btn-pdf i { color: #ef4444; }

/* --- Premium Data Table --- */
.s-table-wrap {
    overflow-x: auto; border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.s-table {
    width: 100%; border-collapse: collapse; font-size: 0.875rem; text-align: left;
}
.s-table thead { background: var(--primary); color: var(--white); }
.s-table thead.emerald { background: #059669; }
.s-table thead th {
    padding: 0.9rem 1.25rem; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.s-table thead th.center { text-align: center; }
.s-table tbody tr { transition: background 0.15s; }
.s-table tbody tr:nth-child(even) { background: rgba(248,250,252,0.5); }
.s-table tbody tr:hover { background: #f0fdf4; }
.s-table tbody td {
    padding: 0.85rem 1.25rem; color: var(--gray-800);
    line-height: 1.6; vertical-align: top;
    border-bottom: 1px solid var(--gray-100);
}
.s-table tbody td.center { text-align: center; }
.s-table tbody td.num { font-weight: 700; color: var(--gray-500); text-align: center; }
.s-table tbody td.date { font-weight: 600; color: var(--primary); text-align: center; white-space: nowrap; }
.s-table tbody td.date-emerald { font-weight: 600; color: #059669; text-align: center; }

/* --- Agency Badges --- */
.s-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.s-badge {
    padding: 0.2rem 0.55rem; border-radius: 0.4rem;
    font-size: 0.65rem; font-weight: 700; border: 1px solid;
    white-space: nowrap;
}
.s-badge.spp { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.s-badge.jpn { background: #eef2ff; color: #4338ca; border-color: #e0e7ff; }
.s-badge.sekolah { background: #fffbeb; color: #b45309; border-color: #fef3c7; }
.s-badge.lp { background: #faf5ff; color: #7c3aed; border-color: #ede9fe; }
.s-badge.calon { background: #fff1f2; color: #be123c; border-color: #ffe4e6; }

/* --- Empty State (Placeholder Tab) --- */
.s-empty-state {
    text-align: center; padding: 4rem 2rem;
}
.s-empty-icon {
    width: 6rem; height: 6rem; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; font-size: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.s-empty-icon.orange { background: #fff7ed; color: #fb923c; border: 1px solid #fed7aa; }
.s-empty-icon.blue { background: #eff6ff; color: #60a5fa; border: 1px solid #bfdbfe; }
.s-empty-title { font-size: 1.35rem; font-weight: 800; color: var(--gray-800); margin-bottom: 0.6rem; }
.s-empty-text { color: var(--gray-500); max-width: 420px; margin: 0 auto; line-height: 1.7; }
.s-empty-text strong { color: var(--gray-700); }

/* --- Jadual Kerja Responsive --- */
@media (max-width: 768px) {
    .s-section-header { flex-direction: column; }
    .s-btn-pdf { width: 100%; justify-content: center; }
    .s-tab-btn { font-size: 0.8rem; padding: 0.6rem 1rem; }
    .s-table thead th { padding: 0.75rem 0.75rem; font-size: 0.6rem; }
    .s-table tbody td { padding: 0.65rem 0.75rem; font-size: 0.8rem; }
    .s-section-desc { padding-left: 0; }
}
