:root {
    --bg-dark: #141526;
    --text-main: #ffffff;
    --text-muted: #8e94a4;
    --cyan: #00e5ff;
    --purple: #b300ff;
    --gauge-track: #2a2e40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
.navbar {
    padding: 20px 40px;
    display: flex;
    align-items: center;
}

.brand {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    width: 24px;
    height: 24px;
}

.brand-sub {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-muted);
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Top Metrics */
.metrics-bar {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
    transition: opacity 0.5s ease;
    align-items: flex-end;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon {
    font-size: 14px;
}

.metric-item:nth-child(1) .icon { color: var(--cyan); }
.metric-item:nth-child(2) .icon { color: var(--purple); }

.unit {
    text-transform: none;
    font-weight: 400;
}

.metric-value {
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.small-val {
    font-size: 24px;
    font-weight: 400;
    padding-bottom: 5px;
}

/* Central Area */
.gauge-area {
    position: relative;
    width: 400px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* GO Button */
.go-button {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--cyan);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.1);
    z-index: 10;
}

.go-button:hover {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.4), inset 0 0 40px rgba(0, 229, 255, 0.2);
    transform: scale(1.02);
}

.go-text {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Gauge */
.gauge-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

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

.gauge-track {
    stroke: var(--gauge-track);
}

.gauge-fill {
    stroke: var(--cyan); /* changes via JS */
    stroke-dasharray: 400; /* Approximate length of semi-circle arc */
    stroke-dashoffset: 400;
    transition: stroke 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}

.gauge-needle {
    position: absolute;
    width: 4px;
    height: 130px;
    background: linear-gradient(to top, transparent 40%, rgba(255,255,255,0.8) 100%);
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-135deg);
    border-radius: 4px;
    z-index: 2;
}

.gauge-center-info {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.gauge-speed {
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
}

.gauge-unit-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Tick Labels */
.tick-label {
    position: absolute;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
/* Positions approximate for 200x200 viewBox mapped to 400x400 container */
.t-0 { bottom: 42%; left: 15%; }
.t-10 { top: 35%; left: 18%; }
.t-50 { top: 15%; left: 32%; }
.t-100 { top: 8%; left: 50%; transform: translateX(-50%); }
.t-250 { top: 15%; right: 32%; }
.t-500 { top: 35%; right: 18%; }
.t-1000 { bottom: 42%; right: 15%; }

/* Bottom Info */
.footer-info {
    margin-top: auto;
    padding-bottom: 40px;
    display: flex;
    gap: 80px;
}

.client-info, .server-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    font-size: 24px;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border: 1px solid var(--gauge-track);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-title {
    font-size: 16px;
    font-weight: 500;
}

.info-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .navbar {
        justify-content: center;
        padding: 15px 20px;
    }
    .metrics-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
        margin-bottom: 20px;
    }
    .metric-value {
        font-size: 28px;
    }
    .small-val {
        font-size: 20px;
    }
    .gauge-area {
        transform: scale(0.85);
        margin-top: -20px;
        margin-bottom: -40px;
    }
    .footer-info {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin-top: 10px;
        padding-bottom: 40px;
    }
    .info-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .info-title {
        font-size: 13px;
    }
    .info-sub {
        font-size: 11px;
    }
}
