/* --- LAYOUT --- */
.bench-section {
    min-height: 100vh;
    padding-bottom: 4rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
}

/* Background Animation */
#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

/* --- PANELS --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.panel {
    background: #0e0e10; /* Deep black-grey */
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* --- MAIN CONTROLLER --- */
.main-panel {
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #27272a;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.panel-header h1 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0;
    color: #fff;
}

.status-badge {
    font-size: 0.75rem;
    background: #27272a;
    color: #a1a1aa;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.status-badge.running { background: #0ea5e9; color: #fff; box-shadow: 0 0 10px rgba(14,165,233,0.4); }

/* Hardware Info */
.device-info { margin-bottom: 30px; }
.info-row, .info-group {
    padding: 10px 0;
    border-bottom: 1px solid #1f1f22;
}
.info-group { display: flex; flex-direction: column; gap: 4px; }

.label { color: #52525b; font-weight: 700; font-size: 0.65rem; letter-spacing: 1px; display: block; }
.val { color: #e4e4e7; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; }
.val.highlight { color: #0ea5e9; font-weight: 700; }
.info-row { display: flex; justify-content: space-between; align-items: center; }

/* Score Display */
.score-display {
    text-align: center;
    background: #000;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.score-label { display: block; font-size: 0.7rem; color: #71717a; letter-spacing: 2px; margin-bottom: 8px; font-weight: 700; }
.score-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.15);
}

/* Run Button */
.btn-run {
    background: #fff;
    color: #000;
    border: none;
    padding: 16px;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-run:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.1); }
.btn-run:disabled { background: #27272a; color: #71717a; cursor: not-allowed; transform: none; box-shadow: none; }

/* Progress Bar */
.progress-container {
    height: 4px;
    background: #27272a;
    margin-top: 24px;
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar { height: 100%; width: 0%; background: #0ea5e9; transition: width 0.3s; }

/* --- TEST GRID --- */
.test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.test-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid #1f1f22; padding-bottom: 10px; }
.card-header h3 { font-size: 0.8rem; margin: 0; color: #a1a1aa; font-weight: 700; letter-spacing: 0.5px; }

.card-status { font-size: 0.7rem; font-weight: 700; color: #444; }
.card-status.active { color: #0ea5e9; animation: pulseText 1s infinite; }
.card-status.done { color: #10b981; }

.metric-box { margin-bottom: 10px; }
.metric-val { font-family: 'JetBrains Mono', monospace; font-size: 2.2rem; color: #fff; font-weight: 700; letter-spacing: -1px; }
.metric-unit { font-size: 0.8rem; color: #52525b; margin-left: 5px; font-weight: 600; }

.mini-bar { height: 6px; background: #1f1f22; border-radius: 3px; overflow: hidden; }
.mini-bar .fill { height: 100%; width: 0%; background: #444; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

/* Card colors */
#cardCpu .fill { background: #f43f5e; } /* Red */
#cardGpu .fill { background: #a855f7; } /* Purple */
#cardMem .fill { background: #10b981; } /* Green */
#cardNet .fill { background: #f59e0b; } /* Orange */

/* --- TERMINAL --- */
.terminal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #71717a;
    min-height: 180px;
    max-height: 200px;
    overflow-y: auto;
    background: #0a0a0c;
}
.terminal-header { border-bottom: 1px solid #1f1f22; padding-bottom: 10px; margin-bottom: 10px; display: flex; gap: 10px; font-weight: 700; }
.blink { animation: blink 1s infinite; }
.log-line { margin-bottom: 6px; border-left: 2px solid transparent; padding-left: 8px; }
.log-line.success { border-left-color: #10b981; color: #d1fae5; }
.log-line.warn { border-left-color: #f59e0b; color: #fef3c7; }
.log-line.info { border-left-color: #0ea5e9; color: #e0f2fe; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulseText { 50% { opacity: 0.5; } }

/* Mobile */
@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .test-grid { grid-template-columns: 1fr; }
}
