:root {
    --sidebar-width: 240px;
    --topbar-height: 56px;
}

body {
    background: #0f1117;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: #161822;
    border-right: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
}

.sidebar-brand {
    color: #10b981;
    font-size: 1.2rem;
}

.sidebar .nav-link {
    color: #94a3b8;
    border-radius: 8px;
    margin-bottom: 2px;
    padding: 10px 12px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #e2e8f0;
}

.sidebar .nav-link.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.main-content {
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: #161822;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card {
    background: #1a1d2e;
    border-radius: 12px;
}

.card-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 16px 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1117;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #1a1d2e;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.form-control, .form-select {
    background: #0f1117;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.form-control:focus, .form-select:focus {
    background: #0f1117;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    color: #e2e8f0;
}

.table {
    color: #e2e8f0;
}

.table > :not(caption) > * > * {
    border-bottom-color: rgba(255,255,255,0.05);
}

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

.list-group-item {
    background: transparent;
    border-color: rgba(255,255,255,0.05);
}

.btn-outline-primary { border-color: #3b82f6; color: #3b82f6; }
.btn-outline-primary:hover { background: #3b82f6; color: #fff; }
.btn-outline-success { border-color: #10b981; color: #10b981; }
.btn-outline-success:hover { background: #10b981; color: #fff; }
.btn-outline-danger { border-color: #ef4444; color: #ef4444; }
.btn-outline-danger:hover { background: #ef4444; color: #fff; }
.btn-outline-warning { border-color: #f59e0b; color: #f59e0b; }
.btn-outline-warning:hover { background: #f59e0b; color: #fff; }

.badge { font-weight: 500; }
a { color: #3b82f6; }
a:hover { color: #60a5fa; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .sidebar.show { display: flex; position: fixed; z-index: 1050; }
}
