/* CSV Upload Button Styling */
.csv-upload-wrapper {
    margin-right: 15px;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    border: 2px solid var(--maroon-medium);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-medium) 100%);
    border-color: var(--maroon-light);
    box-shadow: 0 4px 12px rgba(184, 50, 50, 0.5);
    transform: translateY(-1px);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-btn svg {
    flex-shrink: 0;
}

/* Enhanced Maroon Color Palette with Darker, Richer Tones */
:root {
    --maroon-darkest: #1a0505;
    --maroon-dark: #2d0a0a;
    --maroon-primary: #5c0e0e;
    --maroon-medium: #8b1a1a;
    --maroon-light: #b83232;
    --maroon-pale: #d4a5a5;
    --maroon-bg: #0d0202;
    --maroon-surface: #1a0808;
    --white: #f5f0f0;
    --gray-light: #2a2020;
    --gray-medium: #4a3838;
    --gray-dark: #6a5050;
    --text-dark: #e8e0e0;
    --text-muted: #a89090;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-light: rgba(92, 14, 14, 0.3);
    --glow: rgba(184, 50, 50, 0.2);
}

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

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-dark) 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-primary) 100%);
    border-radius: 6px;
    border: 2px solid var(--maroon-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-light) 100%);
    box-shadow: 0 4px 12px rgba(184, 50, 50, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--white) 100%);
}

::-webkit-scrollbar-corner {
    background: var(--maroon-darkest);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thick;
    scrollbar-color: var(--maroon-primary) var(--maroon-dark);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-bg) 50%, var(--maroon-dark) 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(ellipse at top, var(--maroon-surface) 0%, var(--maroon-darkest) 100%);
}

/* Main Header */
.main-header {
    background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-dark) 40%, var(--maroon-primary) 100%);
    color: var(--white);
    padding: 18px 30px;
    box-shadow: 0 8px 32px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(184, 50, 50, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-center {
    display: flex;
    justify-content: center;
    flex: 2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

/* Notification System */
.notification-wrapper {
    position: relative;
    cursor: pointer;
}

.notification-bell {
    background: linear-gradient(135deg, var(--maroon-surface) 0%, var(--maroon-dark) 100%);
    border: 2px solid rgba(184, 50, 50, 0.4);
    border-radius: 12px;
    padding: 12px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-light);
    position: relative;
}

.notification-bell:hover {
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--glow);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 20px;
    border: 2px solid var(--maroon-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-dark) 100%);
    border: 2px solid rgba(184, 50, 50, 0.5);
    border-radius: 16px;
    margin-top: 12px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 20px 60px var(--shadow), 0 0 40px var(--glow);
    display: none;
}

.notification-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-medium) 100%);
    padding: 20px;
    border-radius: 14px 14px 0 0;
    border-bottom: 2px solid rgba(184, 50, 50, 0.4);
}

.notification-header h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notification-item {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(184, 50, 50, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: linear-gradient(135deg, rgba(184, 50, 50, 0.15) 0%, rgba(139, 26, 26, 0.25) 100%);
}

.notification-item.urgent {
    border-left: 4px solid #f44336;
}

.notification-item.urgent:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(211, 47, 47, 0.25) 100%);
}

.notification-item.warning {
    border-left: 4px solid #FF9800;
}

.notification-item.info {
    border-left: 4px solid #2196F3;
}

.notification-item.success {
    border-left: 4px solid #4CAF50;
}

.notification-title {
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.notification-message {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.notification-time {
    color: rgba(212, 165, 165, 0.5);
    font-size: 0.75rem;
    margin-top: 8px;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Hamburger Menu */
.hamburger-menu {
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    border: 1px solid rgba(184, 50, 50, 0.4);
    cursor: pointer;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--glow);
}

.hamburger-menu span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--white) 0%, var(--maroon-pale) 100%);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-menu:hover span {
    background: linear-gradient(90deg, var(--maroon-pale) 0%, var(--white) 100%);
}

/* Logo Placeholder */
.logo-placeholder {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--maroon-surface) 0%, var(--maroon-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--maroon-light);
    font-size: 0.65rem;
    border: 2px solid rgba(184, 50, 50, 0.5);
    box-shadow: 0 4px 15px var(--shadow-light), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

/* Header Title */
.header-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--white) 0%, var(--maroon-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(184, 50, 50, 0.3);
}

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 5, 5, 0.98) 0%, rgba(45, 10, 10, 0.99) 100%);
    border-radius: 20px;
    overflow: visible;
    border: 3px solid rgba(184, 50, 50, 0.8);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(184, 50, 50, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-search:focus-within {
    border-color: #d4a5a5;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 60px rgba(184, 50, 50, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}

.search-category-select {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.95) 0%, rgba(92, 14, 14, 0.98) 100%);
    border: none;
    border-right: 3px solid rgba(184, 50, 50, 0.7);
    padding: 18px 24px;
    border-radius: 17px 0 0 17px;
    color: #f5f0f0;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    outline: none;
    min-width: 150px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-category-select:hover {
    background: linear-gradient(135deg, rgba(184, 50, 50, 0.95) 0%, rgba(139, 26, 26, 0.98) 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(184, 50, 50, 0.3);
}

.search-category-select:focus {
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.2) 0%, rgba(184, 50, 50, 0.3) 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 25px rgba(212, 165, 165, 0.4);
}

.search-category-select option {
    background: #2d0a0a;
    color: #f5f0f0;
    padding: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(184, 50, 50, 0.3);
}

.header-search input {
    padding: 18px 28px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    width: 360px;
    font-weight: 500;
    color: #e8e0e0;
    outline: none;
    transition: all 0.3s ease;
}

.header-search input::placeholder {
    color: rgba(212, 165, 165, 0.8);
    font-weight: 400;
    font-style: italic;
}

.header-search input:focus {
    color: #ffffff;
}

.header-search button {
    background: linear-gradient(135deg, #b83232 0%, #8b1a1a 100%);
    border: none;
    padding: 18px 28px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid rgba(184, 50, 50, 0.7);
    border-radius: 0 17px 17px 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-search button:hover {
    background: linear-gradient(135deg, #d4a5a5 0%, #b83232 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(184, 50, 50, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-search button:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(184, 50, 50, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Search Autocomplete Dropdown */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 5, 5, 0.98) 0%, rgba(45, 10, 10, .99) 100%);
    border: 2px solid rgba(184, 50, 50, 0.6);
    border-radius: 0 0 14px 14px;
    margin-top: 6px;
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(184, 50, 50, 0.25);
    display: none;
}

.search-autocomplete.active {
    display: block;
}

.search-autocomplete-item {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(184, 50, 50, 0.4);
    transition: background 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.search-autocomplete-item:last-child {
    border-bottom: none;
}

.search-autocomplete-item:hover {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.5) 0%, rgba(92, 14, 14, 0.6) 100%);
    transform: translateX(4px);
}

.search-autocomplete-item .state-name {
    font-weight: 700;
    color: #f5f0f0;
    font-size: 1rem;
}

.search-autocomplete-item .state-summary {
    font-size: 0.85rem;
    color: rgba(212, 165, 165, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.search-autocomplete-item .status-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.search-autocomplete-item .status-badge.status-naic {
    background: #00B140;
    color: white;
}

.search-autocomplete-item .status-badge.status-bulletins {
    background: #002B49;
    color: white;
}

.search-autocomplete-item .status-badge.status-pending {
    background: #CC0000;
    color: white;
}

.search-autocomplete-no-results {
    padding: 24px;
    text-align: center;
    color: rgba(212, 165, 165, 0.7);
    font-style: italic;
    font-size: 1rem;
}

.header-search input:focus {
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    border-left: 1px solid rgba(184, 50, 50, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-medium) 100%);
    box-shadow: 0 0 15px var(--glow);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 5, 5, 0.98) 0%, rgba(45, 10, 10, 0.99) 100%);
    border: 2px solid rgba(184, 50, 50, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(184, 50, 50, 0.2);
    color: #f5f0f0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.toast.success {
    border-color: #00B140;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 177, 64, 0.3);
}

.toast.error {
    border-color: #CC0000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(204, 0, 0, 0.3);
}

.toast.warning {
    border-color: #FF9800;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 152, 0, 0.3);
}

.toast.info {
    border-color: #002B49;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 43, 73, 0.3);
}

.toast-icon {
    font-size: 1.4rem;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon {
    color: #00B140;
}

.toast.error .toast-icon {
    color: #CC0000;
}

.toast.warning .toast-icon {
    color: #FF9800;
}

.toast.info .toast-icon {
    color: #002B49;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(212, 165, 165, 0.8);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #f5f0f0;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease-in forwards;
}

/* Notification Wrapper */
.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Settings Button */
.settings-btn {
    background: linear-gradient(135deg, var(--maroon-surface) 0%, var(--maroon-dark) 100%);
    border: 2px solid rgba(184, 50, 50, 0.5);
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow-light);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn svg {
    color: var(--white);
    stroke: var(--white);
}

.settings-btn:hover {
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    border-color: var(--maroon-light);
    box-shadow: 0 6px 25px var(--glow);
    transform: translateY(-2px);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-medium) 100%);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--maroon-darkest);
    box-shadow: 0 2px 8px var(--shadow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px var(--shadow);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 15px var(--glow);
    }
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 70px;
    background: linear-gradient(180deg, var(--maroon-dark) 0%, var(--maroon-darkest) 100%);
    min-height: calc(100vh - 85px);
    position: sticky;
    top: 85px;
    height: calc(100vh - 85px);
    overflow-y: auto;
    box-shadow: 4px 0 25px var(--shadow), inset -1px 0 0 rgba(184, 50, 50, 0.2);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(184, 50, 50, 0.3);
}

.sidebar:hover,
.sidebar.expanded {
    width: 280px;
}

.sidebar-nav {
    padding: 25px 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 16px 22px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(184, 50, 50, 0.2) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-icon {
    font-size: 1.6rem;
    min-width: 35px;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.nav-text {
    opacity: 0;
    margin-left: 18px;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(-10px);
    z-index: 1;
}

.sidebar:hover .nav-text,
.sidebar.expanded .nav-text {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover {
    background: linear-gradient(90deg, rgba(184, 50, 50, 0.3) 0%, transparent 100%);
    border-left-color: var(--maroon-light);
    box-shadow: inset 0 0 20px rgba(184, 50, 50, 0.1);
}

.nav-item.active .nav-link {
    background: linear-gradient(90deg, rgba(184, 50, 50, 0.4) 0%, transparent 100%);
    border-left-color: var(--maroon-light);
    font-weight: 800;
    box-shadow: inset 0 0 25px rgba(184, 50, 50, 0.15);
}

/* Sidebar collapsed state */
.sidebar.collapsed {
    width: 0 !important;
    overflow: hidden !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Nav Submenu */
.nav-submenu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: linear-gradient(180deg, rgba(26, 5, 5, 0.5) 0%, rgba(45, 10, 10, 0.3) 100%);
    border-radius: 0 0 8px 8px;
}

.nav-submenu.open {
    max-height: 200px;
}

.nav-submenu .nav-link.sub-link {
    padding: 12px 22px 12px 55px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-submenu .nav-link.sub-link:hover {
    background: linear-gradient(90deg, rgba(184, 50, 50, 0.25) 0%, transparent 100%);
}

.nav-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0;
}

.sidebar:hover .nav-arrow,
.sidebar.expanded .nav-arrow {
    opacity: 1;
}

.nav-arrow.rotated {
    transform: rotate(180deg);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 35px;
    overflow-y: auto;
    background: radial-gradient(ellipse at center, var(--maroon-surface) 0%, var(--maroon-darkest) 100%);
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, var(--maroon-surface) 0%, var(--maroon-dark) 100%);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 35px;
    box-shadow: 0 8px 32px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 50, 50, 0.3);
}

.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
}

#stateSearch,
#reportSearch,
#billSearch {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(184, 50, 50, 0.4);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-dark) 100%);
    color: var(--text-dark);
    outline: none;
}

#stateSearch:focus,
#reportSearch:focus,
#billSearch:focus {
    border-color: var(--maroon-light);
    box-shadow: 0 0 20px var(--glow);
}

#searchBtn {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    border: 2px solid rgba(184, 50, 50, 0.5);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow-light);
}

#searchBtn:hover {
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-medium) 100%);
    box-shadow: 0 6px 25px var(--glow);
    transform: translateY(-2px);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-dark) 100%);
    color: var(--text-dark);
    border: 2px solid rgba(184, 50, 50, 0.4);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.filter-btn:hover {
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    border-color: var(--maroon-light);
    box-shadow: 0 6px 20px var(--glow);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-medium) 100%);
    color: var(--white);
    border-color: var(--maroon-light);
    box-shadow: 0 6px 25px var(--glow);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: linear-gradient(135deg, var(--maroon-surface) 0%, var(--maroon-dark) 100%);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 50, 50, 0.3);
    border-top: 4px solid var(--maroon-light);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow), 0 0 30px var(--glow);
}

.stat-card h3 {
    color: var(--maroon-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 800;
}

.stat-card p {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--maroon-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(184, 50, 50, 0.3));
}

/* Alerts Section */
.alerts-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.alerts-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--white) 0%, var(--maroon-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#alertsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.alert-card {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-left: 4px solid #FF9800;
}

.alert-card.high-priority {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.1) 100%);
    border-color: rgba(244, 67, 54, 0.4);
    border-left-color: #F44336;
}

.alert-card h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.alert-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Alert Card Header Styling */
.alert-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(184, 50, 50, 0.2);
    color: var(--maroon-light);
}

.alert-card.manually-important .alert-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.alert-card.high-priority .alert-icon {
    background: rgba(204, 0, 0, 0.2);
    color: #CC0000;
}

.alert-card.manually-important {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.3) 100%);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-left: 4px solid #4CAF50;
}

.alert-card.manually-important h4 {
    color: #4CAF50;
}

/* Charts Section */
.charts-section {
    margin-top: 30px;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    background: linear-gradient(135deg, var(--maroon-surface) 0%, var(--maroon-dark) 100%);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(184, 50, 50, 0.3);
    box-shadow: 0 8px 32px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-container h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--white) 0%, var(--maroon-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-container canvas {
    max-height: 300px;
}

/* US Map */
.us-map {
    width: 100%;
    height: 500px;
    position: relative;
    min-height: 400px;
    border: 2px solid white;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.us-map-svg {
    width: 100%;
    height: 100%;
}

.us-outline {
    fill: none;
    stroke: white;
    stroke-width: 3;
}

.state-overlay {
    fill: rgba(184, 50, 50, 0.5);
    stroke: none;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.state-overlay:hover {
    fill: rgba(184, 50, 50, 0.8);
}

.state-overlay.naic-adopted {
    fill: rgba(76, 175, 80, 0.5);
}

.state-overlay.naic-adopted:hover {
    fill: rgba(76, 175, 80, 0.8);
}

.state-dot {
    fill: rgba(184, 50, 50, 0.8);
    stroke: white;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.state-dot:hover {
    fill: rgba(184, 50, 50, 1);
}

.state-dot.naic-adopted {
    fill: rgba(76, 175, 80, 0.8);
}

.state-dot.naic-adopted:hover {
    fill: rgba(76, 175, 80, 1);
}

.map-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(184, 50, 50, 0.3);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 500;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* States Grid */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Bills Grid */
.bills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bill-card {
    background: linear-gradient(135deg, var(--maroon-surface) 0%, var(--maroon-dark) 100%);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(184, 50, 50, 0.3);
    box-shadow: 0 8px 32px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon-light) 0%, var(--maroon-medium) 100%);
}

.bill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow), 0 0 30px var(--glow);
    border-color: var(--maroon-light);
}

.bill-card.enacted::before {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
}

.bill-card.pending::before {
    background: linear-gradient(90deg, #FF9800 0%, #F57C00 100%);
}

.bill-card.proposed::before {
    background: linear-gradient(90deg, #2196F3 0%, #1976D2 100%);
}

.bill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bill-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    flex: 1;
    margin-right: 15px;
}

.bill-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bill-status-badge.enacted {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.bill-status-badge.pending {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.bill-status-badge.proposed {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.bill-state {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(184, 50, 50, 0.3) 0%, rgba(139, 26, 26, 0.4) 100%);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--maroon-light);
    margin-bottom: 12px;
    border: 1px solid rgba(184, 50, 50, 0.4);
}

.bill-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bill-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(184, 50, 50, 0.2);
    font-size: 0.8rem;
    color: rgba(212, 165, 165, 0.6);
}

.bill-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bill-meta-item svg {
    width: 14px;
    height: 14px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--maroon-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.bill-card:hover::before {
    opacity: 1;
}

.bill-card.enacted {
    border-left-color: #4CAF50;
}

.bill-card.pending {
    border-left-color: #FF9800;
}

.bill-card.proposed {
    border-left-color: #2196F3;
}

.bill-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.bill-state {
    display: inline-block;
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(184, 50, 50, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    margin-left: 20px;
}

.state-card {
    background: linear-gradient(135deg, var(--maroon-surface) 0%, var(--maroon-dark) 100%);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(184, 50, 50, 0.3);
    border-left: 4px solid var(--maroon-medium);
    position: relative;
    overflow: hidden;
}

.state-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(184, 50, 50, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.state-card:hover::before {
    opacity: 1;
}

.state-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px var(--shadow), 0 0 40px var(--glow);
    border-color: rgba(184, 50, 50, 0.5);
}

.state-card.naic-developed {
    border-left-color: #2e7d32;
}

.state-card.naic-developed:hover {
    box-shadow: 0 16px 48px var(--shadow), 0 0 40px rgba(46, 125, 50, 0.3);
}

.state-card.has-bulletins {
    border-left-color: #1976d2;
}

.state-card.has-bulletins:hover {
    box-shadow: 0 16px 48px var(--shadow), 0 0 40px rgba(25, 118, 210, 0.3);
}

.state-card.pending {
    border-left-color: #f57c00;
}

.state-card.pending:hover {
    box-shadow: 0 16px 48px var(--shadow), 0 0 40px rgba(245, 124, 0, 0.3);
}

.state-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--maroon-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.state-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-naic {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: var(--white);
    border: 1px solid rgba(46, 125, 50, 0.5);
}

.status-bulletins {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    color: var(--white);
    border: 1px solid rgba(25, 118, 210, 0.5);
}

.status-pending {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    color: var(--white);
    border: 1px solid rgba(245, 124, 0, 0.5);
}

.state-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(145deg, var(--maroon-surface) 0%, var(--maroon-dark) 50%, var(--maroon-darkest) 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 28px;
    width: 92%;
    max-width: 1000px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 100px rgba(184, 50, 50, 0.15);
    border: 1px solid rgba(184, 50, 50, 0.4);
}

.modal-header {
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-medium) 50%, var(--maroon-light) 100%);
    padding: 40px 45px;
    border-radius: 26px 26px 0 0;
    border-bottom: 3px solid rgba(184, 50, 50, 0.5);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--white) 0%, var(--maroon-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-section {
    padding: 35px 45px;
    border-bottom: 1px solid rgba(184, 50, 50, 0.15);
    background: linear-gradient(180deg, transparent 0%, rgba(184, 50, 50, 0.03) 100%);
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section h3 {
    color: var(--maroon-light);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.modal-section h3::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-primary) 100%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(184, 50, 50, 0.4);
}

.modal-section p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 18px;
    font-weight: 500;
}

.modal-section p strong {
    color: var(--maroon-light);
    font-weight: 700;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.status-item {
    background: linear-gradient(135deg, rgba(92, 14, 14, 0.25) 0%, rgba(45, 10, 10, 0.35) 100%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(184, 50, 50, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.status-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(184, 50, 50, 0.2);
    border-color: rgba(184, 50, 50, 0.5);
}

.status-item .label {
    color: var(--maroon-pale);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.status-item .value {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-word;
}

.status-item .value.yes {
    color: #4CAF50;
    font-weight: 700;
}

.status-item .value.no {
    color: #f44336;
    font-weight: 700;
}

.compliance-list {
    list-style: none;
    padding: 0;
}

.compliance-list li {
    background: linear-gradient(135deg, rgba(92, 14, 14, 0.25) 0%, rgba(45, 10, 10, 0.35) 100%);
    padding: 20px 28px;
    margin-bottom: 14px;
    border-radius: 14px;
    border-left: 5px solid var(--maroon-medium);
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.compliance-list li:hover {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.35) 0%, rgba(92, 14, 14, 0.45) 100%);
    border-left-color: var(--maroon-light);
    transform: translateX(6px);
    box-shadow: 0 6px 24px rgba(184, 50, 50, 0.3);
}

.bulletin-item {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.2) 0%, rgba(13, 71, 161, 0.3) 100%);
    border-left-color: #2196F3;
}

.bulletin-item:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(25, 118, 210, 0.4) 100%);
    border-left-color: #42A5F5;
}

.close {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Bills Page Specific Styles */
.bills-page-title {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--white) 0%, var(--maroon-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .states-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        width: 94%;
        max-width: 850px;
    }
}

@media (max-width: 992px) {
    .header-title {
        font-size: 1.4rem;
    }
    
    .header-search input {
        width: 220px;
    }
    
    .states-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
    }
    
    .stats-section {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 750px;
        margin: 4% auto;
    }
    
    .modal-header {
        padding: 30px 35px;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .modal-section {
        padding: 25px 35px;
    }
    
    .status-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 20px;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
    
    .header-search {
        display: none;
    }
    
    .header-center {
        display: none;
    }
    
    .header-left {
        flex: 1;
    }
    
    .header-right {
        flex: 0;
    }
    
    .sidebar {
        width: 0;
        position: fixed;
        z-index: 200;
        height: 100vh;
        top: 0;
        left: 0;
        transition: width 0.3s ease;
    }
    
    .sidebar.active {
        width: 280px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .states-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card p {
        font-size: 2rem;
    }
    
    .bills-grid {
        gap: 10px;
    }
    
    .bill-card {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .bill-state {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .modal-content {
        width: 96%;
        max-width: none;
        margin: 5% auto;
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 25px 30px;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-section {
        padding: 20px 30px;
    }
    
    .modal-section h3 {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .status-item {
        padding: 16px;
    }
    
    .compliance-list li {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .close {
        right: 20px;
        top: 20px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 15px;
    }
    
    .logo-placeholder {
        width: 45px;
        height: 45px;
        font-size: 0.55rem;
    }
    
    .settings-btn {
        padding: 10px 14px;
        font-size: 1.2rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .state-card {
        padding: 20px;
    }
    
    .state-name {
        font-size: 1.2rem;
    }
    
    .bill-name {
        font-size: 1rem;
    }
    
    .bill-state {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .modal-content {
        width: 96%;
        max-width: none;
        margin: 5% auto;
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 25px 30px;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-section {
        padding: 20px 30px;
    }
    
    .modal-section h3 {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }
    
    .modal-section h3::before {
        height: 20px;
    }
    
    .modal-section p {
        font-size: 1rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .status-item {
        padding: 16px;
    }
    
    .status-item .label {
        font-size: 0.75rem;
    }
    
    .status-item .value {
        font-size: 1rem;
    }
    
    .compliance-list li {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .close {
        right: 20px;
        top: 20px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

.modal-section p {
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 500;
}

.compliance-list {
    list-style: none;
    padding: 0;
}

.compliance-list li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-dark) 100%);
    border-left: 4px solid var(--maroon-light);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 1px solid rgba(184, 50, 50, 0.3);
    border-left-width: 4px;
    transition: all 0.3s;
}

.compliance-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px var(--glow);
    border-left-color: var(--maroon-pale);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(26, 5, 5, 0.95) 0%, rgba(45, 10, 10, 0.98) 100%);
    border-top: 2px solid rgba(184, 50, 50, 0.5);
    padding: 30px 40px;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-text {
    color: #f5f0f0;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: rgba(212, 165, 165, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #f5f0f0;
}

.footer-copyright {
    color: rgba(212, 165, 165, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .header-search input {
        width: 180px;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-left {
        gap: 15px;
    }
    
    .header-title {
        font-size: 1rem;
    }
    
    .logo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 0.6rem;
    }
    
    .header-search input {
        width: 150px;
    }
    
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        min-height: auto;
    }
    
    .main-content {
        padding: 20px;
    }

    .search-container {
        flex-direction: column;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .states-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 15px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .header-title {
        font-size: 0.9rem;
    }
    
    .logo-placeholder {
        width: 35px;
        height: 35px;
        font-size: 0.5rem;
    }
    
    .header-search input {
        width: 100px;
        font-size: 0.85rem;
    }
    
    .header-search {
        display: none;
    }
    
    .settings-btn {
        padding: 8px 12px;
        font-size: 1.1rem;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* State Filter Modal Styling */
.state-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.state-filter-modal .modal-content {
    background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-dark) 100%);
    border: 2px solid var(--maroon-medium);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.state-filter-modal .modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--maroon-medium);
}

.state-filter-modal .modal-header h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.state-filter-modal .modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.state-filter-modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--maroon-pale);
    cursor: pointer;
    transition: color 0.3s ease;
}

.state-filter-modal .close:hover {
    color: var(--white);
}

.state-filter-modal .states-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.state-filter-item {
    background: linear-gradient(135deg, rgba(92, 14, 14, 0.3) 0%, rgba(45, 10, 10, 0.4) 100%);
    border: 1px solid var(--maroon-medium);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.state-filter-item:hover {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.4) 0%, rgba(92, 14, 14, 0.5) 100%);
    border-color: var(--maroon-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 50, 50, 0.3);
}

.state-filter-item .state-info {
    flex: 1;
}

.state-filter-item .state-info h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.state-filter-item .state-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.state-filter-item .state-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.state-filter-item .state-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.action-btn.review-btn {
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    border: 1px solid var(--maroon-medium);
}

.action-btn.review-btn:hover {
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-medium) 100%);
    border-color: var(--maroon-light);
    transform: translateY(-1px);
}

.action-btn.mark-important-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: var(--white);
    border: 1px solid #4CAF50;
}

.action-btn.mark-important-btn:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    border-color: #66BB6A;
    transform: translateY(-1px);
}

.action-btn.clear-btn {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    color: var(--white);
    border: 1px solid #9E9E9E;
}

.action-btn.clear-btn:hover {
    background: linear-gradient(135deg, #BDBDBD 0%, #9E9E9E 100%);
    border-color: #BDBDBD;
    transform: translateY(-1px);
}

.status-badge.status-important {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: var(--white);
}

.status-badge.status-reviewed {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: var(--white);
}

.status-badge.status-removed {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    color: var(--white);
}

/* Notes Section Styling */
.notes-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(45, 10, 10, 0.5);
    border: 1px solid var(--maroon-medium);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--maroon-light);
    box-shadow: 0 0 0 3px rgba(184, 50, 50, 0.2);
}

.notes-textarea::placeholder {
    color: var(--text-muted);
}

.save-notes-btn {
    align-self: flex-start;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--maroon-medium) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    border: 1px solid var(--maroon-medium);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-notes-btn:hover {
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-medium) 100%);
    border-color: var(--maroon-light);
    transform: translateY(-1px);
}
