:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --accent-ping: #94a3b8;
    --accent-download: #38bdf8;
    --accent-upload: #4ade80;
    --accent-start: #fbbf24;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 500px;
    width: 95%;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
    background: linear-gradient(to right, var(--accent-download), var(--accent-upload));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#status {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.gauge-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem;
}

#gauge-value {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

#main-val {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.unit-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-value small {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-muted);
}

.progress-mini {
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    transition: width 0.2s ease;
}

#download-progress { background: var(--accent-download); }
#upload-progress { background: var(--accent-upload); }

.config-mini {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-wrap label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.config-mini input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.35rem;
    border-radius: 0.4rem;
    width: 60px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
}

#start-btn {
    background: var(--accent-start);
    color: var(--bg-color);
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

#start-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.4); }
#start-btn:disabled { opacity: 0.3; cursor: not-allowed; }

footer {
    margin-top: 1rem;
    font-size: 0.6rem;
    color: var(--text-muted);
}
