/* Custom Styles for FIFA 2026 Ops Center */

/* Custom CSS variables */
:root {
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* Scrollbar styles to match the dark layout */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(12, 15, 15, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glass panel background */
.glass-panel {
    background: rgba(22, 28, 45, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-panel:hover {
    border-color: rgba(97, 255, 151, 0.3); /* green outline glow */
}

/* Pitch indicator glowing effects */
.pitch-green-glow {
    box-shadow: 0 0 12px 0 rgba(0, 255, 133, 0.4);
}

/* Pulsing live status animations */
.pulse-indicator {
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(.5); opacity: 1; }
    80%, 100% { transform: scale(1.5); opacity: 0; }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Accent indicators */
.accent-notch {
    position: relative;
}

.accent-notch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 16px;
    background: #61ff97;
}

/* Stadium background mesh */
.stadium-mesh {
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1.5px, transparent 0);
    background-size: 24px 24px;
}

/* Chat bubble aesthetics */
.chat-message {
    animation: slide-in 0.25s ease-out forwards;
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .chat-message {
        animation: none;
    }
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

/* Custom styles for dynamically populated crowd density bars */
.crowd-row-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.crowd-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.crowd-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.crowd-progress-fill.low { background-color: #10b981; }
.crowd-progress-fill.medium { background-color: #f59e0b; }
.crowd-progress-fill.high { background-color: #ef4444; }
.crowd-progress-fill.critical {
    background-color: #b91c1c;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
    background-size: 8px 8px;
}

/* Accessibility overrides for high contrast stylesheet */
body.high-contrast {
    background-color: #000000 !important;
}

body.high-contrast .glass-panel {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.high-contrast select, body.high-contrast input {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

body.high-contrast button {
    border: 2px solid #ffffff !important;
}

body.high-contrast .btn-persona.active {
    background: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}

body.high-contrast .chat-message.user {
    background: #ffffff !important;
    color: #000000 !important;
}
