* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary */
    --primary-blue: #0F9FC4;
    --secondary-blue: #1F3D7C;
    /* Secondary / Neutrals */
    --slate: #808FAD;
    --light-silver: #E3E4E9;
    --off-white: #F7F7F8;
    --mid-grey: #999999;
    --pale-cyan: #EAF7FA;
    --soft-cyan: #C3E7F0;
    /* Aliases for backward compat */
    --primary-grey: #808FAD;
    --light-grey: #F7F7F8;
    --border-grey: #E3E4E9;
    --text-dark: #1F3D7C;
    --text-muted: #808FAD;
    --success-green: #0F9FC4;
    --warning-orange: #808FAD;
    --danger-red: #1F3D7C;
    --info-teal: #0F9FC4;
    --sidebar-width: 250px;
    --sidebar-collapsed: 60px;
}

body {
    font-family: 'Red Hat Display', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 1.25rem 1.5rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    background: var(--off-white);
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed);
}

.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    background: white;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--light-grey);
    transform: scale(1.05);
}

.view-container {
    max-width: 1600px;
    margin: 0 auto;
}

.section-block {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px var(--light-silver);
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-silver);
    font-family: 'Red Hat Display', sans-serif;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.filter-section {
    background: white;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.875rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px var(--light-silver);
}

.filter-section label {
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.filter-section select,
.filter-section input {
    border-radius: 6px;
    border: 1px solid var(--light-silver);
    padding: 0.35rem 0.625rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    color: var(--secondary-blue);
    background: var(--off-white);
}

.filter-section select:focus,
.filter-section input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(15, 159, 196, 0.15);
    outline: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

.btn-export {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    font-family: 'Red Hat Display', sans-serif;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 159, 196, 0.35);
}

.btn-export:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .main-content {
        margin-left: 0;
        padding: 0.75rem;
    }
    
    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 767px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .section-block {
        padding: 0.75rem;
    }
    
    .filter-section {
        padding: 0.625rem 0.75rem;
    }
}
