﻿@* File: wwwroot/css/site.css - With Phase 4A Enhancements *@
/* Complete Mobile-First DMV Wait Times CSS */
/* CSS Custom Properties */
:root {
    --primary-color: #198754;
    --primary-hover: #146c43;
    --primary-light: #d1e7dd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --secondary-color: #6c757d;
    --info-color: #17a2b8;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --bs-primary: #1e40af !important;
    --bs-primary-rgb: 30, 64, 175 !important;
}

/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

/* Mobile-First Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.community-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

/* Mobile slide-out menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--primary-color);
    color: white;
}

    .mobile-menu-header h5 {
        margin: 0;
        font-weight: 600;
    }

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

    .btn-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--neutral-800);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

    .mobile-nav-item:hover {
        background: var(--neutral-50);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        text-decoration: none;
    }

    .mobile-nav-item i {
        width: 1.5rem;
        margin-right: 1rem;
        font-size: 1.125rem;
    }

    .mobile-nav-item span {
        font-weight: 500;
    }

/* Desktop navigation styling */
.navbar .nav-link {
    color: var(--neutral-800) !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar .nav-link:hover {
        background: var(--primary-light);
        color: var(--primary-color) !important;
    }

    .navbar .nav-link.active {
        background: var(--primary-color);
        color: white !important;
    }

/* Mobile bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

    .bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--neutral-800);
        padding: 0.5rem;
        border-radius: var(--radius-md);
        min-width: 60px;
        transition: all 0.2s;
        font-size: 0.75rem;
    }

        .bottom-nav .nav-item.active {
            color: var(--primary-color);
            background: var(--primary-light);
        }

        .bottom-nav .nav-item:hover {
            color: var(--primary-color);
            text-decoration: none;
        }

    .bottom-nav .nav-icon {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .bottom-nav .nav-label {
        font-size: 0.625rem;
        font-weight: 500;
        line-height: 1;
    }

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: calc(5rem + env(safe-area-inset-bottom));
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 999;
}

    .fab:hover {
        background: var(--primary-hover);
    }

/* Content spacing adjustments */
.main-content {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

/* Hero section - Updated with green theme */
/* Hero section - Fixed green background */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    color: white !important;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    box-shadow: var(--shadow-md);
}

    .hero-section h1 {
        color: white !important;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero-section p {
        color: white !important;
        opacity: 0.95;
    }

    .hero-section .text-light {
        color: rgba(255, 255, 255, 0.8) !important;
    }

/* Compact hero section for better mobile UX */
.hero-compact {
    padding: 1.5rem 1rem !important;
    margin-bottom: 1.5rem !important;
}

    .hero-compact h1 {
        font-size: 1.75rem !important;
        font-weight: 700;
        margin-bottom: 0.5rem !important;
    }

    .hero-compact p {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }

    .hero-compact small {
        font-size: 0.875rem !important;
    }

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-compact {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

        .hero-compact h1 {
            font-size: 1.5rem !important;
        }

        .hero-compact p {
            font-size: 0.9rem !important;
        }
}

/* Search card */
.search-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

    .search-card:hover {
        box-shadow: var(--shadow-lg);
    }

/* State cards */
.state-card {
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

    .state-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

/* Wait time cards */
.wait-time-card {
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

    .wait-time-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

.wait-info {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
}

.wait-time {
    display: inline-block;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    min-width: 120px;
    transition: all 0.2s ease;
}

.wait-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.wait-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Wait time color coding - Updated with better contrast */
.wait-time.excellent {
    background: linear-gradient(135deg, var(--success-color), #0d5d2b);
    color: white;
    border: none;
}

.wait-time.good {
    background: linear-gradient(135deg, var(--warning-color), #b8860b);
    color: var(--neutral-900);
    border: none;
}

.wait-time.fair {
    background: linear-gradient(135deg, var(--danger-color), #a71e2e);
    color: white;
    border: none;
}

.wait-time.poor {
    background: linear-gradient(135deg, var(--secondary-color), #495057);
    color: white;
    border: none;
}

.wait-time.unknown {
    background: linear-gradient(135deg, var(--secondary-color), #495057);
    color: white;
    border: none;
}

/* Card border colors */
.border-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-warning {
    border-left: 4px solid var(--warning-color) !important;
}

.border-danger {
    border-left: 4px solid var(--danger-color) !important;
}

.border-secondary {
    border-left: 4px solid var(--secondary-color) !important;
}

/* Badge colors */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
}

    .badge.bg-info {
        background-color: var(--info-color) !important;
    }

/* Button styling - Enhanced for mobile */
.btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: 0.75rem 1rem;
    min-height: 44px; /* iOS touch target */
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
    }

.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    min-height: 36px;
}

/* Card styling - Enhanced */
.card {
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

    .card:hover {
        box-shadow: var(--shadow-lg);
    }

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
}

/* Layout improvements */
.content {
    padding: 1rem !important;
}

/* Office details styling */
.office-details small {
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.office-details i {
    width: 1.25rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Pro tips styling */
.card-body ul {
    padding-left: 1.2rem;
}

    .card-body ul li {
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }

/* Multi-state enhancements */
.text-light {
    opacity: 0.9;
}

/* Improved spacing for state indicators */
.d-flex.flex-column.align-items-end .badge:not(:last-child) {
    margin-bottom: 0.25rem;
}

/* Navigation brand */
.navbar-brand {
    font-weight: bold;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Enhanced Error UI */
#blazor-error-ui {
    background: var(--danger-color);
    color: white;
    bottom: 0;
    box-shadow: var(--shadow-lg);
    display: none;
    left: 0;
    padding: 1rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 1rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* ===== PHASE 4A ENHANCEMENTS ===== */

/* Community Stats Styling */
.community-stats {
    background: linear-gradient(135deg, #f8f9fade 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.stat-number {
    font-size: 1.2rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Recent Reports Styling */
.recent-reports h6 {
    font-size: 0.9rem;
    font-weight: 600;
}

.report-item {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

    .report-item:hover {
        background: rgba(248, 249, 250, 0.8);
    }

    .report-item:last-child {
        margin-bottom: 0;
    }

/* Voting System Styling */
.vote-buttons {
    min-width: 60px;
}

.vote-btn {
    padding: 0.25rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
    transition: all 0.2s ease;
}

    .vote-btn:hover {
        transform: scale(1.05);
    }

    .vote-btn.btn-success, .vote-btn.btn-danger {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

.btn-group-vertical .vote-btn:first-child {
    margin-bottom: 2px;
}

/* Enhanced Wait Time Display Enhancements */
.wait-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .wait-time::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0.1;
        border-radius: 0.5rem;
    }

    .wait-time.excellent::before {
        background: #28a745;
    }

    .wait-time.good::before {
        background: #ffc107;
    }

    .wait-time.fair::before {
        background: #dc3545;
    }

    .wait-time.poor::before {
        background: #6c757d;
    }

/* Responsive Adjustments for Phase 4A */
@media (max-width: 768px) {
    .vote-buttons {
        min-width: 50px;
    }

    .vote-btn {
        padding: 0.2rem 0.3rem;
        font-size: 0.7rem;
    }

    .stat-number {
        font-size: 1rem;
    }

    .community-stats .col-4 {
        padding: 0.25rem;
    }
}

/* Animation for vote feedback */
@keyframes voteSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.vote-btn.btn-success:active,
.vote-btn.btn-danger:active {
    animation: voteSuccess 0.3s ease;
}

/* Collapse animation for reports */
.collapse {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

    .collapse:not(.show) {
        opacity: 0;
    }

/* Badge enhancements */
.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Loading states */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive design */
@media (max-width: 576px) {
    .hero-section {
        margin: 0 -1rem 2rem -1rem;
        border-radius: 0;
    }

    .content {
        padding: 0.5rem !important;
    }

    .wait-time {
        min-width: 90px;
        padding: 0.75rem;
    }

    .wait-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem !important;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    .wait-number {
        font-size: 1.5rem;
    }

    .state-card {
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .main-content {
        padding-bottom: 2rem;
    }

    .fab {
        bottom: 2rem;
        right: 2rem;
    }

    .content {
        padding: 2rem !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus, .nav-item:focus, .mobile-nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn:active, .card:active, .nav-item:active, .mobile-nav-item:active {
        transform: scale(0.98);
    }
}

/* Enhanced hero section with green gradient - keeping your existing styles */
.hero-section, .hero-compact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 50%, #0b589e 100%) !important;
    color: white !important;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

    /* Add a subtle overlay for depth */
    .hero-section::before, .hero-compact::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
        pointer-events: none;
    }

    /* Ensure text stays visible */
    .hero-section *, .hero-compact * {
        position: relative;
        z-index: 1;
        color: white !important;
    }

    .hero-section h1, .hero-compact h1 {
        color: white !important;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .hero-section p, .hero-compact p {
        color: white !important;
        opacity: 0.95;
    }

    .hero-section .text-light, .hero-compact .text-light,
    .hero-section small, .hero-compact small {
        color: rgba(255, 255, 255, 0.9) !important;
    }

/* Force remove all hover transforms - keeping your preference */
.card:hover,
.wait-time-card:hover,
.state-card:hover,
.search-card:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
}

/* Also remove any translateY transforms specifically */
.card:hover,
.wait-time-card:hover,
.state-card:hover,
.search-card:hover {
    transform: translateY(0px) !important;
}

/* Remove FAB scaling too if it's jumpy */
.fab:hover {
    transform: none !important;
}

/* Remove focus outline from hero section */
.hero-section h1:focus,
.hero-compact h1:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove focus from all hero section elements */
.hero-section *:focus,
.hero-compact *:focus {
    outline: none !important;
}

/* Phase 4A Voting System CSS - Add to site.css */

/* Enhanced Voting Button Styling */
.vote-buttons {
    min-width: 60px;
    flex-shrink: 0;
}

.vote-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    line-height: 1.2;
    transition: all 0.2s ease;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 2px solid;
    font-weight: 500;
}

    .vote-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .vote-btn:active {
        transform: translateY(0);
    }

    /* Voted state styling */
    .vote-btn.btn-outline-success {
        background: rgba(25, 135, 84, 0.1);
        border-color: #198754;
        color: #198754;
    }

    .vote-btn.btn-outline-danger {
        background: rgba(220, 53, 69, 0.1);
        border-color: #dc3545;
        color: #dc3545;
    }

    /* Default state */
    .vote-btn.btn-outline-secondary {
        background: transparent;
        border-color: #dee2e6;
        color: #6c757d;
    }

        .vote-btn.btn-outline-secondary:hover {
            background: rgba(108, 117, 125, 0.1);
            border-color: #6c757d;
            color: #6c757d;
        }

/* Vote count styling */
.vote-count {
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 0.15rem;
}

/* Button group for vertical stacked votes */
.btn-group-vertical .vote-btn:first-child {
    margin-bottom: 3px;
    border-radius: 0.375rem;
}

.btn-group-vertical .vote-btn:last-child {
    border-radius: 0.375rem;
}

/* Animation for successful vote */
@keyframes voteSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.vote-btn.voting-animation {
    animation: voteSuccess 0.4s ease;
}

/* Enhanced Community Stats */
.community-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .community-stats::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #198754, #20c997, #0dcaf0);
    }

.stat-number {
    font-size: 1.3rem;
    line-height: 1.1;
    font-weight: 700;
}

.stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Report item enhancements */
.report-item {
    background: rgba(248, 249, 250, 0.6);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

    .report-item:hover {
        background: rgba(248, 249, 250, 0.9);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .report-item:last-child {
        margin-bottom: 0;
    }

    /* Badge enhancements for reports */
    .report-item .badge {
        font-weight: 600;
        padding: 0.4rem 0.6rem;
        border-radius: 0.375rem;
    }

/* Enhanced Modal Styling */
.modal-header.bg-primary {
    border-bottom: none;
    background: linear-gradient(135deg, #198754, #20c997) !important;
}

.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-lg {
    max-width: 900px;
}

/* Community sidebar card */
.card.bg-light {
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header.bg-transparent {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid #e9ecef;
}

/* Alert styling improvements */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 1px solid #b6d4db;
    color: #0c5460;
}

.alert-light {
    background: linear-gradient(135deg, #fefefe, #f8f9fa);
    border: 1px solid #e9ecef;
}

/* Success state enhancements */
.text-success {
    color: #198754 !important;
}

/* Icon enhancements */
.bi {
    vertical-align: -0.125em;
}

/* Loading state for vote buttons */
.vote-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

    .vote-btn.loading::after {
        content: '';
        width: 0.8rem;
        height: 0.8rem;
        border: 2px solid currentColor;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        position: absolute;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vote-buttons {
        min-width: 50px;
    }

    .vote-btn {
        padding: 0.2rem 0.35rem;
        font-size: 0.65rem;
        min-width: 38px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .community-stats .col-4 {
        padding: 0.5rem 0.25rem;
    }

    .modal-lg {
        margin: 0.5rem;
        max-width: none;
    }

    .modal-body .row {
        flex-direction: column;
    }

    .modal-body .col-md-4 {
        margin-top: 1rem;
    }
}

/* Enhanced focus states for accessibility */
.vote-btn:focus {
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
    outline: none;
}

.vote-btn.btn-outline-danger:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

/* Add this to your site.css to override Bootstrap's thick focus border */

/* More specific selector to override Bootstrap */
.input-group .form-control:focus,
.search-card .form-control:focus,
input.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.15) !important; /* Much more subtle */
    outline: none !important;
}

/* Alternative: Override Bootstrap's CSS custom property */
.form-control {
    --bs-focus-ring-color: rgba(25, 135, 84, 0.15) !important;
    --bs-focus-ring-width: 2px !important;
}

/* Optional: Even more subtle version */
/*
.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px rgba(25, 135, 84, 0.25) !important;
    outline: none !important;
}
*/

/* Remove the default Bootstrap focus ring entirely if you prefer */
/*
.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
    outline: none !important;
}
*/

.proximity-highlight {
    border-left: 4px solid #28a745 !important;
}

.distance-info .badge {
    font-size: 0.8rem;
}

.alert-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
    .vote-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .vote-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

/* Dark mode support (if you implement it later) */
@media (prefers-color-scheme: dark) {
    .community-stats {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
        color: white;
    }

    .stat-label {
        color: #a0aec0;
    }

    .report-item {
        background: rgba(45, 55, 72, 0.6);
        color: white;
    }

        .report-item:hover {
            background: rgba(45, 55, 72, 0.9);
        }
}

/* ===== MOBILE REPORTS READABILITY FIX ===== */
/* Add this to the bottom of your site.css file */

/* Enhanced Recent Reports - Mobile Readability Fix */
.recent-reports .report-item {
    background: #ffffff !important; /* Force white background */
    border: 2px solid #e9ecef !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Force dark text on mobile for better contrast */
@media (max-width: 768px) {
    .recent-reports .report-item {
        background: #f8f9fa !important; /* Light gray background on mobile */
        border: 3px solid #dee2e6 !important;
        padding: 1.25rem !important;
    }

        /* Force all text to be dark and readable */
        .recent-reports .report-item .text-muted,
        .recent-reports .report-item small,
        .recent-reports .report-item .small {
            color: #212529 !important; /* Force dark text */
            font-weight: 500 !important;
        }

        /* Make badges bigger and more readable */
        .recent-reports .report-item .badge {
            font-size: 1rem !important;
            padding: 0.6rem 0.8rem !important;
            font-weight: 700 !important;
        }

    /* Bigger vote buttons for easier tapping */
    .recent-reports .vote-btn {
        min-width: 50px !important;
        min-height: 42px !important;
        font-size: 0.85rem !important;
        border-width: 2px !important;
        margin: 2px !important;
    }

    /* User initials more prominent */
    .recent-reports .report-item .fw-semibold {
        color: #198754 !important;
        font-weight: 700 !important;
    }

    /* Enhanced border colors for better mobile visibility */
    .recent-reports .border-success {
        border-left-color: #28a745 !important;
        border-left-width: 5px !important;
    }

    .recent-reports .border-warning {
        border-left-color: #ffc107 !important;
        border-left-width: 5px !important;
    }

    .recent-reports .border-danger {
        border-left-color: #dc3545 !important;
        border-left-width: 5px !important;
    }

    .recent-reports .border-dark {
        border-left-color: #343a40 !important;
        border-left-width: 5px !important;
    }
}

/* High contrast mode for very bright conditions (sunlight) */
@media (max-width: 768px) and (prefers-contrast: high) {
    .recent-reports .report-item {
        background: #ffffff !important;
        border: 4px solid #000000 !important;
        color: #000000 !important;
    }

        .recent-reports .report-item * {
            color: #000000 !important;
        }
}

/* Touch feedback for vote buttons */
@media (hover: none) and (pointer: coarse) {
    .recent-reports .vote-btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s !important;
    }
}

/* Add these styles to your existing site.css file */

/* Distance Source Indicator Styling */
.distance-info {
    border-left: 3px solid var(--info-color);
    background: rgba(23, 162, 184, 0.1) !important;
}

    .distance-info.gps-source {
        border-left-color: var(--success-color);
        background: rgba(25, 135, 84, 0.1) !important;
    }

        .distance-info.gps-source .text-info {
            color: var(--success-color) !important;
        }

/* GPS Location Display Enhancement */
.current-location-display {
    border-left: 3px solid var(--success-color);
}

    .current-location-display.zip-location {
        border-left-color: var(--info-color);
    }

/* Enhanced Office Card Distance Display */
.wait-time-card .distance-info .badge {
    position: relative;
}

    .wait-time-card .distance-info .badge.gps-distance::before {
        content: '📍';
        font-size: 0.7rem;
        margin-right: 2px;
    }

    .wait-time-card .distance-info .badge.zip-distance::before {
        content: '📮';
        font-size: 0.7rem;
        margin-right: 2px;
    }

/* Search Type Toggle Enhancements */
.search-options .btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.search-options .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

    .search-options .btn-outline-primary:hover {
        background-color: var(--primary-light);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

/* Location Status Indicators */
.location-status {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

    .location-status.gps-active {
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
        border: 1px solid rgba(25, 135, 84, 0.2);
        color: var(--success-color);
    }

    .location-status.zip-active {
        background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
        border: 1px solid rgba(23, 162, 184, 0.2);
        color: var(--info-color);
    }

/* Enhanced Proximity Highlighting */
.proximity-highlight.gps-based {
    border-left-color: #20c997 !important;
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.1), rgba(32, 201, 151, 0.05));
}

    .proximity-highlight.gps-based::before {
        content: '🎯 GPS-Accurate: ';
        font-weight: 600;
        color: #20c997;
    }

/* Mobile GPS Indicator */
@media (max-width: 768px) {
    .distance-info {
        font-size: 0.8rem;
        padding: 0.5rem !important;
        margin-top: 0.5rem;
        border-radius: 0.375rem;
    }

    .current-location-display {
        font-size: 0.8rem;
    }

    .location-status {
        font-size: 0.75rem;
        padding: 0.375rem;
    }
}

/* Loading State for GPS */
.gps-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: gps-loading 1.5s infinite;
}

@keyframes gps-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* GPS Permission Prompt Styling */
.gps-permission-prompt {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 1rem;
}

    .gps-permission-prompt .btn {
        margin-top: 0.5rem;
    }

/* Success States */
.gps-success {
    background: linear-gradient(135deg, #d1e7dd, #a3d9cc);
    border: 1px solid #198754;
    color: #0f5132;
}

.zip-success {
    background: linear-gradient(135deg, #cff4fc, #a6e3f0);
    border: 1px solid #0dcaf0;
    color: #055160;
}

/* Icon Animations */
.location-icon-pulse {
    animation: location-pulse 2s infinite;
}

@keyframes location-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Distance Badge Enhancements */
.distance-badge-group {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

    .distance-badge-group .badge {
        font-weight: 600;
        letter-spacing: 0.025em;
    }

.gps-distance-badge {
    background: linear-gradient(135deg, #20c997, #17a2b8) !important;
    border: 1px solid #20c997;
    color: white !important;
    box-shadow: 0 2px 4px rgba(32, 201, 151, 0.2);
}

.zip-distance-badge {
    background: linear-gradient(135deg, #17a2b8, #0dcaf0) !important;
    border: 1px solid #17a2b8;
    color: white !important;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

/* Enhanced Office Card Headers */
.office-card-header {
    position: relative;
    overflow: hidden;
}

    .office-card-header.gps-accurate::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #20c997, #17a2b8, #20c997);
        background-size: 200% 100%;
        animation: gps-accuracy-indicator 3s infinite;
    }

@keyframes gps-accuracy-indicator {
    0%, 100% {
        background-position: 200% 0;
    }

    50% {
        background-position: -200% 0;
    }
}

/* Location Method Toggle Improvements */
.search-type-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 10;
}

    .search-type-indicator.gps {
        background: #20c997;
    }

    .search-type-indicator.zip {
        background: #17a2b8;
    }

/* Tooltip for Distance Source */
.distance-source-tooltip {
    position: relative;
    cursor: help;
}

    .distance-source-tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        pointer-events: none;
    }

    .distance-source-tooltip:hover::after {
        opacity: 1;
        visibility: visible;
    }

/* Enhanced Alert Styles */
.alert.gps-info {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.1), rgba(23, 162, 184, 0.05));
    border-color: #20c997;
    color: #0d5832;
}

.alert.zip-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(13, 202, 240, 0.05));
    border-color: #17a2b8;
    color: #055160;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .location-icon-pulse,
    .gps-accuracy-indicator,
    .gps-loading {
        animation: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .distance-info {
        border-width: 2px;
        background: white !important;
        color: black !important;
    }

    .gps-distance-badge,
    .zip-distance-badge {
        background: black !important;
        color: white !important;
        border: 2px solid black;
    }
}

/* Dark Mode Preparation */
@media (prefers-color-scheme: dark) {
    .distance-info {
        background: rgba(23, 162, 184, 0.2) !important;
        border-color: #20c997;
    }

    .current-location-display {
        background: rgba(25, 135, 84, 0.2) !important;
        color: #a3d9cc;
    }

    .location-status.gps-active {
        background: rgba(25, 135, 84, 0.2);
        color: #a3d9cc;
    }

    .location-status.zip-active {
        background: rgba(23, 162, 184, 0.2);
        color: #9de4f0;
    }
}

/* Appointment Availability Section */
.appointment-availability {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

    .appointment-availability:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .appointment-availability h6 {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0;
    }

.appointment-summary {
    margin-bottom: 0.5rem;
}

    .appointment-summary .text-success {
        color: #198754 !important;
    }

    .appointment-summary .text-warning {
        color: #f57c00 !important;
    }

/* Appointment Type Items */
.appointment-type-item {
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

    .appointment-type-item:hover {
        background: rgba(248, 249, 250, 0.8) !important;
        transform: translateX(2px);
    }

    .appointment-type-item:last-child {
        margin-bottom: 0 !important;
    }

    /* Appointment border colors */
    .appointment-type-item.border-success {
        border-left-color: #28a745 !important;
        border-left-width: 3px !important;
    }

    .appointment-type-item.border-secondary {
        border-left-color: #6c757d !important;
        border-left-width: 3px !important;
    }

/* Enhanced Button Styling for Appointments */
.btn-primary:has(.bi-calendar-plus) {
    background: linear-gradient(135deg, #198754, #20c997);
    border-color: #198754;
    font-weight: 600;
}

    .btn-primary:has(.bi-calendar-plus):hover {
        background: linear-gradient(135deg, #146c43, #17a2b8);
        border-color: #146c43;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
    }

.btn-outline-primary:has(.bi-calendar-check) {
    border-color: #ffc107;
    color: #f57c00;
}

    .btn-outline-primary:has(.bi-calendar-check):hover {
        background: #ffc107;
        border-color: #ffc107;
        color: #000;
    }

/* Appointment availability indicators */
.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.border-success {
    border-color: #28a745 !important;
}

.border-warning {
    border-color: #ffc107 !important;
}

/* Appointment badges */
.badge.bg-success {
    background-color: #28a745 !important;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
}

/* Appointment icons */
.bi-calendar-check::before {
    color: #28a745;
}

.bi-calendar-x::before {
    color: #f57c00;
}

.bi-calendar-plus::before {
    margin-right: 0.25rem;
}

/* Responsive adjustments for appointments */
@media (max-width: 768px) {
    .appointment-availability {
        font-size: 0.85rem;
    }

    .appointment-type-item {
        font-size: 0.8rem;
        padding: 0.4rem !important;
    }

        .appointment-type-item .badge {
            font-size: 0.65rem;
            padding: 0.25rem 0.4rem;
        }

    .btn:has(.bi-calendar-plus),
    .btn:has(.bi-calendar-check) {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Animation for appointment availability changes */
@keyframes appointmentUpdate {
    0% {
        opacity: 0.5;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.appointment-availability.updating {
    animation: appointmentUpdate 0.6s ease;
}

/* Loading state for appointment data */
.appointment-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: appointmentShimmer 1.5s infinite;
    border-radius: 0.25rem;
    height: 1rem;
    margin: 0.25rem 0;
}

@keyframes appointmentShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Enhanced card styling with appointments */
.wait-time-card:has(.appointment-availability) {
    border-left: 4px solid transparent;
}

.wait-time-card:has(.appointment-availability .text-success) {
    border-left-color: #28a745;
}

.wait-time-card:has(.appointment-availability .text-warning) {
    border-left-color: #ffc107;
}

/* Appointment tooltip styling */
.appointment-tooltip {
    position: relative;
}

    .appointment-tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        pointer-events: none;
    }

    .appointment-tooltip:hover::after {
        opacity: 1;
        visibility: visible;
    }

/* Special styling for estimated appointments */
.appointment-availability .fst-italic {
    font-size: 0.75rem;
    color: #6c757d !important;
}

/* Collapsible appointment details */
.appointment-details {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

    .appointment-details.show {
        max-height: 300px;
    }

/* Enhanced hover effects */
.appointment-type-item:hover .badge {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Focus states for accessibility */
.btn:focus:has(.bi-calendar-plus),
.btn:focus:has(.bi-calendar-check) {
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
    outline: none;
}

/* Print styles */
@media print {
    .appointment-availability {
        border: 1px solid #000 !important;
        background: white !important;
    }

        .appointment-availability .text-success,
        .appointment-availability .text-warning {
            color: #000 !important;
        }
}

/* Add these styles to your existing site.css file */

/* ===== OPTIMIZATION UI ENHANCEMENTS ===== */

/* Appointment Loading Progress Indicator */
.appointment-loading-indicator {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.1));
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

    .appointment-loading-indicator .progress {
        background-color: rgba(13, 110, 253, 0.1);
        border-radius: 2px;
        overflow: hidden;
    }

    .appointment-loading-indicator .progress-bar {
        transition: width 0.3s ease;
        background: linear-gradient(90deg, #0d6efd, #0a58ca);
    }

/* Office Results Summary */
.results-summary {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.05), rgba(25, 135, 84, 0.1));
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

/* More Offices Available Alert */
.more-offices-alert {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
    border: 1px solid rgba(13, 202, 240, 0.3);
}

    .more-offices-alert .btn-outline-primary {
        border-color: #0dcaf0;
        color: #0dcaf0;
        font-size: 0.875rem;
        padding: 0.25rem 0.75rem;
    }

        .more-offices-alert .btn-outline-primary:hover {
            background-color: #0dcaf0;
            border-color: #0dcaf0;
        }

/* ===== MOBILE UI CLEANUP - REMOVE STATUS BANNERS ===== */
/* Add this to the bottom of your site.css file */

/* Compact Location Header Indicator */
.location-header-indicator {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(32, 201, 151, 0.05));
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 600;
}

    .location-header-indicator.zip-location {
        background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(13, 202, 240, 0.05));
        border-color: rgba(23, 162, 184, 0.2);
        color: var(--info-color);
    }

    .location-header-indicator .location-icon {
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    .location-header-indicator .location-text {
        font-weight: 600;
    }

/* Hide the verbose status banners */
.distance-info.banner-style,
.current-location-display.banner-style,
.location-status.banner-style {
    display: none !important;
}

/* Alternative: Fade them out if you want to test first */
.distance-info.banner-style,
.current-location-display.banner-style {
    opacity: 0.3;
    pointer-events: none;
    height: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Enhanced Appointment Loading Indicator - Move Up */
.appointment-loading-indicator {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.15));
    border: 2px solid rgba(13, 110, 253, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

    .appointment-loading-indicator .spinner-border {
        width: 1.2rem;
        height: 1.2rem;
        color: #0d6efd;
    }

    .appointment-loading-indicator small {
        color: #0d6efd;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .appointment-loading-indicator .progress {
        background-color: rgba(13, 110, 253, 0.15);
        border-radius: 3px;
        overflow: hidden;
        height: 6px;
    }

    .appointment-loading-indicator .progress-bar {
        transition: width 0.5s ease;
        background: linear-gradient(90deg, #0d6efd, #6610f2, #0d6efd);
        background-size: 200% 100%;
        animation: progress-shimmer 2s infinite;
    }

@keyframes progress-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Clean Results Header */
.results-header {
    margin-bottom: 0.75rem;
}

    .results-header h5 {
        color: var(--primary-color);
        font-weight: 600;
        margin-bottom: 0.25rem;
        font-size: 1.125rem;
    }

    .results-header .results-meta {
        color: #6c757d;
        font-size: 0.875rem;
        font-weight: 500;
    }

/* Mobile-First Spacing Adjustments */
@media (max-width: 768px) {
    /* Tighter spacing on mobile */
    .location-header-indicator {
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    .appointment-loading-indicator {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

        .appointment-loading-indicator small {
            font-size: 0.8rem;
        }

    .results-header {
        margin-bottom: 0.5rem;
    }

        .results-header h5 {
            font-size: 1rem;
        }

        .results-header .results-meta {
            font-size: 0.8rem;
        }

    /* More space for office cards by reducing margins */
    .wait-time-card {
        margin-bottom: 0.75rem;
    }

    /* Reduce hero padding to save space */
    .hero-compact {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

        .hero-compact h1 {
            font-size: 1.375rem !important;
        }

        .hero-compact p {
            font-size: 0.875rem !important;
        }

        .hero-compact small {
            font-size: 0.8rem !important;
        }
}

/* Ultra Mobile (Small Phones) */
@media (max-width: 375px) {
    .location-header-indicator {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    .appointment-loading-indicator {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .hero-compact {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

        .hero-compact h1 {
            font-size: 1.25rem !important;
        }
}

/* Clean Location Toggle Buttons */
.search-options .btn-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

    .search-options .btn-group .btn {
        font-weight: 600;
        font-size: 0.875rem;
        padding: 0.6rem 1rem;
        border: none;
        transition: all 0.2s ease;
    }

/* Enhanced GPS Button */
.location-search-container .btn-primary {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    border: none;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(25, 135, 84, 0.3);
    transition: all 0.3s ease;
}

    .location-search-container .btn-primary:hover {
        background: linear-gradient(135deg, #146c43, #17a2b8);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(25, 135, 84, 0.4);
    }

    .location-search-container .btn-primary .spinner-border {
        color: white;
    }

/* Clean Visual Hierarchy */
.search-card {
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(25, 135, 84, 0.1);
    transition: all 0.3s ease;
}

    .search-card:hover {
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        border-color: rgba(25, 135, 84, 0.2);
    }

/* Remove Redundant Elements */
.remove-on-mobile {
    display: block;
}

@media (max-width: 768px) {
    .remove-on-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

/* Optimized Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Clean Error States */
.error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #842029;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.success-message {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
    border: 1px solid rgba(25, 135, 84, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #0f5132;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* Focus on Office Cards */
.office-list-container {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .office-list-container {
        margin-top: 0.25rem;
    }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
    .appointment-loading-indicator .progress-bar,
    .loading-shimmer,
    .progress-shimmer {
        animation: none !important;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .location-header-indicator {
        border-width: 2px;
        background: white !important;
        color: black !important;
    }

    .appointment-loading-indicator {
        border-width: 2px;
        background: white !important;
        color: black !important;
    }
}

/* Print Optimization */
@media print {
    .location-header-indicator,
    .appointment-loading-indicator,
    .hero-compact {
        display: none !important;
    }
}

/* Add these styles to your CSS file (likely wwwroot/css/site.css) */

/* No data state styling */
.wait-time.no-data {
    text-align: center;
    padding: 1rem 0.5rem;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

    .wait-time.no-data .wait-number {
        margin-bottom: 0.5rem;
    }

    .wait-time.no-data .wait-label {
        color: #6c757d;
        font-weight: 500;
        font-size: 0.9rem;
    }

/* No data encouragement styling */
.no-data-encouragement {
    border-left: 3px solid #0d6efd !important;
    background: linear-gradient(90deg, #e3f2fd 0%, #f8f9fa 100%) !important;
}

    .no-data-encouragement .text-primary {
        color: #0d6efd !important;
    }

/* Card styling for no-data offices */
.wait-time-card.border-info {
    border-color: #0dcaf0 !important;
    box-shadow: 0 2px 4px rgba(13, 202, 240, 0.1);
}

    .wait-time-card.border-info:hover {
        border-color: #0a58ca !important;
        box-shadow: 0 4px 8px rgba(13, 202, 240, 0.2);
        transform: translateY(-1px);
        transition: all 0.2s ease-in-out;
    }

    /* Enhance the report button for no-data cards */
    .wait-time-card.border-info .btn-success {
        background: linear-gradient(45deg, #20c997, #198754);
        border: none;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(32, 201, 151, 0.3);
    }

        .wait-time-card.border-info .btn-success:hover {
            background: linear-gradient(45deg, #198754, #157347);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(32, 201, 151, 0.4);
        }

/* Icon styling for no data state */
.wait-time.no-data .bi-clock-history {
    opacity: 0.6;
}

/* Subtle animation for no-data cards */
@keyframes gentle-pulse {
    0% {
        box-shadow: 0 2px 4px rgba(13, 202, 240, 0.1);
    }

    50% {
        box-shadow: 0 2px 8px rgba(13, 202, 240, 0.2);
    }

    100% {
        box-shadow: 0 2px 4px rgba(13, 202, 240, 0.1);
    }
}

.wait-time-card.border-info {
    animation: gentle-pulse 3s ease-in-out infinite;
}

    /* Stop animation on hover to avoid conflict */
    .wait-time-card.border-info:hover {
        animation: none;
    }

/* ===== STATES PAGE MOBILE-FIRST STYLES - SCOPED ===== */
/* Add this to your existing wwwroot/css/site.css file */

/* Enhanced State Cards */
.state-card {
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    border: 2px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

    .state-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
        transform: translateY(-2px);
    }

    .state-card.border-primary {
        border-color: var(--primary-color) !important;
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.05), rgba(25, 135, 84, 0.1));
    }

    .state-card .state-icon {
        padding: 1rem;
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
        border-radius: 50%;
        display: inline-block;
        margin-bottom: 1rem;
    }

/* Mobile-First Office Directory - SCOPED TO STATES PAGE */
.office-directory {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .office-directory .office-item {
        background: white;
        border: 2px solid var(--neutral-200);
        border-radius: var(--radius-lg);
        padding: 1rem;
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
        box-shadow: var(--shadow-sm);
    }

        .office-directory .office-item:hover {
            box-shadow: var(--shadow-md);
            border-color: var(--primary-light);
        }

        .office-directory .office-item.expanded-item {
            border-color: var(--primary-color);
            box-shadow: var(--shadow-lg);
            background: linear-gradient(135deg, rgba(25, 135, 84, 0.02), white);
        }

        .office-directory .office-item.has-recent-data {
            border-left: 4px solid var(--success-color);
        }

    /* Office Summary Layout - SCOPED */
    .office-directory .office-summary {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
    }

    .office-directory .office-main-info {
        flex: 1;
        min-width: 0; /* Prevents text overflow issues */
    }

    .office-directory .office-name {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }

    .office-directory .office-location {
        color: var(--neutral-800);
        font-size: 0.9rem;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .office-directory .office-wait-time {
        flex-shrink: 0;
        text-align: center;
    }

    /* Compact Wait Time Display - SCOPED */
    .office-directory .wait-time-compact {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.75rem;
        border-radius: var(--radius-md);
        min-width: 60px;
        box-shadow: var(--shadow-sm);
    }

        .office-directory .wait-time-compact.excellent {
            background: linear-gradient(135deg, var(--success-color), #0d5d2b);
            color: white;
        }

        .office-directory .wait-time-compact.good {
            background: linear-gradient(135deg, var(--warning-color), #b8860b);
            color: var(--neutral-900);
        }

        .office-directory .wait-time-compact.fair {
            background: linear-gradient(135deg, var(--danger-color), #a71e2e);
            color: white;
        }

        .office-directory .wait-time-compact.poor {
            background: linear-gradient(135deg, var(--secondary-color), #495057);
            color: white;
        }

        .office-directory .wait-time-compact.no-data {
            background: linear-gradient(135deg, var(--neutral-200), var(--neutral-100));
            color: var(--neutral-800);
            border: 2px dashed var(--neutral-400);
        }

        .office-directory .wait-time-compact .wait-number {
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1;
        }

        .office-directory .wait-time-compact .wait-label {
            font-size: 0.75rem;
            opacity: 0.9;
            margin-top: 0.25rem;
            font-weight: 500;
        }

    /* Expandable Details - SCOPED */
    .office-directory .office-details {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        padding: 0;
    }

        .office-directory .office-details.expanded {
            max-height: 1000px;
            padding-top: 0.5rem;
        }

    /* Detail Groups - SCOPED */
    .office-directory .detail-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .office-directory .detail-item {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

        .office-directory .detail-item i {
            margin-top: 0.1rem;
            font-size: 1rem;
            flex-shrink: 0;
        }

    /* Wait Time Status Alerts - SCOPED */
    .office-directory .wait-time-status {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Office Actions - SCOPED TO STATES PAGE ONLY */
    .office-directory .office-actions {
        border-top: 1px solid var(--neutral-200);
        padding-top: 1rem;
    }

        .office-directory .office-actions .btn-group {
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        .office-directory .office-actions .btn {
            font-size: 0.875rem;
            padding: 0.6rem 1rem;
            font-weight: 600;
            border: none;
            flex: 1;
        }

            .office-directory .office-actions .btn:first-child {
                border-radius: var(--radius-md) 0 0 var(--radius-md);
            }

            .office-directory .office-actions .btn:last-child {
                border-radius: 0 var(--radius-md) var(--radius-md) 0;
            }

    /* Expand/Collapse Indicator - SCOPED */
    .office-directory .expand-indicator {
        position: absolute;
        top: 1rem;
        right: 1rem;
        color: var(--neutral-500);
        font-size: 1.25rem;
        transition: all 0.3s ease;
    }

    .office-directory .office-item:hover .expand-indicator {
        color: var(--primary-color);
    }

    .office-directory .office-item.expanded-item .expand-indicator {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

/* Results Header */
.results-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Responsive Adjustments - SCOPED */
@media (max-width: 768px) {
    .office-directory .office-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .office-directory .office-wait-time {
        align-self: flex-end;
        margin-top: -2.5rem;
    }

    .office-directory .wait-time-compact {
        min-width: 55px;
        padding: 0.5rem;
    }

        .office-directory .wait-time-compact .wait-number {
            font-size: 1.25rem;
        }

        .office-directory .wait-time-compact .wait-label {
            font-size: 0.7rem;
        }

    .office-directory .office-name {
        font-size: 1rem;
        margin-right: 4rem; /* Make room for wait time */
    }

    .office-directory .office-location {
        font-size: 0.85rem;
        margin-right: 4rem;
    }

    .office-directory .detail-item {
        font-size: 0.85rem;
    }

    .office-directory .office-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .office-directory .expand-indicator {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1rem;
    }
}

/* Ultra Mobile (Small Phones) - SCOPED */
@media (max-width: 375px) {
    .office-directory .office-item {
        padding: 0.75rem;
    }

    .office-directory .office-name {
        font-size: 0.95rem;
        margin-right: 3.5rem;
    }

    .office-directory .office-location {
        font-size: 0.8rem;
    }

    .office-directory .wait-time-compact {
        min-width: 50px;
        padding: 0.4rem;
    }

        .office-directory .wait-time-compact .wait-number {
            font-size: 1.1rem;
        }

        .office-directory .wait-time-compact .wait-label {
            font-size: 0.65rem;
        }

    .office-directory .office-actions .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
}

/* Tablet and Desktop Enhancements - SCOPED */
@media (min-width: 768px) {
    .office-directory .office-summary {
        align-items: center;
    }

    .office-directory .office-wait-time {
        margin-top: 0;
    }

    .office-directory .office-name {
        margin-right: 0;
    }

    .office-directory .office-location {
        margin-right: 0;
    }

    .office-directory .office-details.expanded {
        max-height: 600px;
    }
}

/* Loading States */
.state-card .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.state-card .spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
}

/* Animation for expanding/collapsing - SCOPED */
@keyframes expandDetails {
    from {
        max-height: 0;
        opacity: 0;
    }

    to {
        max-height: 1000px;
        opacity: 1;
    }
}

.office-directory .office-details.expanded {
    animation: expandDetails 0.4s ease-out;
}

/* Touch Feedback for Mobile - SCOPED TO STATES PAGE */
@media (hover: none) and (pointer: coarse) {
    .office-directory .office-item:active {
        transform: scale(0.98);
        background: var(--neutral-50);
    }

    .state-card:active {
        transform: scale(0.98);
    }

    /* REMOVED: Global .btn:active rule that was breaking Index page buttons */
}

/* Accessibility Improvements - SCOPED */
.office-directory .office-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.state-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles - SCOPED TO STATES PAGE ONLY */
@media print {
    .office-directory .office-item {
        border: 1px solid #000;
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    .office-directory .office-details {
        max-height: none !important;
        overflow: visible !important;
    }

    .office-directory .expand-indicator {
        display: none;
    }

    .office-directory .office-actions {
        display: none;
    }

    /* REMOVED: Global .office-actions display: none that was breaking Index page */
}

/* Enhanced Button Hover Effects - SCOPED */
.office-directory .office-actions .btn-success:hover {
    background: linear-gradient(135deg, #157347, #0d5d2b);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}

.office-directory .office-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.office-directory .office-actions .btn-outline-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* All other existing styles remain the same but should be scoped or already safe... */
/* ===== ENHANCED MOBILE MENU STYLES ===== */
/* Add these to your existing site.css file */

/* Mobile menu divider */
.mobile-nav-divider {
    height: 1px;
    background: var(--neutral-200);
    margin: 1rem 1.5rem;
}

/* Pro tip section in mobile menu */
.mobile-nav-info {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.05), rgba(25, 135, 84, 0.1));
    border-left: 3px solid var(--primary-color);
    margin: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: default;
}

    .mobile-nav-info:hover {
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.05), rgba(25, 135, 84, 0.1));
        border-left-color: var(--primary-color);
        transform: none;
    }

    .mobile-nav-info span {
        line-height: 1.4;
    }

    .mobile-nav-info small {
        color: var(--neutral-600);
        font-size: 0.8rem;
        margin-top: 0.25rem;
        display: block;
    }

/* Active state for navigation items */
.mobile-nav-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary-color) !important;
    border-radius: var(--radius-md);
}

/* Desktop nav active states */
.navbar-nav .nav-link.active {
    background: var(--primary-color);
    color: white !important;
}

/* Enhanced mobile menu animations */
.mobile-nav-item {
    position: relative;
    overflow: hidden;
}

    .mobile-nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .mobile-nav-item:active::before {
        left: 100%;
    }

/* Better touch feedback */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav-item:active {
        background: var(--primary-light);
        transform: none;
    }

    .nav-link:active {
        background: var(--primary-light);
        color: var(--primary-color) !important;
    }
}

/* Accessibility improvements */
.mobile-nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile menu scrolling for many items */
.mobile-menu-nav {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

    .mobile-menu-nav::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-menu-nav::-webkit-scrollbar-track {
        background: var(--neutral-100);
    }

    .mobile-menu-nav::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

/* Enhanced header branding */
.app-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.community-icon {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .mobile-nav-info {
        margin: 0.5rem 0.5rem;
        padding: 0.75rem;
    }

        .mobile-nav-info small {
            font-size: 0.75rem;
        }

    .app-title {
        font-size: 1rem;
    }
}

/* Loading state for navigation */
.nav-link.loading,
.mobile-nav-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

    .nav-link.loading::after,
    .mobile-nav-item.loading::after {
        content: '';
        width: 1rem;
        height: 1rem;
        border: 2px solid currentColor;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 0.5rem;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .mobile-nav-info {
        border-left-width: 4px;
        background: white !important;
        color: black !important;
    }

    .nav-link.active,
    .mobile-nav-item.active {
        border: 2px solid var(--primary-color);
        background: white !important;
        color: var(--primary-color) !important;
    }
}

.wait-time-compact.closed {
    background-color: #6c757d;
    color: white;
}

    .wait-time-compact.closed .wait-number {
        font-size: 0.8rem;
        font-weight: bold;
    }

    .wait-time-compact.closed .wait-label {
        font-size: 0.7rem;
    }

/* ===== ANALYTICS UI STYLES - Add to your site.css ===== */

/* Community Insights Component Styles */
.community-insights-container {
    margin-bottom: 1rem;
}

.community-insights-card {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.02), rgba(25, 135, 84, 0.05));
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

    .community-insights-card:hover {
        box-shadow: 0 4px 12px rgba(25, 135, 84, 0.15) !important;
        border-left-width: 6px;
    }

/* Data Quality Badge */
.data-quality-badge .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.data-quality-badge .pulse-success {
    animation: qualityPulse 2s infinite;
}

@keyframes qualityPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(25, 135, 84, 0);
    }
}

/* Best Time Hero Section */
.best-time-hero {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

    .best-time-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ffc107, #fd7e14, #ffc107);
        background-size: 200% 100%;
        animation: bestTimeShimmer 3s infinite;
    }

@keyframes bestTimeShimmer {
    0%, 100% {
        background-position: 200% 0;
    }

    50% {
        background-position: -200% 0;
    }
}

.best-time-icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.best-time-text strong {
    color: #b8860b;
    font-weight: 600;
}

.best-time-value {
    color: var(--warning-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.best-time-confidence {
    text-align: right;
}

/* Community Message */
.community-message .alert {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
    border: 1px solid rgba(13, 202, 240, 0.2);
}

/* Analytics Details */
.analytics-details {
    border-top: 1px solid rgba(25, 135, 84, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.375rem;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

    .stat-card:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: translateY(-1px);
    }

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Wait Time Range Visualization */
.wait-time-range {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.range-header {
    margin-bottom: 0.5rem;
}

.range-bar-container {
    position: relative;
}

.range-bar {
    height: 8px;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.range-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    transition: width 0.8s ease;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
}

    .range-labels .range-avg {
        font-weight: 600;
        color: var(--primary-color);
    }

/* Service Breakdown */
.service-breakdown {
    background: rgba(248, 249, 250, 0.6);
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .service-item:last-child {
        border-bottom: none;
    }

.service-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.service-stats .badge {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Hour Insights Cards */
.hour-insights {
    margin-top: 0.5rem;
}

.hour-card {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

    .hour-card:hover {
        transform: translateY(-1px);
    }

    .hour-card.best-hour {
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
        border: 1px solid rgba(25, 135, 84, 0.2);
    }

    .hour-card.worst-hour {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
        border: 1px solid rgba(255, 193, 7, 0.2);
    }

.hour-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.hour-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hour-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* No Insights State */
.no-insights-card .card {
    transition: all 0.3s ease;
}

    .no-insights-card .card:hover {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    }

.no-data-icon {
    opacity: 0.7;
}

/* Mini Insights Footer */
.mini-insights {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Insights Loading Animation */
.insights-loading {
    text-align: center;
    padding: 1rem;
}

/* ===== WAIT TIME PREDICTION COMPONENT STYLES ===== */

.wait-time-prediction-container {
    margin-bottom: 1rem;
}

.wait-time-loading {
    text-align: center;
    padding: 1rem;
}

/* Enhanced Wait Time Display */
.wait-time-display {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .wait-time-display::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        transition: all 0.3s ease;
    }

    .wait-time-display.excellent::before {
        background: linear-gradient(90deg, #28a745, #20c997);
    }

    .wait-time-display.good::before {
        background: linear-gradient(90deg, #20c997, #ffc107);
    }

    .wait-time-display.fair::before {
        background: linear-gradient(90deg, #ffc107, #fd7e14);
    }

    .wait-time-display.poor::before {
        background: linear-gradient(90deg, #fd7e14, #dc3545);
    }

    .wait-time-display.closed::before {
        background: linear-gradient(90deg, #6c757d, #495057);
    }

    .wait-time-display:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

/* Current Wait Section */
.current-wait-section {
    text-align: center;
}

.wait-time-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.current-status {
    flex-grow: 1;
}

.wait-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

    .wait-number.current-wait {
        color: var(--primary-color);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .wait-number.closed-office {
        color: #6c757d;
        font-size: 1.5rem;
    }

    .wait-number.no-data {
        color: #adb5bd;
        font-size: 2rem;
    }

.wait-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.data-source {
    color: var(--info-color);
    font-weight: 600;
    font-size: 0.8em;
}

/* Prediction Badge */
.prediction-section {
    margin-top: 0.5rem;
}

.prediction-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .prediction-badge.accurate {
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
        color: #198754;
        border: 1px solid rgba(25, 135, 84, 0.2);
    }

    .prediction-badge.improving {
        background: linear-gradient(135deg, rgba(32, 201, 151, 0.1), rgba(32, 201, 151, 0.05));
        color: #20c997;
        border: 1px solid rgba(32, 201, 151, 0.2);
    }

    .prediction-badge.increasing {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
        color: #f57c00;
        border: 1px solid rgba(255, 193, 7, 0.2);
    }

    .prediction-badge.building {
        background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(108, 117, 125, 0.05));
        color: #6c757d;
        border: 1px solid rgba(108, 117, 125, 0.2);
    }

/* People Waiting Section */
.people-waiting-section {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem;
}

.people-waiting-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
    border: 1px solid rgba(13, 202, 240, 0.2);
    border-radius: 0.5rem;
}

.people-icon {
    font-size: 1.5rem;
    color: #0dcaf0;
    opacity: 0.8;
}

.people-info {
    flex-grow: 1;
}

.people-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0dcaf0;
    line-height: 1;
}

.people-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.1rem;
}

.people-context {
    text-align: right;
    font-size: 0.75rem;
}

/* Smart Recommendations */
.smart-recommendations {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

    .recommendation-item:hover {
        transform: translateX(2px);
    }

    .recommendation-item.timing {
        background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
        border-left: 3px solid #0dcaf0;
    }

    .recommendation-item.warning {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
        border-left: 3px solid #ffc107;
    }

    .recommendation-item.positive {
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
        border-left: 3px solid #198754;
    }

    .recommendation-item.info {
        background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(108, 117, 125, 0.05));
        border-left: 3px solid #6c757d;
    }

.rec-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.rec-content {
    flex-grow: 1;
}

.rec-text {
    font-weight: 500;
    color: #212529;
    line-height: 1.3;
}

.rec-subtext {
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 0.2rem;
    display: block;
}

/* Detailed Insights */
.insights-toggle {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem;
}

.detailed-insights {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-card {
    background: rgba(248, 249, 250, 0.6);
    border-radius: 0.375rem;
    padding: 0.75rem;
    border-left: 3px solid var(--primary-color);
}

.insight-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.insight-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.stat-label {
    color: #6c757d;
}

.stat-value {
    font-weight: 600;
    color: #212529;
}

.next-hour-forecast {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.forecast-time {
    font-weight: 500;
    color: #6c757d;
}

.forecast-wait {
    font-weight: 700;
    font-size: 0.9rem;
}

.forecast-trend {
    color: #6c757d;
    font-size: 0.75rem;
}

/* Last Updated with Freshness Indicator */
.last-updated {
    text-align: center;
}

.stale-data-warning {
    opacity: 0.8;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .wait-number {
        font-size: 2rem;
    }

    .people-waiting-card {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .people-count {
        font-size: 1.1rem;
    }

    .best-time-hero {
        padding: 0.75rem;
    }

    .best-time-value {
        font-size: 1rem;
    }

    .recommendation-item {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .stat-card {
        padding: 0.4rem;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .hour-card {
        padding: 0.4rem;
    }

    .analytics-details {
        padding-top: 0.5rem;
    }
}

/* Small Mobile Optimization */
@media (max-width: 375px) {
    .wait-number {
        font-size: 1.75rem;
    }

    .wait-time-display {
        padding: 0.75rem;
    }

    .best-time-hero {
        padding: 0.5rem;
    }

    .prediction-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .recommendation-item {
        font-size: 0.75rem;
    }
}

/* Animation for loading shimmer */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wait-time-display {
        background: #2d3748;
        color: white;
    }

    .community-insights-card {
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.15));
    }

    .best-time-hero {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.1));
    }

    .insight-card,
    .stat-card,
    .wait-time-range,
    .service-breakdown {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .wait-label,
    .stat-label,
    .people-label {
        color: #a0aec0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .wait-time-display {
        border-width: 3px;
        box-shadow: none;
    }

    .prediction-badge,
    .recommendation-item {
        border-width: 2px;
    }

    .best-time-hero {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .qualityPulse,
    .bestTimeShimmer,
    .loading-shimmer {
        animation: none !important;
    }

    .wait-time-display:hover,
    .recommendation-item:hover,
    .stat-card:hover {
        transform: none !important;
    }
}

/* States Page Recent Reports Styling - Mobile First */
.office-directory .recent-reports {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

    .office-directory .recent-reports h6 {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

.office-directory .reports-container {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0.375rem;
}

/* Compact Report Cards for Mobile-First */
.office-directory .report-item-compact {
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
}

    .office-directory .report-item-compact:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
        transform: translateY(-1px);
    }

    .office-directory .report-item-compact .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        font-weight: 700;
        min-width: 50px;
    }

    .office-directory .report-item-compact .fw-semibold {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .office-directory .report-item-compact .text-muted {
        line-height: 1.1;
    }

    .office-directory .report-item-compact .badge.bg-light {
        border: 1px solid #dee2e6;
        padding: 0.15rem 0.3rem;
    }

    .office-directory .report-item-compact .border-top {
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

.office-directory .recent-reports .badge.bg-info {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.office-directory .reports-container .text-center {
    padding: 1rem;
}

.office-directory .reports-container .bi-arrow-clockwise {
    animation: spin 1s linear infinite;
}

.office-directory .reports-container::-webkit-scrollbar {
    width: 4px;
}

.office-directory .reports-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.office-directory .reports-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

    .office-directory .reports-container::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Compact State Cards - Mobile First */
.state-card-compact {
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    border: 2px solid var(--neutral-200);
    min-height: 140px;
}

    .state-card-compact:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--primary-light);
        transform: translateY(-2px);
    }

    .state-card-compact.border-primary {
        border-color: var(--primary-color) !important;
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.05), rgba(25, 135, 84, 0.02));
    }

    /* Only apply flex to initial state selection cards, not when state is selected */
@media (max-width: 767px) {
    .state-card-compact .card-body {
        display: block; /* Reset to block on mobile */
    }
}

/* Only apply flex when showing state selection grid */
.row .col-sm-6 .state-card-compact .card-body,
.row .col-md-4 .state-card-compact .card-body,
.row .col-lg-3 .state-card-compact .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .state-card-compact .state-icon-small {
        padding: 0.5rem;
        background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .state-card-compact .card-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .state-card-compact .state-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .state-card-compact .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .state-card-compact .small {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .state-card-compact .btn-sm {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        font-weight: 600;
    }

/* Selected State Bar */
.selected-state-bar {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border: 2px solid var(--primary-light) !important;
    position: sticky;
    top: 70px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .selected-state-bar.loading-state {
        background: linear-gradient(135deg, #e3f2fd, #f8f9fa) !important;
        border-color: var(--info-color) !important;
        box-shadow: 0 4px 12px rgba(13, 202, 240, 0.2);
    }

    .selected-state-bar .fw-semibold {
        color: var(--primary-color);
        font-size: 1.1rem;
    }

    .selected-state-bar .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .selected-state-bar .loading-indicator {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.5rem;
        background: rgba(13, 202, 240, 0.1);
        border-radius: 0.375rem;
        border: 1px solid rgba(13, 202, 240, 0.2);
    }

        .selected-state-bar .loading-indicator .small {
            font-weight: 600;
            color: var(--info-color);
        }

.loading-progress {
    margin-top: 0.5rem;
}

    .loading-progress .progress {
        background-color: rgba(13, 202, 240, 0.1);
        border-radius: 2px;
        overflow: hidden;
    }

    .loading-progress .progress-bar {
        background: linear-gradient(90deg, #0dcaf0, #0a58ca, #0dcaf0);
        background-size: 200% 100%;
        animation: progressShimmer 2s infinite;
    }

.selected-state-bar .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
    min-width: 40px;
    transition: all 0.2s ease;
}

.state-pill-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.state-pill-btn .spinner-border-sm {
    width: 0.75rem;
    height: 0.75rem;
}

.selected-state-bar .dropdown-toggle:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.selected-state-bar .dropdown-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Custom Mobile Dropdown - FIXED */
.dropdown {
    position: relative;
}

/* Hide dropdown completely on desktop/tablet - this is the key fix */
@media (min-width: 768px) {
    .dropdown.d-md-none {
        display: none !important;
    }
}

/* Only show dropdown on true mobile */
@media (max-width: 767px) {
    .dropdown.d-md-none {
        display: block !important;
        width: 100%;
    }

    .custom-dropdown-menu {
        position: absolute;
        top: calc(100% + 0.25rem);
        left: 0;
        right: 0;
        background: white;
        border: 2px solid var(--primary-color);
        border-radius: 0.5rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        z-index: 1050;
        overflow: hidden;
        width: 100%;
    }

    .custom-dropdown-item {
        display: block;
        width: 100%;
        padding: 1rem;
        border: none;
        background: white;
        text-align: left;
        font-size: 1rem;
        font-weight: 500;
        color: #212529;
        transition: all 0.2s ease;
        cursor: pointer;
        border-bottom: 1px solid #f1f3f4;
    }

        .custom-dropdown-item:last-child {
            border-bottom: none;
        }

        .custom-dropdown-item:hover:not(.disabled) {
            background: var(--primary-light);
            color: var(--primary-color);
        }

        .custom-dropdown-item:active:not(.disabled) {
            background: var(--primary-color);
            color: white;
        }

        .custom-dropdown-item.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #f8f9fa;
            color: #6c757d;
        }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .office-directory .reports-container {
        max-height: 200px;
        font-size: 0.8rem;
    }

    .office-directory .report-item-compact {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

        .office-directory .report-item-compact .badge {
            font-size: 0.7rem;
            padding: 0.25rem 0.4rem;
            min-width: 45px;
        }

        .office-directory .report-item-compact .fw-semibold {
            font-size: 0.75rem;
        }

        .office-directory .report-item-compact .badge.bg-light {
            font-size: 0.6rem;
            padding: 0.1rem 0.25rem;
        }

    .state-card-compact {
        min-height: 120px;
    }

        .state-card-compact .state-icon-small {
            width: 40px;
            height: 40px;
        }

            .state-card-compact .state-icon-small i {
                font-size: 1.2rem !important;
            }

        .state-card-compact .card-title {
            font-size: 0.9rem;
        }

        .state-card-compact .btn-sm {
            font-size: 0.75rem;
            padding: 0.3rem 0.6rem;
        }

    .selected-state-bar {
        position: static;
        margin-bottom: 1rem;
        padding: 0.75rem !important;
    }

        .selected-state-bar .fw-semibold {
            font-size: 1rem;
        }

        .selected-state-bar .loading-indicator {
            gap: 0.25rem;
            padding: 0.2rem 0.4rem;
        }

            .selected-state-bar .loading-indicator .small {
                font-size: 0.7rem;
            }
}

@media (max-width: 375px) {
    .office-directory .reports-container {
        max-height: 180px;
    }

    .office-directory .report-item-compact {
        padding: 0.5rem;
    }

        .office-directory .report-item-compact .badge {
            font-size: 0.65rem;
            min-width: 40px;
        }

    .state-card-compact {
        min-height: 110px;
    }

        .state-card-compact .card-body {
            padding: 0.75rem !important;
        }

        .state-card-compact .card-title {
            font-size: 0.85rem;
        }

        .state-card-compact .btn-sm {
            font-size: 0.7rem;
            padding: 0.25rem 0.5rem;
        }

    .selected-state-bar {
        padding: 0.5rem !important;
    }

        .selected-state-bar .fw-semibold {
            font-size: 0.9rem;
        }

        .selected-state-bar .loading-indicator {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.1rem;
        }
}

@media (min-width: 768px) {
    .state-card-compact {
        min-height: 160px;
    }

    .selected-state-bar {
        top: 80px;
    }
}

@media (min-width: 992px) {
    .state-card-compact {
        min-height: 180px;
    }

        .state-card-compact .card-title {
            font-size: 1.1rem;
        }

        .state-card-compact .state-icon-small {
            width: 60px;
            height: 60px;
        }

            .state-card-compact .state-icon-small i {
                font-size: 1.8rem !important;
            }
}

/* Loading States */
.state-card-compact .spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
}

.selected-state-bar .spinner-border-sm {
    width: 0.75rem;
    height: 0.75rem;
}

/* Hover Effects */
.state-card-compact .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}

.selected-state-bar .btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.state-pill-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Accessibility */
.state-card-compact:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.selected-state-bar .btn:focus {
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.25);
    outline: none;
}

/* Animations */
@keyframes progressShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes stateSwitch {
    0% {
        opacity: 0.8;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.selected-state-bar:not(.loading-state) {
    animation: stateSwitch 0.3s ease-out;
}

.selected-state-bar.loading-state {
    animation: loadingPulse 2s infinite;
}

.spinner-border-sm {
    animation: spin 0.75s linear infinite;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transform: none !important;
    }
}