/* Admin Dashboard Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
    --adm-bg: #090d16;
    --adm-sidebar: #0f172a;
    --adm-card: #131d31;
    --adm-border: rgba(255, 255, 255, 0.08);
    --adm-primary: #0284c7;
    --adm-accent: #38bdf8;
    --adm-success: #10b981;
    --adm-warning: #f59e0b;
    --adm-danger: #ef4444;
    --adm-text: #f8fafc;
    --adm-text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kantumruy Pro', 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--adm-bg);
    color: var(--adm-text);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--adm-sidebar);
    border-right: 1px solid var(--adm-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-menu {
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

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

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--adm-text);
}

.menu-item.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--adm-border);
}

/* Main Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.topbar {
    height: 64px;
    border-bottom: 1px solid var(--adm-border);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.content-area {
    padding: 2rem;
    flex: 1;
}

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

.stat-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--adm-accent);
    margin-top: 0.2rem;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.15);
    color: var(--adm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Tables */
.table-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

th {
    padding: 0.75rem 1rem;
    color: var(--adm-text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--adm-border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-info { background: rgba(2, 132, 199, 0.2); color: #38bdf8; }

/* Buttons */
.btn-adm {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-adm.primary {
    background: var(--adm-primary);
    color: white;
}

.btn-adm.primary:hover {
    background: #0369a1;
}

.btn-adm.success {
    background: var(--adm-success);
    color: white;
}

.btn-adm.danger {
    background: var(--adm-danger);
    color: white;
}

/* Forms */
.form-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 14px;
    padding: 1.75rem;
    max-width: 700px;
}

.adm-form-group {
    margin-bottom: 1.25rem;
}

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

.adm-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--adm-border);
    color: var(--adm-text);
    font-size: 0.95rem;
    outline: none;
}

.adm-input:focus {
    border-color: var(--adm-accent);
}
