/* --- SESUAIKAN WARNA & FONT DI SINI --- */
:root {
    --primary-color: #007BFF; /* Biru khas teknologi */
    --background-color: #f4f7f9;
    --text-color: #333;
    --value-color: #000;
    --border-color: #ddd;
}
/* --- --- --- */

#speed-meter-app {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    max-width: 600px;
    margin: 2em auto;
    font-family: sans-serif;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.meter-display {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}

.meter-item {
    flex-basis: 30%;
}

.meter-item .label {
    display: block;
    font-size: 0.9em;
    color: var(--text-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meter-item .value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--value-color);
    line-height: 1;
}

.meter-item .unit {
    display: block;
    font-size: 0.8em;
    color: var(--text-color);
}

#start-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

#start-btn:hover {
    background-color: #0056b3;
}

#start-btn:active {
    transform: scale(0.98);
}

#start-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.status {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    height: 20px;
}

/* --- STYLE UNTUK GAUGE SPEEDOMETER --- */
.gauge-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gauge-speedometer {
    width: 100%;
    padding-bottom: 50%; /* Membuat rasio 2:1 (setengah lingkaran) */
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 200px 200px 0 0;
    box-sizing: border-box;
}

#gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 90%;
    background-color: #e74c3c; /* Warna jarum */
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg); /* Posisi awal di 0 */
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Transisi halus */
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.gauge-speed-text {
    position: absolute;
    bottom: 10px;
    text-align: center;
}

.gauge-speed-text #current-speed-val {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--value-color);
}