/* perf_lab.css */
:root {
    --bg-main: #0f172a;
    --bg-panel: #1e293b;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-yellow: #eab308;
    --text-main: #e2e8f0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#lab-container {
    flex-grow: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    width: 100%;
}

@media (max-width: 768px) {
    #lab-container {
        grid-template-columns: 1fr;
    }
}

/* Left: Controls */
#controls-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.control-group h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.val-display {
    font-family: 'Fira Code', monospace;
    color: white;
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #334155;
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}

/* Right: Dashboard */
#dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#scenario-header {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--accent-cyan);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

#scenario-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 5px;
}

#scenario-desc {
    color: #94a3b8;
}

/* Sim Visualization */
#computer-viz {
    background: var(--bg-panel);
    border-radius: 16px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

#viz-icon {
    font-size: 8rem;
    color: #334155;
    transition: all 0.5s;
}

#viz-icon.powered {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.3));
}

#viz-icon.overheat {
    color: var(--accent-red);
    animation: shake 0.5s infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

/* Feedback Box */
#feedback-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
}

#feedback-score {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #64748b;
}

#feedback-text {
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Selection Grid */
#scenario-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.scenario-btn {
    padding: 10px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.scenario-btn:hover {
    background: #475569;
    color: white;
}

.scenario-btn.active {
    background: var(--accent-cyan);
    color: #0f172a;
    font-weight: 700;
    border-color: var(--accent-cyan);
}