/**
 * VCFire - Main Stylesheet
 * Extracted from vc_fire_home.html template
 * Contains all styles for the VCFire application
 */


* {
    box-sizing: border-box;
}

html {
    /* Prevent zoom on iOS when focusing inputs */
    -webkit-text-size-adjust: 100%;
    /* Smooth scrolling for anchor links */
    scroll-behavior: smooth;
}

body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* Prevent pull-to-refresh bounce on mobile */
    overscroll-behavior: none;
    /* Prevent text selection on interactive elements */
    -webkit-tap-highlight-color: transparent;
}

/* Modern Stats Panel */
#stats-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(17, 25, 40, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    min-width: 240px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#stats-panel h3 {
    margin: 0 0 1.25rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.stat-card:last-child {
    margin-bottom: 0;
}

/* Keyboard focus indicator for accessibility */
.stat-card:focus {
    outline: 3px solid #4da6ff;
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* Only show hover effects on desktop (non-touch devices) */
@media (hover: hover) and (pointer: fine) {
    .stat-card {
        cursor: pointer;
    }

    .stat-card:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .stat-card:active {
        transform: translateY(0);
    }

    /* Incident list items */
    .incident-list-item:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        border-left-color: #69db7c !important;
    }
}

.stat-card.active {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-card.active.incidents {
    border-color: #ff6b6b;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.stat-card.active.stations {
    border-color: #4dabf7;
    box-shadow: 0 4px 20px rgba(77, 171, 247, 0.3);
}

.stat-card.active.available {
    border-color: #51cf66;
    box-shadow: 0 4px 20px rgba(81, 207, 102, 0.3);
}

.stat-card.active.busy {
    border-color: #ffd43b;
    box-shadow: 0 4px 20px rgba(255, 212, 59, 0.3);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.stat-value.updated {
    animation: valueUpdate 0.6s ease;
}

@keyframes valueUpdate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Color schemes for different stats */
.stat-card.incidents .stat-icon { color: #ff6b6b; }
.stat-card.stations .stat-icon { color: #4dabf7; }
.stat-card.available .stat-icon { color: #51cf66; }
.stat-card.busy .stat-icon { color: #ffd43b; }

/* Legend */
#legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    background: rgba(17, 25, 40, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 200px;
}

#legend h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Connection Status */
#connection-status {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(17, 25, 40, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-connected {
    background: #51cf66;
    box-shadow: 0 0 8px rgba(81, 207, 102, 0.6);
}

.status-error {
    background: #ff6b6b;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

/* Deployment Version */
#deployment-version {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    background: rgba(17, 25, 40, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', monospace;
    cursor: help;
}

#deployment-version:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

#deployment-version .commit-hash {
    color: #69db7c;
    font-weight: bold;
}

/* Popup Styling */
.leaflet-popup-content-wrapper {
    background: rgba(17, 25, 40, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaflet-popup-content {
    margin: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.leaflet-popup-tip {
    background: rgba(17, 25, 40, 0.95);
}

.popup-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.popup-detail {
    margin: 0.5rem 0;
}

.popup-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.station-popup .popup-title {
    border-bottom-color: #4dabf7;
}

.incident-popup .popup-title {
    border-bottom-color: #ff6b6b;
}

/* Marker highlight effects using CSS classes */
.marker-highlight-purple .awesome-marker {
    filter: drop-shadow(0 0 10px #667eea) drop-shadow(0 0 20px #667eea);
    transform: scale(1.3);
    transition: all 0.3s ease;
}

.marker-highlight-yellow .awesome-marker {
    filter: drop-shadow(0 0 10px #ffd43b) drop-shadow(0 0 20px #ffd43b);
    transform: scale(1.3);
    transition: all 0.3s ease;
}

.marker-highlight-purple,
.marker-highlight-yellow {
    z-index: 10000 !important;
}

/* Weather Widget */
#weather-widget {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: rgba(17, 25, 40, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Only show hover effects on desktop (non-touch devices) */
@media (hover: hover) and (pointer: fine) {
    #weather-widget {
        cursor: pointer;
    }

    #weather-widget:hover {
        background: rgba(17, 25, 40, 0.95);
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.2);
    }

    #weather-widget:active {
        transform: translateY(0);
    }
}

#weather-widget h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-icon {
    font-size: 3rem;
    text-align: center;
    margin: 0.5rem 0;
}

.weather-temp {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin: 0.5rem 0;
}

.weather-desc {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.weather-minmax {
    display: flex;
    justify-content: space-around;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-minmax-item {
    text-align: center;
}

.weather-minmax-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-minmax-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-top: 0.25rem;
}

.weather-current-label {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
}

/* ============================================ */
/* ADDRESS SEARCH BOX - CUSTOM                  */
/* ============================================ */

#address-search-container {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
}

#address-search-box {
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    background: rgba(17, 25, 40, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#address-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0.75rem 3rem 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 12px;
    font-family: inherit;
}

#address-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#address-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

#address-search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

#address-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 25, 40, 0.98);
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    margin-top: -1px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.search-result-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.search-result-address {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Search result marker */
.search-result-marker {
    background: #4da6ff;
    border: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 0 10px rgba(77, 166, 255, 0.6);
}

/* ============================================ */
/* ACCESSIBILITY - FOCUS STYLES                 */
/* ============================================ */

button:focus,
a:focus {
    outline: 3px solid #4da6ff;
    outline-offset: 2px;
}

/* Better focus visibility for buttons with gradients */
#heatmap-btn:focus,
#hotspot-btn:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(77, 166, 255, 0.4);
}

/* Improve touch target sizes for mobile (minimum 44x44px) */
@media (pointer: coarse) {
    .stat-card,
    button,
    a,
    .legend-item {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================ */
/* MOBILE RESPONSIVE DESIGN                     */
/* ============================================ */

/* Tablet and below (iPad and smaller) */
@media (max-width: 768px) {
    /* Address search - move below weather on mobile */
    #address-search-container {
        top: 5.5rem;
        width: calc(100% - 1rem);
        left: 0.5rem;
        transform: none;
        max-width: none;
    }

    #address-search-input {
        font-size: 0.8rem;
        padding: 0.6rem 2.5rem 0.6rem 0.75rem;
    }

    /* COLLAPSIBLE STATS PANEL - Start minimized on mobile */
    #stats-panel {
        top: 0.5rem;
        right: 0.5rem;
        left: auto;
        padding: 0.75rem;
        min-width: unset;
        width: auto;
        max-width: 90vw;
        max-height: 70vh;
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    /* When collapsed, show only the header as a compact button */
    #stats-panel.mobile-collapsed {
        padding: 0.5rem 0.75rem;
        max-height: 40px;
        overflow: hidden;
    }

    #stats-panel.mobile-collapsed .stat-card,
    #stats-panel.mobile-collapsed #heatmap-btn,
    #stats-panel.mobile-collapsed #hotspot-btn,
    #stats-panel.mobile-collapsed #heatmap-date {
        display: none;
    }

    #stats-panel h3 {
        font-size: 0.7rem;
        margin-bottom: 0;
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #stats-panel h3::after {
        content: '▼';
        font-size: 0.6rem;
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }

    #stats-panel.mobile-collapsed h3::after {
        transform: rotate(-90deg);
    }

    #stats-panel:not(.mobile-collapsed) h3 {
        margin-bottom: 0.75rem;
    }

    .stat-card {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    /* Weather widget - MINIMIZE to icon on mobile */
    #weather-widget {
        top: auto;
        bottom: 3.5rem;
        left: 0.5rem;
        right: auto;
        padding: 0.5rem;
        min-width: auto;
        width: 52px;
        height: 52px;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    /* Hide details when minimized */
    #weather-widget.mobile-minimized h4,
    #weather-widget.mobile-minimized .weather-current-label,
    #weather-widget.mobile-minimized .weather-desc,
    #weather-widget.mobile-minimized .weather-minmax {
        display: none;
    }

    #weather-widget.mobile-minimized .weather-temp {
        font-size: 1rem;
        margin: 0;
        line-height: 1;
    }

    #weather-widget.mobile-minimized .weather-icon {
        font-size: 1.2rem;
        margin: 0;
    }

    /* When expanded */
    #weather-widget:not(.mobile-minimized) {
        width: auto;
        height: auto;
        min-width: 150px;
    }

    #weather-widget h4 {
        font-size: 0.6rem;
    }

    .weather-icon {
        font-size: 1.8rem;
        margin: 0.25rem 0;
    }

    .weather-temp {
        font-size: 1.5rem;
    }

    .weather-desc {
        font-size: 0.7rem;
    }

    .weather-minmax-value {
        font-size: 0.9rem;
    }

    /* Legend - HIDE by default on mobile, show via toggle */
    #legend {
        display: none;
        bottom: 4rem;
        left: 0.5rem;
        right: auto;
        max-width: 180px;
        padding: 0.75rem;
    }

    #legend.mobile-visible {
        display: block;
    }

    #legend h4 {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .legend-item {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }

    /* Add legend toggle button */
    #legend-toggle {
        position: absolute;
        bottom: 3.5rem;
        left: 4rem;
        z-index: 1000;
        background: rgba(17, 25, 40, 0.85);
        backdrop-filter: blur(16px) saturate(180%);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #9b59b6;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    #legend-toggle:hover {
        background: rgba(155, 89, 182, 0.15);
        transform: scale(1.05);
    }

    /* Connection status - keep small */
    #connection-status {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.35rem 0.6rem;
        font-size: 0.6rem;
    }

    /* Deployment version - smaller on mobile */
    #deployment-version {
        bottom: 0.5rem;
        left: 0.5rem;
        padding: 0.35rem 0.6rem;
        font-size: 0.55rem;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    /* Radio link - stack with weather */
    #radio-link {
        bottom: 3.5rem;
        left: 7.5rem;
        right: auto;
        width: 44px;
        height: 44px;
    }

    #radio-link i {
        font-size: 1.1rem;
    }

    /* Heatmap button - make smaller */
    #heatmap-btn {
        padding: 0.5rem;
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }

    #heatmap-date {
        font-size: 0.6rem;
        padding: 0.35rem;
    }

    #heatmap-date-text {
        font-size: 0.65rem;
        min-width: 120px;
    }
}

/* Mobile phones (smaller screens) */
@media (max-width: 480px) {
    /* Make minimized widgets even smaller */
    #weather-widget {
        width: 48px;
        height: 48px;
        bottom: 3rem;
    }

    #weather-widget.mobile-minimized .weather-temp {
        font-size: 0.9rem;
    }

    #weather-widget.mobile-minimized .weather-icon {
        font-size: 1.1rem;
    }

    /* Adjust button positions */
    #legend-toggle {
        width: 40px;
        height: 40px;
        bottom: 3rem;
        left: 3.5rem;
        font-size: 1rem;
    }

    #radio-link {
        width: 40px;
        height: 40px;
        bottom: 3rem;
        left: 6.5rem;
    }

    #radio-link i {
        font-size: 1rem;
    }

    /* Stats panel more compact when expanded */
    #stats-panel {
        max-width: 95vw;
    }

    .stat-card {
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    /* Connection status smaller */
    #connection-status {
        padding: 0.3rem 0.5rem;
        font-size: 0.55rem;
    }

    /* Hotspot navigator - move to bottom on mobile */
    #hotspot-navigator {
        top: auto !important;
        bottom: 8rem !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
        transform: none !important;
        min-width: auto !important;
        max-width: none !important;
        width: calc(100% - 1rem) !important;
    }

    /* Legend - make it scrollable and compact on mobile */
    #legend {
        max-height: 40vh;
        overflow-y: auto;
        font-size: 0.75rem;
    }

    #legend h4 {
        font-size: 0.8rem;
    }

    #legend .legend-item {
        padding: 0.25rem 0;
    }

    #legend .legend-icon {
        font-size: 1rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    /* Ultra compact mode */
    #weather-widget,
    #legend-toggle,
    #radio-link {
        width: 36px;
        height: 36px;
        bottom: 2.5rem;
    }

    #weather-widget {
        left: 0.25rem;
    }

    #legend-toggle {
        left: 3rem;
    }

    #radio-link {
        left: 5.5rem;
    }

    #stats-panel {
        top: 0.25rem;
        right: 0.25rem;
    }

    #connection-status {
        bottom: 0.25rem;
        right: 0.25rem;
        font-size: 0.5rem;
        padding: 0.25rem 0.4rem;
    }
}
    


#radio-link:hover {
    background: rgba(81, 207, 102, 0.15);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(81, 207, 102, 0.4);
    border-color: rgba(81, 207, 102, 0.3);
}

#radio-link:hover i {
    color: #69db7c;
    animation: radioPulse 1s ease-in-out infinite;
}

@keyframes radioPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================ */
/* AUTH MODAL & KEY ICON                        */
/* ============================================ */

#auth-icon {
    position: fixed;
    bottom: 1rem;
    right: 1rem;  /* Right side, below radio antenna */
    z-index: 2000;
    width: 44px;
    height: 44px;
    background: rgba(17, 25, 40, 0.85);
    backdrop-filter: blur(16px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#auth-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#auth-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

#auth-modal-content {
    background: rgba(17, 25, 40, 0.98);
    backdrop-filter: blur(16px);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

#auth-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#auth-modal-close:hover {
    color: white;
}

#auth-modal h3 {
    margin-top: 0;
}

#auth-modal input {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

#auth-modal input::placeholder {
    color: rgba(255,255,255,0.5);
}

#auth-modal button {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0 0.5rem 0;
    background: linear-gradient(135deg, #4da6ff 0%, #0066cc 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#auth-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77,166,255,0.4);
}

#auth-modal button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#auth-error {
    color: #ff6b6b;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}
