:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --sidebar-bg: #1f2937;
    --sidebar-hover: #374151;
}
* { box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    margin: 0;
    min-height: 100vh;
}
.wrapper { min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--sidebar-bg);
    color: #e5e7eb;
    min-height: 100vh;
    position: sticky; top: 0;
    transition: transform .25s ease;
    z-index: 1040;
}
.sidebar-header {
    padding: 18px 18px 14px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #374151;
}
.sidebar-nav { padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav .nav-link {
    color: #d1d5db; padding: 10px 14px; border-radius: 8px;
    display: flex; align-items: center; gap: 10px; font-size: .92rem;
    text-decoration: none;
}
.sidebar-nav .nav-link:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--primary); color: #fff; font-weight: 500; }
.sidebar-nav .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; }

@media (max-width: 768px) {
    .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); height: 100vh; }
    .sidebar.show { transform: translateX(0); box-shadow: 4px 0 16px rgba(0,0,0,.2); }
}

/* Topbar */
.topbar {
    background: #fff; padding: 12px 20px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky; top: 0; z-index: 1030;
}

/* Cards & misc */
.card { border: none; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card-header { background: #fff; border-bottom: 1px solid #e5e7eb; font-weight: 600; padding: 14px 18px; }
.stat-card {
    background: #fff; border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 14px;
    border-left: 4px solid var(--primary);
}
.stat-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(79,70,229,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-label { color: #6b7280; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-weight: 700; font-size: 1.4rem; }
.stat-card.green { border-left-color: #10b981; }
.stat-card.green .stat-icon { background: rgba(16,185,129,.1); color: #10b981; }
.stat-card.amber { border-left-color: #f59e0b; }
.stat-card.amber .stat-icon { background: rgba(245,158,11,.1); color: #f59e0b; }
.stat-card.rose { border-left-color: #ef4444; }
.stat-card.rose .stat-icon { background: rgba(239,68,68,.1); color: #ef4444; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4f46e5, #6366f1); }
.login-card { background: #fff; border-radius: 14px; padding: 32px; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.btn-icon { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

table.table { font-size: .9rem; }
.badge.bg-warning { color: #1f2937; }
