﻿@* 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;
}

/* 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;
    }
}