/* GLOBAL RESET AND DARK MODE BASE */
body {
    background-color: #121212;
    color: #E0E0E0;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

#container {
    width: 90%;
    max-width: 1200px;
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

h1 {
    color: #00FFFF; /* Cyan for sharp contrast */
    margin: 0;
    font-size: 2em;
}

/* TECH MODE SWITCH */
#tech-mode-switch {
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

#mode-status {
    color: #F00; /* Red for OFF */
    font-weight: bold;
}
input[type="checkbox"]:checked + #mode-status {
    color: #0F0; /* Green for ON */
}

/* GAUGE VISUALS */
#gauge-area {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 20px auto;
}

#gauge-canvas {
    position: absolute;
    top: 0;
    left: 0;
}

#speed-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    font-weight: bold;
    color: #E0E0E0;
}

#units {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: #999;
}

/* RESULT PANELS (DUAL VIEW) */
.results-panel {
    display: grid;
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

#user-view {
    grid-template-columns: repeat(3, 1fr);
}

#tech-view {
    grid-template-columns: 1fr 1fr;
    text-align: left;
}

.result-box {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid #00FFFF; /* Cyan highlight */
}

h2 {
    color: #00FFFF;
    margin-top: 0;
    font-size: 1.2em;
}

.large-num {
    font-size: 3em;
    font-weight: bold;
    color: #FFF;
    line-height: 1;
}

.unit-label {
    color: #999;
    font-size: 0.9em;
}

/* HEALTH SUMMARY */
.summary-area {
    grid-column: 1 / -1;
    padding: 15px;
    font-size: 1.4em;
    font-weight: bold;
    color: #2ecc71; /* Default Green for good */
    background-color: #333;
    border-radius: 5px;
    margin-top: 10px;
}

/* TECHNICIAN SPECIFIC STYLES */
.hidden {
    display: none !important;
}

.tech-section {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
}

.tech-section h2 {
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #00FFFF;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #333;
}

th {
    text-align: left;
    color: #999;
    font-weight: normal;
}

/* STATUS COLORS (Visual Cue for Technicians) */
.status-good { color: #2ecc71; font-weight: bold; } /* Green */
.status-warn { color: #f39c12; font-weight: bold; } /* Yellow/Orange */
.status-bad { color: #e74c3c; font-weight: bold; }  /* Red */

/* START BUTTON */
#start-button {
    background-color: #00FFFF;
    color: #121212;
    border: none;
    padding: 15px 40px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.2s;
}

#start-button:hover {
    background-color: #00CCFF;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
    #user-view {
        grid-template-columns: 1fr;
    }
    #tech-view {
        grid-template-columns: 1fr;
    }
    #gauge-area {
        width: 100%;
        height: 250px;
    }
    #speed-value {
        font-size: 3em;
    }
}