:root {
    --bg-dark: #0a0b0d;
    --cluster-bg: #121316;
    --ring-outer: #282a32;
    --ring-inner: #1a1c22;
    --tick-color: #8f929b;
    --blue-glow: #1a75ff;
    --red-needle: #ff2a2a;
    --text-main: #ffffff;
    --text-muted: #8c8c96;
    --text-accent: #1a75ff;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cluster-container {
    width: 1000px;
    height: 450px;
    background: linear-gradient(180deg, #16181d 0%, #0d0e12 100%);
    border-radius: 20px;
    border: 1px solid #2a2d35;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 40px rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle background texture for the cluster */
.cluster-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 4px 4px;
    pointer-events: none;
}

/* DIALS */
.dial-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.dial-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
}

.dial {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #1a1c22 0%, #0a0b0d 100%);
    box-shadow: 0 0 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.6);
}

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

.outer-ring {
    stroke: var(--ring-outer);
    stroke-width: 4;
    fill: none;
}

.ticks {
    stroke: var(--tick-color);
    stroke-width: 4;
    stroke-dasharray: 2 12; /* Creates dashed ticks */
    fill: none;
}

.progress-track {
    stroke: var(--ring-inner);
    stroke-width: 12;
    fill: none;
    stroke-linecap: round;
}

.progress-value {
    stroke: var(--blue-glow);
    stroke-width: 10;
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 8px rgba(26, 117, 255, 0.5));
}

.redline-track {
    stroke: var(--red-needle);
    stroke-width: 10;
    fill: none;
    stroke-linecap: round;
}

/* Needle */
.needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 2px;
    transform-origin: left center;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.needle-tip {
    position: absolute;
    right: 0;
    top: -3px;
    width: 25px;
    height: 8px;
    background: var(--red-needle);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--red-needle);
}

/* Center Value */
.dial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.dial-center .value {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-main);
    line-height: 1;
}

.dial-center .unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 5px;
}

/* CENTER DISPLAY */
.center-display {
    width: 320px;
    height: 280px;
    background: #0f1013;
    border: 1px solid #1a1c22;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 2;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.center-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    justify-content: center;
}

.indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.indicator.green { background: #00e676; box-shadow: 0 0 8px #00e676; }

.center-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.c-val {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.c-val.text-danger { color: var(--red-needle); }
.c-val.text-accent { color: var(--blue-glow); }

.c-divider {
    height: 1px;
    background: #1a1c22;
    margin: 5px 0;
}

/* Ticker Logs */
.live-ticker {
    margin-top: 15px;
    height: 30px;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #1a1c22;
    padding-top: 10px;
}

.ticker-list {
    list-style: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.ticker-list li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 0;
}
