:root {
    --bg-cluster: #04060d;
    --panel-border: rgba(255, 255, 255, 0.06);
    --panel-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-amber: #eab308;
    --accent-rose: #ef4444;
    
    --text-glow-cyan: 0 0 10px rgba(6, 182, 212, 0.6);
    --text-glow-emerald: 0 0 10px rgba(16, 185, 129, 0.6);
    --text-glow-rose: 0 0 10px rgba(239, 68, 68, 0.6);
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-lcd: 'Share Tech Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.cluster-body {
    background-color: var(--bg-cluster);
    color: #ffffff;
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Backglow to simulate cluster screen lighting */
.glow-bg {
    position: absolute;
    width: 900px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.04) 50%, rgba(0,0,0,0) 80%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.cluster-container {
    width: 100%;
    max-width: 1100px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
}

/* Top Header with Uptime */
.cluster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 16px;
    margin-bottom: 4px;
}

.cluster-header .logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cluster-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cluster-header h1 span {
    color: var(--accent-cyan);
}

.cluster-header .logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.uptime-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
}

.uptime-box .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 1px;
}

.uptime-box .value {
    font-family: var(--font-lcd);
    font-size: 1.25rem;
    color: var(--accent-emerald);
    text-shadow: var(--text-glow-emerald);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Warning Lights Panel */
.warning-lights {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--panel-border);
    border-radius: 30px;
    padding: 10px 40px;
    align-self: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.warning-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.15;
    transition: opacity 0.3s ease, color 0.3s ease;
    color: #94a3b8;
}

.warning-icon svg {
    width: 20px;
    height: 20px;
}

.warning-icon span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Warning lights trigger styles */
.flash-amber {
    color: var(--accent-amber);
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px var(--accent-amber));
    animation: warning-blink 1s infinite alternate;
}

.flash-red {
    color: var(--accent-rose);
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px var(--accent-rose));
    animation: warning-blink 0.6s infinite alternate;
}

@keyframes warning-blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Main Instrument Cluster Panel */
.instrument-cluster {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    border-radius: 24px;
    padding: 40px;
    align-items: center;
    backdrop-filter: blur(15px);
}

@media (max-width: 900px) {
    .instrument-cluster {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* LEFT SIDE: Vertical gauges */
.cluster-side-left {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    height: 240px;
}

.vertical-gauge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gauge-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.bar-gauge-container {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 160px;
}

.limit-label {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-lcd);
}

.limit-label.hot { color: var(--accent-rose); }
.limit-label.cold { color: var(--accent-cyan); }

.vertical-bar-track {
    width: 12px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.vertical-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 6px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.temp-fill {
    background: linear-gradient(0deg, var(--accent-cyan) 0%, var(--accent-rose) 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.fuel-fill {
    background: linear-gradient(0deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.gauge-value-display {
    font-family: var(--font-lcd);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: var(--text-glow-cyan);
}

/* CENTER: Speedometer / Tachometer Dial */
.cluster-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.speedometer-gauge {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dial-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-220deg);
}

.dial-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 400 534;
}

.dial-fill {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 400 534;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.speed-readout {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.speed-readout .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 700;
}

.speed-value {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-lcd);
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.speed-readout .unit {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 1.5px;
}

/* RIGHT SIDE: Small Network gauges */
.cluster-side-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.boost-gauge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.radial-small-gauge {
    position: relative;
    width: 90px;
    height: 90px;
}

.radial-small-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.small-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 5;
}

.small-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dashoffset: 251.32;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.down-color { stroke: var(--accent-cyan); filter: drop-shadow(0 0 4px var(--accent-cyan)); }
.up-color { stroke: var(--accent-indigo); filter: drop-shadow(0 0 4px var(--accent-indigo)); }

.small-gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.small-gauge-text .value {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-lcd);
}

.small-gauge-text .unit {
    font-size: 0.55rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: -2px;
}

/* 4. Footer Contact */
.cluster-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--panel-border);
    border-radius: 30px;
    padding: 8px 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.mail-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.5));
}

.contact-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-value a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-value a:hover {
    color: var(--accent-cyan);
    text-shadow: var(--text-glow-cyan);
}
