/* Dark theme — matches the Helix AI placeholder page */
:root {
    --bg: #0a0a0f;
    --surface: #14141f;
    --surface2: #1a1a2e;
    --border: #2a2a3e;
    --text: #e0e0e0;
    --text-dim: #666;
    --accent: #6c5ce7;
    --accent2: #a29bfe;
    --green: #00b894;
    --red: #e17055;
    --yellow: #fdcb6e;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Layout */
header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    background: var(--surface);
}

header h1 {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.08em;
}

header h1 .accent { color: var(--accent); }
header h1 .accent2 { color: var(--accent2); }

nav { margin-top: 0.5rem; }
nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}
nav a:hover { color: var(--accent2); }
nav a.active { color: var(--accent2); border-bottom: 2px solid var(--accent2); padding-bottom: 2px; }

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }

.card h3 { color: var(--accent2); margin-bottom: 0.5rem; }
.card .meta { color: var(--text-dim); font-size: 0.85rem; }
.card .verdict { font-family: var(--mono); font-size: 0.9rem; }

/* Results grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
th {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border);
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
tr:hover td { background: var(--surface2); }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--mono);
}
.badge-green { background: rgba(0, 184, 148, 0.15); color: var(--green); }
.badge-red { background: rgba(225, 112, 85, 0.15); color: var(--red); }
.badge-yellow { background: rgba(253, 203, 110, 0.15); color: var(--yellow); }

/* Stats */
.stat-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 120px;
    flex: 1;
}
.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--mono);
}
.stat-card .value.green { color: var(--green); }
.stat-card .value.yellow { color: var(--yellow); }
.stat-card .value.red { color: var(--red); }
.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group .hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.btn:hover { background: var(--accent2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Result detail */
.pass-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}
.pass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}
.pass-card h4 { color: var(--accent2); margin-bottom: 0.75rem; }

.test-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-family: var(--mono);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.test-row:last-child { border-bottom: none; }

/* Progress */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--surface2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}
.progress-bar .fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s;
}
.progress-bar .fill.green { background: var(--green); }
.progress-bar .fill.yellow { background: var(--yellow); }
.progress-bar .fill.red { background: var(--red); }

/* Flash messages */
.flash {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.flash-info { background: rgba(108, 92, 231, 0.15); color: var(--accent2); border: 1px solid var(--accent); }
.flash-error { background: rgba(225, 112, 85, 0.15); color: var(--red); border: 1px solid var(--red); }
.flash-success { background: rgba(0, 184, 148, 0.15); color: var(--green); border: 1px solid var(--green); }

/* Spinner */
.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}
