:root {
    --brand-blue: #0b63b7;
    --brand-blue-dark: #084f93;
    --neutral-100: #f8f9fa;
    --neutral-200: #e9ecef;
    --neutral-800: #343a40;
    --error: #c53030;
    --success: #2f855a;

    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 20px;
    background-color: var(--neutral-100);
    color: var(--neutral-800);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 {
    font-size: 28px;
    line-height: 36px;
}

h2 {
    font-size: 22px;
    line-height: 30px;
}

h3 {
    font-size: 18px;
    line-height: 24px;
}

.btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 8px 16px;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
}

.text-brand {
    color: var(--brand-blue);
}

.bg-brand {
    background-color: var(--brand-blue);
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    background-color: white;
    border-right: 1px solid var(--neutral-200);
    transition: transform 0.3s ease-in-out;
    z-index: 1040; /* Above overlay */
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1030; /* Below sidebar, above content */
    }

    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar .nav-link {
    color: var(--neutral-800);
    padding: 12px 24px;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--neutral-100);
    color: var(--brand-blue);
    border-right: 3px solid var(--brand-blue);
}

.main-content {
    padding: 24px;
}

.card {
    border: 1px solid var(--neutral-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 24px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--neutral-200);
    font-weight: 600;
    padding: 16px 20px;
}

/* Utils */
.bg-danger-subtle {
    background-color: #fff5f5 !important;
}

.border-danger-subtle {
    border-color: #feb2b2 !important;
}

.text-danger {
    color: var(--error) !important;
}

/* Dashboard layout tweaks */
.main-content {
    height: 100vh;
    overflow-y: auto;
}