:root, [data-bs-theme="light"] {
    --sidebar-bg: #ffffff; --sidebar-text: #495057; --sidebar-hover-bg: #f8f9fa;
    --sidebar-active-bg: #1a5fb4; --sidebar-active-text: #ffffff; --sidebar-border: #e9ecef;
    --topbar-bg: #ffffff; --topbar-border: #e9ecef;
    --card-shadow: 0 1px 6px rgba(26, 95, 180, 0.08); --card-shadow-hover: 0 2px 12px rgba(26, 95, 180, 0.12);
    --primary-gradient: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    --brand-blue: #1a5fb4;
}
[data-bs-theme="dark"] {
    --sidebar-bg: #1a1d21; --sidebar-text: #adb5bd; --sidebar-hover-bg: #2c3034;
    --sidebar-active-bg: #1a5fb4; --sidebar-active-text: #ffffff; --sidebar-border: #2c3034;
    --topbar-bg: #1a1d21; --topbar-border: #2c3034;
    --card-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); --card-shadow-hover: 0 2px 12px rgba(0, 0, 0, 0.4);
    --primary-gradient: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    --brand-blue: #1a5fb4;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 0.85rem; line-height: 1.5; }
.topbar { background-color: var(--topbar-bg); border-bottom: 1px solid var(--topbar-border); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.sidebar { min-height: calc(100vh - 56px); background-color: var(--sidebar-bg); color: var(--sidebar-text); border-right: 1px solid var(--sidebar-border); }
.sidebar .nav-link { color: var(--sidebar-text); padding: 0.5rem 1rem; border-radius: 0.4rem; margin: 0.15rem 0.5rem; font-size: 0.82rem; font-weight: 500; display: flex; align-items: center; transition: all 0.2s ease; }
.sidebar .nav-link:hover { background-color: var(--sidebar-hover-bg); color: var(--bs-body-color); transform: translateX(2px); }
.sidebar .nav-link.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); font-weight: 600; }
.sidebar .nav-link i { margin-right: 0.6rem; width: 1.1rem; text-align: center; font-size: 1rem; }
.sidebar h6 { font-size: 0.65rem; letter-spacing: 0.5px; margin-top: 1rem; margin-bottom: 0.4rem; padding: 0 1rem; }
.card { border: 1px solid var(--bs-border-color); border-radius: 0.5rem; transition: all 0.2s ease; box-shadow: var(--card-shadow); }
.card:hover { box-shadow: var(--card-shadow-hover); }
.card-header { border-bottom: 1px solid var(--bs-border-color); padding: 0.75rem 1rem; font-weight: 600; font-size: 0.9rem; }
.card-body { padding: 1rem; }
.table thead th { background-color: var(--bs-tertiary-bg); border-bottom: 2px solid var(--bs-border-color); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bs-secondary-color); padding: 0.6rem; }
.table td { padding: 0.6rem; vertical-align: middle; border-bottom: 1px solid var(--bs-border-color); font-size: 0.85rem; }
.badge { font-weight: 500; padding: 0.3em 0.6em; font-size: 0.7rem; border-radius: 0.3rem; }
.btn { font-weight: 500; border-radius: 0.4rem; transition: all 0.2s ease; padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.form-control, .form-select { border-radius: 0.4rem; border: 1px solid var(--bs-border-color); padding: 0.4rem 0.7rem; font-size: 0.82rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 0.15rem rgba(26, 95, 180, 0.15); }
.page-link { border-radius: 0.3rem; margin: 0 0.1rem; padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.alert { border-radius: 0.5rem; padding: 0.6rem 1rem; font-size: 0.85rem; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bs-tertiary-bg); }
::-webkit-scrollbar-thumb { background: var(--bs-secondary-bg); border-radius: 3px; }
