:root {
    /* --- CORPORATE BRANDING --- */
    --primary-color: #c25f06;
    --secondary-color: #999999;
    --tertiary-color: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --sidebar-width: 250px;
    --header-height: 60px;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- LAYOUT --- */
.page-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    /* Corporate Blue Background */
    color: #fff;
    position: fixed;
    /* FIXED POSITION */
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    /* OFFSET FOR FIXED SIDEBAR */
    padding: 20px;
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    list-style: none;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #d1d5db;
    transition: background 0.2s;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.nav a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* --- CARDS & PANELS --- */
.card {
    background: var(--bg-card);
    border-radius: 4px;
    /* Classic radius */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.card h1,
.card h2 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #111827;
}

.card h1 {
    font-size: 1.5rem;
}

.card h2 {
    font-size: 1.25rem;
}

/* --- REPORTS SPECIFIC STYLES --- */
.filters-section {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-field {
    flex: 1;
    min-width: 200px;
}

.category-section {
    margin-bottom: 30px;
}

.category-section h2 {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #374151;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Responsive Grid */
    gap: 20px;
}

.report-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.report-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.report-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

.report-card p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* --- FORMS & BUTTONS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

.btn:hover {
    background: #2563eb;
    text-decoration: none;
}

/* --- UTILITIES --- */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    /* Dark text for better contrast on yellow */
}

.user-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.centers-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

/* --- MOBILE --- */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    /* Reset margin on mobile */
    /* Handled by JS or inline style in _header */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1000;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        width: 60px;
        height: 60px;
        border-radius: 15px;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        cursor: pointer;
        font-size: 1.8rem;
    }
}