/* Montreal Metro Underground - Cyberpunk Metro Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap');

/* Global Dark Theme */
body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}



/* Metro line colors inspired by actual Montreal Metro */
:root {
    --orange-line: #ff8c00;
    --blue-line: #009ee0;
    --green-line: #00b04f;
    --yellow-line: #ffd700;
    --neon-cyan: #00ffff;
    --neon-pink: #ff1493;
    --metro-dark: #0d1421;
    --metro-card: rgba(13, 20, 33, 0.85);
    --glow-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ===== CYBERPUNK METRO HEADER ===== */
.metro-header {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
    padding: 15px 25px;
    /* border-bottom: 2px solid var(--orange-line); */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1000;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header-title {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow:
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 30px var(--neon-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.status-bar {
    display: flex;
    gap: 30px;
    align-items: center;
}

.status-operational {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--green-line);
    text-shadow:
        0 0 10px var(--green-line),
        0 0 15px var(--green-line);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border: 1px solid var(--green-line);
    border-radius: 4px;
    background: rgba(0, 176, 79, 0.1);
}

.status-active {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--orange-line);
    text-shadow:
        0 0 10px var(--orange-line),
        0 0 15px var(--orange-line);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border: 1px solid var(--orange-line);
    border-radius: 4px;
    background: rgba(255, 140, 0, 0.1);
}

.live-clock {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow:
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
    padding: 8px 15px;
    border: 1px solid var(--neon-cyan);
    border-radius: 6px;
    min-width: 90px;
    text-align: center;
    animation: pulse-clock 2s ease-in-out infinite;
}

@keyframes pulse-clock {

    0%,
    100% {
        text-shadow:
            0 0 10px var(--neon-cyan),
            0 0 20px var(--neon-cyan);
    }

    50% {
        text-shadow:
            0 0 15px var(--neon-cyan),
            0 0 30px var(--neon-cyan),
            0 0 40px var(--neon-cyan);
    }
}

.control-center-title {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 600;
    color: var(--orange-line);
    text-shadow:
        0 0 10px var(--orange-line),
        0 0 15px var(--orange-line);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.header-divider {
    border: none;
    height: 3px;
    background: linear-gradient(90deg,
            var(--orange-line) 0%,
            rgba(255, 140, 0, 0.8) 50%,
            var(--orange-line) 100%);
    margin: 0;
    box-shadow:
        0 0 10px var(--orange-line),
        0 2px 10px rgba(255, 140, 0, 0.3);
    border-radius: 2px;
}

.main-content {
    height: calc(100vh - 140px);
    /* Adjust for header height */
    padding: 15px;
    background: transparent;
    position: relative;
}

/* ===== END HEADER STYLES ===== */

/* Year Dropdown Styling */
#year-dropdown .Select-control,
#line-dropdown .Select-control {
    background-color: rgba(13, 20, 33, 0.9) !important;
    border: 1px solid #009ee0 !important;
    border-radius: 6px !important;
    color: white !important;
    font-family: 'Rajdhani', sans-serif !important;
    box-shadow: 0 0 10px rgba(0, 158, 224, 0.3) !important;
}

#year-dropdown .Select-control:hover,
#line-dropdown .Select-control:hover {
    border-color: #00ffff !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5) !important;
}

#year-dropdown .Select-menu-outer,
#line-dropdown .Select-menu-outer {
    background-color: rgba(13, 20, 33, 0.95) !important;
    border: 1px solid #009ee0 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8) !important;
}

#year-dropdown .Select-option,
#line-dropdown .Select-option {
    background-color: transparent !important;
    color: white !important;
    font-family: 'Rajdhani', sans-serif !important;
    padding: 8px 12px !important;
}

#year-dropdown .Select-option:hover,
#line-dropdown .Select-option:hover {
    background-color: rgba(0, 158, 224, 0.2) !important;
    color: #00ffff !important;
}

#year-dropdown .Select-option.is-selected,
#line-dropdown .Select-option.is-selected {
    background-color: rgba(0, 255, 255, 0.1) !important;
    color: #00ffff !important;
}

#year-dropdown .Select-value-label,
#line-dropdown .Select-value-label {
    color: #00ffff !important;
}

/* Futuristic Cards with Metro Styling */
.card {
    background: linear-gradient(145deg, var(--metro-card), rgba(20, 30, 48, 0.9));
    border: 2px solid transparent;
    border-radius: 15px;
    margin: 12px;
    padding: 10px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-line), var(--blue-line), var(--green-line), var(--yellow-line));
    opacity: 0.8;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.8),
        var(--glow-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--neon-cyan);
}

/* Left Column Styling */
.left-column {
    display: flex;
    flex-direction: column;
}

.filters {
    width: 18vw;
    height: calc(100vh - 180px);
    /* Full height minus header */
    background: linear-gradient(135deg, var(--metro-dark), rgba(0, 158, 224, 0.1));
    border: 2px solid var(--blue-line);
    color: #ffffff;
    position: relative;
}

.filters::after {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    opacity: 0.7;
}

/* Metro Data Cards */
.data-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* When data-card is used with small-card, don't override the small-card dimensions */
.small-card.data-card {
    width: auto;
    /* Let small-card handle the width */
    height: auto;
    /* Let small-card handle the height */
}

.data-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, transparent 70%, rgba(255, 255, 255, 0.03) 100%);
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Metro Station-style Headers */
.data-card-header {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.data-card-header.primary {
    color: var(--orange-line);
    text-shadow: 0 0 10px var(--orange-line);
}

.data-card-header.success {
    color: var(--green-line);
    text-shadow: 0 0 10px var(--green-line);
}

.data-card-header.danger {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.data-card-value {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

/* Right Column Layout */
.small-card {
    height: calc(27vh - 30px);
    flex: 1;
    background: linear-gradient(145deg, var(--metro-card), rgba(0, 158, 224, 0.1));
    border-left: 4px solid var(--blue-line);
}

.medium-card {
    height: calc(63vh - 30px);
    flex: 1;
    background: linear-gradient(145deg, var(--metro-card), rgba(0, 176, 79, 0.1));
    border-left: 4px solid var(--green-line);
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Metro Line Dividers */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg,
            var(--orange-line) 0%,
            var(--blue-line) 25%,
            var(--green-line) 50%,
            var(--yellow-line) 75%,
            var(--neon-cyan) 100%);
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Plotly Graph Styling */
.js-plotly-plot {
    border-radius: 10px;
    overflow: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--metro-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--blue-line), var(--green-line));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--orange-line), var(--yellow-line));
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
    font-family: 'Orbitron', monospace;
}

p,
div {
    font-family: 'Rajdhani', sans-serif;
}

/* Glowing Text Effect */
.card h4 {
    position: relative;
}

.card h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.6;
}

/* Montreal Metro Branding */
.filters .card::before {
    background: linear-gradient(90deg, var(--blue-line), var(--orange-line)) !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .filters {
        width: 20vw;
    }
}

@media (max-width: 768px) {
    .filters {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }

    .row {
        flex-direction: column;
    }

    .header-title {
        font-size: 20px;
    }

    .status-bar {
        gap: 15px;
    }

    .status-operational,
    .status-active {
        font-size: 14px;
        padding: 4px 8px;
    }
}

/* Simple Incident Checklist Styling */
#incident-checklist {
    margin-top: 15px;
}

#incident-checklist input[type="checkbox"] {
    accent-color: #00b04f;
    margin-right: 8px;
    transform: scale(1.1);
}

#incident-checklist label {
    color: #ffffff !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: block !important;
    margin-bottom: 8px !important;
    transition: color 0.3s ease !important;
}

#incident-checklist label:hover {
    color: #00ffff !important;
}

/* Inline styles moved to CSS classes */
.filter-title {
    color: #ff8c00;
    text-align: center;
    margin-bottom: 20px;
}

.filter-label {
    color: #ffffff;
    margin-bottom: 10px;
    display: block;
}

.filter-label-with-margin {
    color: #ffffff;
    margin-bottom: 10px;
    display: block;
    margin-top: 20px;
}

.dropdown-style {
    background-color: #1a1f2e !important;
    color: #ffffff !important;
}

.dropdown-style .Select-control {
    background-color: #1a1f2e !important;
    color: #ffffff !important;
}

.checklist-style {
    color: #ffffff !important;
    font-family: 'Rajdhani', sans-serif !important;
}

.checklist-input-style {
    margin-right: 8px;
}

.checklist-label-style {
    display: block;
    margin-bottom: 8px;
}

.flex-container {
    display: flex;
}

.flex-one {
    flex: 1;
}