/* Local Oxygen Font Definition (No External Requests) */
@font-face {
    font-family: 'Oxygen';
    src: url('/resources/font/Oxygen/Oxygen.woff2') format('woff2'),
         url('/storage/assets/font/Oxygen/Oxygen.woff2') format('woff2'),
         url('/resources/font/Oxygen/Oxygen-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oxygen';
    src: url('/resources/font/Oxygen/Oxygen-Bold.ttf') format('truetype'),
         url('/storage/assets/font/Oxygen/Oxygen-Bold.ttf') format('truetype');
    font-weight: 700 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oxygen';
    src: url('/resources/font/Oxygen/Oxygen-Light.ttf') format('truetype'),
         url('/storage/assets/font/Oxygen/Oxygen-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-body: #0b1512;
    --bg-card: #12211c;
    --bg-card-hover: #192d27;
    --primary: #10b981;
    --accent: #059669;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(16, 185, 129, 0.14);
    --sidebar-width: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Oxygen', sans-serif;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(5, 150, 105, 0.06) 0px, transparent 40%);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: #0d1915;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 100;
}

.sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.brand-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: white;
}

.sidebar-menu {
    list-style: none;
    padding: 1.25rem 0.75rem;
    display: flex; flex-direction: column; gap: 0.25rem;
    flex: 1;
    overflow-y: auto;
}

.menu-section {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); font-weight: 700;
    padding: 1rem 0.75rem 0.5rem 0.75rem;
}

.sidebar-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--bg-card-hover);
    color: white;
}

.sidebar-link.active {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-left: 3px solid var(--primary);
}

.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}

.admin-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    max-width: calc(100vw - var(--sidebar-width));
}

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

.role-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.85rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700;
    background: rgba(16, 185, 129, 0.1); border: 1px solid var(--border);
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
}

.stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; background: rgba(16, 185, 129, 0.12);
}

.stat-val { font-size: 1.6rem; font-weight: 800; color: white; }
.stat-lbl { font-size: 0.85rem; color: var(--text-muted); }

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%; border-collapse: collapse; margin-top: 1rem;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 0.85rem 1rem; text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    color: var(--text-muted); font-weight: 700;
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px;
}

.admin-table tr:hover { background: rgba(255,255,255,0.02); }

.btn-act {
    padding: 0.4rem 0.8rem; border-radius: 8px; border: none;
    font-weight: 600; font-size: 0.8rem; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.3rem;
}

.btn-act-danger { background: #ef4444; color: white; }
.btn-act-success { background: #10b981; color: white; }
.btn-act-secondary { background: rgba(16, 185, 129, 0.15); color: white; border: 1px solid var(--border); }

.alert-box {
    padding: 0.85rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem;
    font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
}
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }

.chart-container { position: relative; height: 300px; max-height: 300px; width: 100%; overflow: hidden; }
.flex-gap-1 { display: flex; gap: 1rem; }
.flex-center { display: flex; align-items: center; gap: 0.75rem; }
.text-muted-sm { color: var(--text-muted); font-size: 0.9rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-05 { margin-bottom: 0.5rem; }
.text-xl-bold { font-size: 1.6rem; font-weight: 800; }
.text-lg-bold { font-size: 1.1rem; font-weight: 700; }
.max-w-800 { max-width: 800px; }
.mt-1-5 { margin-top: 1.5rem; }
.svg-icon { vertical-align: middle; }
