:root {
    /* Base Colors */
    --bg-base: #0a0a0e;
    --panel-bg: #121216;
    --border-dim: #262630;
    --text-main: #f0f0f5;
    --text-muted: #888899;
    
    /* Category Accents */
    --accent-cpu: #00e5ff;    /* Cyan */
    --accent-gpu: #ff007f;    /* Magenta */
    --accent-mem: #ffea00;    /* Yellow */
    --accent-thread: #39ff14; /* Lime */
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    line-height: 1.5;
}

#app-container {
    width: 100%;
    max-width: 900px;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.2em;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 800;
}

h1 span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9em;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Control Panel */
.control-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.run-btn {
    background: linear-gradient(135deg, #2a2a35 0%, #1a1a24 100%);
    border: 1px solid #444455;
    color: #fff;
    padding: 15px 50px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.run-btn:hover:not(:disabled) {
    border-color: #8888aa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.run-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 2px;
}

.btn-subtext {
    font-size: 0.75em;
    color: var(--text-muted);
    margin-top: 4px;
}

.status-bar {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-muted);
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #555;
}

.status-indicator.active {
    background-color: var(--accent-thread);
    box-shadow: 0 0 10px var(--accent-thread);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background-color: #0d0d11;
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Category Accent Lines */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.cpu-card::before { background-color: var(--accent-cpu); }
.gpu-card::before { background-color: var(--accent-gpu); }
.mem-card::before { background-color: var(--accent-mem); }
.thread-card::before { background-color: var(--accent-thread); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.1em;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.category-score {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
}

/* Colorize Category Scores */
.cpu-card .category-score { color: var(--accent-cpu); text-shadow: 0 0 10px rgba(0, 229, 255, 0.3); }
.gpu-card .category-score { color: var(--accent-gpu); text-shadow: 0 0 10px rgba(255, 0, 127, 0.3); }
.mem-card .category-score { color: var(--accent-mem); text-shadow: 0 0 10px rgba(255, 234, 0, 0.3); }
.thread-card .category-score { color: var(--accent-thread); text-shadow: 0 0 10px rgba(57, 255, 20, 0.3); }

/* Test Sub-lists */
.test-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9em;
    border-bottom: 1px dashed #1a1a22;
}

.test-list li:last-child {
    border-bottom: none;
}

.test-name {
    color: #aaaaaa;
}

.test-value {
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: bold;
    color: #ffffff;
}

/* Total Score Section */
.total-score-container {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
}

.total-score-container h3 {
    margin: 0 0 10px 0;
    color: var(--text-muted);
    font-size: 1em;
    letter-spacing: 2px;
}

.massive-score {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 4em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}