
:root {
    --primary: #2e7d52; /* Premium Green */
    --primary-light: #3e9b66;
    --primary-lighter: rgba(46, 125, 82, 0.08);
    --secondary: #1e3a2b;
    --secondary-light: #2d6a4f;
    --accent: #e1b800;
    --accent-light: #f4d03f;

    --bg: #e8f2e6; /* Soft light green matching sidebar/navbar */
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #2e7d52;
    --border: #c8e2c4;
    --border-light: #e2efe0;

    --danger: #dc2626;
    --danger-light: #fef2f2;
    --success: #2e7d52;
    --success-light: rgba(46, 125, 82, 0.06);
    --warning-light: #fffbeb;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm:
        0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow:
        0 4px 10px rgba(15, 23, 42, 0.03), 0 2px 4px rgba(15, 23, 42, 0.02);
    --shadow-md:
        0 8px 20px rgba(15, 23, 42, 0.04), 0 4px 8px rgba(15, 23, 42, 0.02);
    --shadow-lg:
        0 16px 32px rgba(15, 23, 42, 0.06), 0 8px 16px rgba(15, 23, 42, 0.04);

    --sidebar-width: 270px;
    --topbar-height: 64px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode --- */
.dark-mode {
    --primary: #3e9b66;
    --primary-light: #4eab76;
    --primary-lighter: rgba(62, 155, 102, 0.12);
    --secondary: #2d6a4f;
    --secondary-light: #40916c;
    --accent: #f4d03f;
    --accent-light: #f9e79f;

    --bg: #112216; /* Dark slate-green matching dark sidebar/navbar */
    --surface: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #25442a;
    --border-light: #182c1c;

    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.1);
    --success: #4ade80;
    --success-light: rgba(74, 222, 128, 0.1);
    --warning-light: rgba(251, 191, 36, 0.1);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.4);
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        "Plus Jakarta Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
        background-color var(--transition),
        color var(--transition);
}

/* --- Typography --- */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
}
h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}
h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.app-container {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #e2efe0 0%, #c8e2c4 100%) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition:
        background var(--transition),
        border-color var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.sidebar-header {
    padding: 14px 16px;
    background: transparent !important; /* Blends with sidebar gradient */
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border) !important;
    flex-shrink: 0;
}

.sidebar-header h2 {
    font-size: 1.15rem;
    color: var(--primary) !important; /* Premium Green */
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #1e3a2b !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    position: relative;
}

.nav-item .nav-icon {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-item:hover {
    color: #1e3a2b !important;
    background: rgba(46, 125, 82, 0.08) !important;
}

.nav-item.active {
    color: #2e7d52 !important;
    background: #ffffff !important;
    font-weight: 700;
    border-color: rgba(46, 125, 82, 0.15) !important;
    box-shadow: var(--shadow-sm) !important;
}

.nav-item.active .nav-icon {
    opacity: 1;
    color: #2e7d52 !important;
}

.nav-item.active::before {
    display: none;
}

.dark-mode .sidebar {
    background: linear-gradient(135deg, #182c1c 0%, #25442a 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.dark-mode .sidebar-header {
    background: transparent !important;
}

.dark-mode .nav-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dark-mode .nav-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .nav-item.active {
    color: #3e9b66 !important;
    background: #ffffff !important;
}

.sidebar-role-badge {
    margin: 0 16px 16px;
    padding: 8px 14px;
    background: var(--primary-lighter) !important;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

/* --- Main Content Area --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition-slow);
}

/* --- Topbar --- */
.topbar {
    height: var(--topbar-height);
    background: linear-gradient(135deg, #e2efe0 0%, #c8e2c4 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    transition:
        background var(--transition),
        border-color var(--transition);
}
.dark-mode .topbar {
    background: linear-gradient(135deg, #182c1c 0%, #25442a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left .mobile-toggle {
    color: #1e3a2b !important;
}
.dark-mode .topbar-left .mobile-toggle {
    color: #ffffff !important;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 260px;
    padding: 9px 14px 9px 38px;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--radius-full);
    background: #ffffff !important;
    color: #1e3a2b !important;
    font-size: 0.875rem;
    transition: all var(--transition);
    font-family: inherit;
}
.dark-mode .topbar-search input {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.topbar-search input::placeholder {
    color: #718096 !important;
}
.dark-mode .topbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.topbar-search input:focus {
    outline: none;
    border-color: #2e7d52 !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 82, 0.15) !important;
    width: 320px;
    background: #ffffff !important;
}
.dark-mode .topbar-search input:focus {
    border-color: #4eab76 !important;
    box-shadow: 0 0 0 3px rgba(78, 171, 118, 0.25) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.topbar-search .search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #2e7d52 !important;
    font-size: 0.9rem;
}
.dark-mode .topbar-search .search-icon {
    color: rgba(255, 255, 255, 0.6) !important;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    cursor: pointer;
    transition: all var(--transition);
}
.dark-mode .topbar-user {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.topbar-user:hover {
    border-color: rgba(0, 0, 0, 0.15) !important;
    background: #f8fafc !important;
}
.dark-mode .topbar-user:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.topbar-user .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2e7d52 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.topbar-user .user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e3a2b !important;
}
.dark-mode .topbar-user .user-name {
    color: #ffffff !important;
}

.topbar-user i {
    color: #2e7d52 !important;
}
.dark-mode .topbar-user i {
    color: rgba(255, 255, 255, 0.7) !important;
}

.topbar-user .user-role {
    font-size: 0.75rem;
    color: #718096;
}
.dark-mode .topbar-user .user-role {
    color: rgba(255, 255, 255, 0.6);
}

/* Theme toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
    color: #2e7d52 !important;
}
.dark-mode .theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.theme-toggle:hover {
    border-color: rgba(0, 0, 0, 0.15) !important;
    background: #f8fafc !important;
    color: #1e3a2b !important;
}
.dark-mode .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* --- Content Wrapper --- */
.content-wrapper {
    flex: 1;
    padding: 28px 32px 40px;
    max-width: 1400px;
    width: 100%;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--border);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* --- Cards --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 24px;
    margin-bottom: 20px;
    transition:
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text);
}

/* --- Stat Cards --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
}
.stat-icon.green {
    background: rgba(4, 120, 87, 0.08);
    color: var(--secondary);
}
.stat-icon.amber {
    background: rgba(217, 119, 6, 0.08);
    color: var(--accent);
}
.stat-icon.red {
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
}

.stat-info h4 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.stat-info .stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

/* --- Tables --- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
}

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

.table-search {
    position: relative;
}

.table-search input {
    width: 260px;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition);
}

.table-search input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.table-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    padding: 12px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}
.table th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition);
}

.table tbody tr:hover {
    background: var(--bg);
}

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

.table td.text-center,
.table th.text-center {
    text-align: center;
}

.table tbody tr:hover {
    background: var(--primary-lighter);
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.95rem;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-admin {
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
}
.badge-guru {
    background: rgba(4, 120, 87, 0.08);
    color: var(--secondary);
}
.badge-siswa {
    background: rgba(217, 119, 6, 0.08);
    color: var(--accent);
}
.badge-hadir {
    background: var(--success-light);
    color: var(--success);
}
.badge-izin {
    background: var(--warning-light);
    color: var(--accent);
}
.badge-sakit {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-light);
}
.badge-alfa {
    background: var(--danger-light);
    color: var(--danger);
}
.badge-selesai {
    background: var(--success-light);
    color: var(--success);
}
.badge-belum {
    background: var(--danger-light);
    color: var(--danger);
}
.badge-aktif {
    background: var(--success-light);
    color: var(--success);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background: #163279;
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.25);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: #036348;
    color: #fff;
}

.btn-outline {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--bg);
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-danger {
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-light);
    border-color: var(--danger);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* --- Report Page --- */
.report-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: reportFade 0.2s ease-out;
}

@keyframes reportFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(46, 125, 82, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    width: fit-content;
}

.report-hero,
.report-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 24px;
}

.report-hero-top,
.report-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.report-hero-text {
    flex: 1 1 540px;
    min-width: 0;
}

.report-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 950;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.report-desc {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    background: var(--surface);
    color: var(--text);
}

.report-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.report-btn-soft {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.report-btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.report-btn-primary:hover {
    background: var(--primary-light);
}

.report-btn-success {
    background: var(--success);
    color: #fff;
    border-color: transparent;
}

.report-btn-success:hover {
    background: var(--success-light);
}

.report-btn-danger {
    background: var(--surface);
    color: var(--danger);
    border-color: var(--border);
}

.report-btn-danger:hover {
    background: var(--danger-light);
    color: #fff;
    border-color: var(--danger);
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.report-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
}

.report-menu-grid {
    display: grid;
    gap: 12px;
}

.report-menu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    cursor: pointer;
    transition:
        background var(--transition),
        transform var(--transition),
        border-color var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
}

.report-menu-card:hover {
    background: var(--bg);
    transform: translateY(-1px);
}

.report-menu-card.active {
    border-color: var(--primary);
}

.report-panel-body,
.report-preview {
    padding: 0;
}

.report-preview {
    margin-top: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.report-preview-icon {
    font-size: 48px;
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 20px;
    margin-bottom: 20px;
}

.report-preview-title {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.report-preview-desc {
    margin: 8px auto 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.report-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.report-summary-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.report-summary-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 16px;
    font-weight: 600;
}

.report-menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 18px;
    margin-right: 14px;
    flex-shrink: 0;
}

.report-menu-title {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.report-menu-desc {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.report-filter-box {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.report-form-group {
    display: grid;
    gap: 8px;
}

.report-label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.report-control {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.95rem;
    line-height: 1.4;
    outline: none;
}

.report-control:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 2px rgba(46, 125, 82, 0.12);
}

.report-preview-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.report-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.report-btn-block {
    flex: 1;
    min-width: 0;
}

.report-table-wrap {
    overflow-x: auto;
}

.report-footer {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.report-footer-left,
.report-signature {
    min-width: 180px;
}

.report-footer-left p,
.report-signature p {
    margin: 0;
}

.report-footer-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.report-footer-value {
    margin-top: 6px;
    font-weight: 700;
}

.report-print-filters {
    color: var(--text);
}

.print-only {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }

    #printArea,
    #printArea * {
        visibility: visible;
    }

    #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        background: transparent;
    }

    .no-print {
        display: none !important;
    }

    .report-panel-header,
    .report-footer,
    .report-preview,
    .report-menu-grid,
    .report-actions,
    .report-stats-grid,
    .report-grid,
    .report-hero,
    .report-summary-list,
    .report-panel-body > .report-footer {
        display: none !important;
    }

    .print-header {
        display: block !important;
        position: fixed;
        right: 24px;
        top: 24px;
        width: auto;
        max-width: 260px;
        text-align: right;
        color: var(--text);
        z-index: 1000;
    }

    .print-signature {
        display: block !important;
        position: relative;
        width: auto;
        max-width: 260px;
        text-align: right;
        color: var(--text);
        margin-top: 48px;
    }

    .print-header-label,
    .print-signature-label {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.82rem;
        font-weight: 600;
    }

    .print-header-value,
    .print-signature-value {
        margin: 4px 0 8px;
        font-weight: 700;
        font-size: 0.95rem;
    }

    .print-signature-line {
        margin-top: 14px;
        font-size: 0.95rem;
        letter-spacing: 0.1em;
    }

    .table {
        width: 100%;
        border-collapse: collapse;
    }

    .table th,
    .table td {
        page-break-inside: avoid;
        border: 1px solid #222;
        padding: 10px 12px;
    }

    .table th {
        background: #f4f4f4;
        color: #111;
        font-weight: 700;
    }

    .table tbody tr {
        background: #fff;
    }
}

.report-summary-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.report-summary-icon.total {
    background: linear-gradient(135deg, var(--text), #334155);
    color: #fff;
}

.report-filter-box {
    display: none;
}

.report-filter-box.active {
    display: grid;
}

@media (max-width: 992px) {
    .report-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .report-stats-grid {
        grid-template-columns: 1fr;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition);
}

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

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
    background: var(--surface);
}

.dark-mode .form-control {
    background: var(--bg);
}

.dark-mode .form-control:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* --- Alerts --- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: var(--danger-light);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--danger);
}

.alert-success {
    background: var(--success-light);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: var(--success);
}

.dark-mode .alert-success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.2);
    color: var(--success);
}

.dark-mode .alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--danger);
}

/* --- Modals --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 16px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: transparent;
}

.close:hover {
    background: var(--bg);
    color: var(--text);
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 300px;
    max-width: 420px;
    animation: toastIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-error {
    border-left: 4px solid var(--danger);
}

.toast.toast-out {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--border-light) 25%,
        var(--border) 50%,
        var(--border-light) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
}

.skeleton-line.short {
    width: 60%;
}
.skeleton-line.medium {
    width: 80%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* --- Login Page --- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    background-image:
        radial-gradient(
            circle at 20% 50%,
            rgba(30, 58, 138, 0.04) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 50%,
            rgba(4, 120, 87, 0.04) 0%,
            transparent 50%
        );
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    text-align: center;
}

.login-card h1 {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.75rem;
}

.login-card .login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.content-wrapper {
    animation: fadeInUp 0.35s ease-out;
}

.stat-card,
.card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.05s;
}
.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}
.stat-card:nth-child(3) {
    animation-delay: 0.15s;
}
.stat-card:nth-child(4) {
    animation-delay: 0.2s;
}

.table tbody tr {
    animation: fadeInUp 0.3s ease-out backwards;
}

.table tbody tr:nth-child(1) {
    animation-delay: 0.03s;
}
.table tbody tr:nth-child(2) {
    animation-delay: 0.06s;
}
.table tbody tr:nth-child(3) {
    animation-delay: 0.09s;
}
.table tbody tr:nth-child(4) {
    animation-delay: 0.12s;
}
.table tbody tr:nth-child(5) {
    animation-delay: 0.15s;
}
.table tbody tr:nth-child(n + 6) {
    animation-delay: 0.18s;
}

/* Turbo Progress Bar */
.turbo-progress-bar {
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.d-flex {
    display: flex;
}
.d-grid {
    display: grid;
}
.flex-wrap {
    flex-wrap: wrap;
}
.justify-between {
    justify-content: space-between;
}
.justify-center {
    justify-content: center;
}
.items-center {
    align-items: center;
}
.gap-1 {
    gap: 4px;
}
.gap-2 {
    gap: 8px;
}
.gap-3 {
    gap: 12px;
}
.gap-4 {
    gap: 16px;
}
.text-right {
    text-align: right;
}
.text-center {
    text-align: center;
}
.text-muted {
    color: var(--text-muted);
}
.text-sm {
    font-size: 0.85rem;
}
.font-semibold {
    font-weight: 600;
}
.mt-1 {
    margin-top: 4px;
}
.mt-2 {
    margin-top: 8px;
}
.mt-3 {
    margin-top: 12px;
}
.mt-4 {
    margin-top: 16px;
}
.mb-2 {
    margin-bottom: 8px;
}
.mb-3 {
    margin-bottom: 12px;
}
.mb-4 {
    margin-bottom: 16px;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.5rem;
}

/* Shortcut grid */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.shortcut-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
}

.shortcut-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--primary);
}

.shortcut-card .shortcut-icon {
    font-size: 1.3rem;
}

.shortcut-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Info list for dashboard */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.info-list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   MOBILE TOGGLE
   ========================================================================== */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    transition: all var(--transition);
}

.mobile-toggle:hover {
    background: var(--bg);
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .topbar-search input {
        width: 200px;
    }
    .topbar-search input:focus {
        width: 240px;
    }
    .content-wrapper {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .sidebar {
        left: calc(var(--sidebar-width) * -1);
        transition: left var(--transition-slow);
        box-shadow: none;
    }

    .sidebar.open {
        left: 0;
        box-shadow: var(--shadow-lg);
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 16px;
    }

    .topbar-search {
        display: none;
    }

    .content-wrapper {
        padding: 16px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .table-search input {
        width: 100%;
    }

    .modal-content {
        width: 96%;
        padding: 24px 20px;
    }
}

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

    .shortcut-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   PREMIUM CUSTOM STYLES
   ========================================================================== */

/* Sidebar Redesigned Styles */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}
.sidebar-logo-text h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary) !important; /* Premium Green */
    line-height: 1.2;
}
.sidebar-logo-text span {
    font-size: 0.65rem;
    color: var(--text-muted) !important;
    font-weight: 500;
}

/* Sidebar Profile & Academic Year Cards */
.sidebar-profile-card-mockup {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    margin: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative;
    box-shadow: var(--shadow-sm) !important;
}
.profile-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2e7d52 !important;
    border: 1px solid rgba(46, 125, 82, 0.1) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.profile-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.profile-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e3a2b !important;
    line-height: 1.2;
}
.profile-sub {
    font-size: 0.7rem;
    color: #2e7d52 !important;
    line-height: 1.2;
    margin-top: 2px;
}
.profile-chevron {
    color: #2e7d52 !important;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.sidebar-year-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    margin: 0 12px 12px !important;
    box-shadow: var(--shadow-sm) !important;
    color: #1e3a2b !important;
}
.sidebar-year-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #2e7d52 !important;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.sidebar-year-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a2b !important;
}
.sidebar-year-sem {
    font-size: 0.8rem;
    color: #2e7d52 !important;
    margin-top: 2px;
}

.dark-mode .sidebar-profile-card-mockup {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}
.dark-mode .profile-avatar-circle {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}
.dark-mode .profile-name {
    color: #ffffff !important;
}
.dark-mode .profile-sub {
    color: rgba(255, 255, 255, 0.7) !important;
}
.dark-mode .profile-chevron {
    color: rgba(255, 255, 255, 0.8) !important;
}
.dark-mode .sidebar-year-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    color: #ffffff !important;
}
.dark-mode .sidebar-year-title {
    color: rgba(255, 255, 255, 0.65) !important;
}
.dark-mode .sidebar-year-val {
    color: #ffffff !important;
}
.dark-mode .sidebar-year-sem {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Welcome Banner */
.welcome-banner-premium {
    background: linear-gradient(
        135deg,
        rgba(30, 58, 43, 0.94) 0%,
        rgba(46, 125, 82, 0.75) 100%
    );
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 12px 16px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(46, 125, 82, 0.06);
}
.welcome-banner-premium::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(
        circle at 80% 50%,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 60%
    );
    pointer-events: none;
}
.welcome-banner-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    align-items: center;
    gap: 12px;
}
@media (max-width: 992px) {
    .welcome-banner-grid {
        grid-template-columns: 1fr;
    }
}
.welcome-banner-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.welcome-badge-capsule {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    color: white;
}
.welcome-banner-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
@media (max-width: 992px) {
    .welcome-banner-right {
        justify-content: flex-start;
        margin-top: 8px;
    }
}
.banner-subcard {
    background: #ffffff !important;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: #1e3a2b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}
.dark-mode .banner-subcard {
    background: var(--surface) !important;
    color: var(--text);
    border: 1px solid var(--border);
}
.banner-subcard-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
}
.banner-subcard-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text) !important;
}
.banner-subcard-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2e7d52;
    margin-top: 2px;
}
.banner-icon-glow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    color: #2e7d52 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
    flex-shrink: 0;
}

/* Premium Stat Cards with Sparklines */
.stat-card-premium {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}
.stat-card-premium:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}
.stat-card-premium-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.stat-card-premium-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.stat-card-premium-icon.green {
    background: rgba(46, 125, 82, 0.08);
    color: #2e7d52;
}
.stat-card-premium-icon.orange {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}
.stat-card-premium-icon.purple {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}
.stat-card-premium-icon.blue {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}
.stat-card-premium-icon.red {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.stat-card-premium-meta {
    display: flex;
    flex-direction: column;
}
.stat-card-premium-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1px;
}
.stat-card-premium-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.stat-card-premium-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 4px;
}
.stat-card-premium-trend {
    font-size: 0.7rem;
    font-weight: 600;
}
.stat-card-premium-trend.green {
    color: #2e7d52;
}
.stat-card-premium-trend.orange {
    color: #d97706;
}
.stat-card-premium-trend.purple {
    color: #8b5cf6;
}
.stat-card-premium-trend.blue {
    color: #3b82f6;
}
.stat-card-premium-trend.red {
    color: #dc2626;
}

.stat-card-premium-chart {
    width: 55px;
    height: 20px;
}

.stat-grid-premium {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 1024px) {
    .stat-grid-premium {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .stat-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .stat-grid-premium {
        grid-template-columns: 1fr;
    }
}

/* Timeline lists */
.timeline-list-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.timeline-item-premium {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.timeline-item-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.timeline-item-icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}
.timeline-item-icon-wrapper.green {
    background: rgba(46, 125, 82, 0.08);
    color: #2e7d52;
}
.timeline-item-icon-wrapper.blue {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}
.timeline-item-icon-wrapper.orange {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.timeline-item-content {
    flex: 1;
    font-size: 0.82rem;
}
.timeline-item-title {
    font-weight: 600;
    color: var(--text);
}
.timeline-item-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Announcement listing with tags */
.announcement-list-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.announcement-item-premium {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}
.announcement-item-premium:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.announcement-item-left {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.announcement-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    flex-shrink: 0;
}
.announcement-tag.red {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}
.announcement-tag.blue {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}
.announcement-tag.green {
    background: rgba(46, 125, 82, 0.08);
    color: #2e7d52;
}

.announcement-details {
    display: flex;
    flex-direction: column;
}
.announcement-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.82rem;
}
.announcement-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.announcement-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
}

/* Academic Calendar Widget */
.academic-calendar {
    width: 100%;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.calendar-nav-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}
.calendar-day-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-bottom: 2px;
}
.calendar-day {
    font-size: 0.74rem;
    font-weight: 500;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text);
}
.calendar-day.muted {
    color: var(--text-muted);
    opacity: 0.4;
}
.calendar-day.today {
    background: #2e7d52;
    color: white;
    font-weight: 700;
    box-shadow: 0 3px 6px rgba(46, 125, 82, 0.2);
}

/* Custom Progress Bar styles */
.progress-list-premium {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.progress-item-premium {
    display: flex;
    flex-direction: column;
}
.progress-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.875rem;
}
.progress-item-title {
    font-weight: 500;
    color: var(--text);
}
.progress-item-val {
    font-weight: 700;
    color: var(--text);
}
.progress-bar-track {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #2e7d52;
    border-radius: var(--radius-full);
}

/* System Information Dark Green Card */
.sys-info-card {
    background: linear-gradient(135deg, #1e3a2b 0%, #0f2016 100%);
    color: white;
    border-radius: var(--radius);
    padding: 8px 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.sys-info-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
}
.sys-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.68rem;
}
.sys-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sys-info-label {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}
.sys-info-val {
    font-weight: 600;
}
.sys-info-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}
.sys-info-status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
}
.sys-storage-section {
    display: flex;
    flex-direction: column;
}
.sys-storage-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.7);
}
.sys-storage-bar-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.sys-storage-bar-fill {
    height: 100%;
    background: #10b981;
    border-radius: var(--radius-full);
}

/* Quick Actions Card Grid */
.quick-actions-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.quick-action-btn-premium {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition);
    min-height: 64px;
}
.quick-action-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(46, 125, 82, 0.25);
}
.quick-action-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.quick-action-icon-wrapper.green {
    background: rgba(46, 125, 82, 0.08);
    color: #2e7d52;
}
.quick-action-icon-wrapper.blue {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}
.quick-action-icon-wrapper.orange {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}
.quick-action-icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}
.quick-action-icon-wrapper.teal {
    background: rgba(20, 184, 166, 0.08);
    color: #0d9488;
}

.quick-action-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text);
}

/* Quote Banner */
.quote-banner-premium {
    background: linear-gradient(135deg, #1e3a2b 0%, #2e7d52 100%);
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
}
.quote-banner-content {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

/* Sidebar Footer Text Style */
.sidebar div[style*="font-size: 0.72rem"] {
    color: #2e7d52 !important;
}
.dark-mode .sidebar div[style*="font-size: 0.72rem"] {
    color: rgba(255, 255, 255, 0.65) !important;
}
