ZEROTHTEST / css /style.css
BLURPLETESTS's picture
Upload 5 files
0b84dcb verified
Raw
History Blame Contribute Delete
8.27 kB
/* ===== Reset & Base ===== */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg: #0f1117;
--surface: #1a1d27;
--surface-hover: #242836;
--border: #2a2e3d;
--text: #e4e6ed;
--text-muted: #8b8fa3;
--accent: #f97316;
--accent-glow: rgba(249, 115, 22, 0.15);
/* Score colors */
--score-3: #34d399;
--score-3-bg: rgba(52, 211, 153, 0.12);
--score-2: #60a5fa;
--score-2-bg: rgba(96, 165, 250, 0.12);
--score-1: #93c5fd;
--score-1-bg: rgba(147, 197, 253, 0.12);
--score-0: #fb923c;
--score-0-bg: rgba(251, 146, 60, 0.12);
--score-fail: #f87171;
--score-fail-bg: rgba(248, 113, 113, 0.12);
--radius: 10px;
--radius-sm: 6px;
--transition: 0.2s ease;
}
body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
}
/* ===== Layout ===== */
.container {
max-width: 960px;
margin: 0 auto;
padding: 2rem 1.5rem;
}
/* ===== Header ===== */
header {
text-align: center;
margin-bottom: 2rem;
}
header h1 {
font-size: 1.8rem;
font-weight: 700;
letter-spacing: -0.02em;
margin-bottom: 0.3rem;
}
header h1 span {
color: var(--accent);
}
header p {
color: var(--text-muted);
font-size: 0.95rem;
}
#subtitleText strong {
color: var(--accent);
}
#subtitleText p {
margin-bottom: 0.5em;
}
#subtitleText p:last-child {
margin-bottom: 0;
}
/* ===== Stats Bar ===== */
.stats-bar {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.stat-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 0.8rem 1.2rem;
flex: 1;
min-width: 120px;
text-align: center;
transition: border-color var(--transition);
}
.stat-card[data-filter] {
cursor: pointer;
}
.stat-card[data-filter]:hover {
border-color: var(--accent);
}
.stat-card:not([data-filter]):hover {
border-color: var(--accent);
}
.stat-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--accent);
}
.stat-label {
font-size: 0.75rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 0.15rem;
}
/* ===== Controls ===== */
.controls {
display: flex;
gap: 0.75rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
align-items: center;
}
.search-box {
flex: 1;
min-width: 200px;
position: relative;
}
.search-box input {
width: 100%;
padding: 0.65rem 1rem 0.65rem 2.5rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-size: 0.9rem;
outline: none;
transition: border-color var(--transition);
}
.search-box input::placeholder {
color: var(--text-muted);
}
.search-box input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-box svg {
position: absolute;
left: 0.8rem;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
color: var(--text-muted);
pointer-events: none;
}
/* Filter Buttons */
.filter-buttons {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
}
.filter-btn {
padding: 0.5rem 0.9rem;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-muted);
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: all var(--transition);
user-select: none;
}
.filter-btn:hover {
border-color: var(--accent);
color: var(--text);
}
.filter-btn.active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.filter-btn.active[data-filter="3"] {
background: var(--score-3);
border-color: var(--score-3);
color: #000;
}
.filter-btn.active[data-filter="2"] {
background: var(--score-2);
border-color: var(--score-2);
color: #000;
}
.filter-btn.active[data-filter="1"] {
background: var(--score-1);
border-color: var(--score-1);
color: #000;
}
.filter-btn.active[data-filter="0"] {
background: var(--score-0);
border-color: var(--score-0);
color: #000;
}
.filter-btn.active[data-filter="fail"] {
background: var(--score-fail);
border-color: var(--score-fail);
color: #000;
}
.text-empty {
color: var(--text-muted);
opacity: 0.4;
}
/* ===== Results ===== */
.results-info {
font-size: 0.8rem;
color: var(--text-muted);
margin-bottom: 0.75rem;
}
.results-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.result-row {
display: grid;
grid-template-columns: 80px 1fr;
gap: 1rem;
align-items: center;
padding: 0.75rem 1rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
transition: all var(--transition);
}
.result-row:hover {
background: var(--surface-hover);
border-color: var(--accent);
transform: translateY(-1px);
}
.result-model {
font-weight: 600;
font-size: 0.9rem;
}
.result-model .result-notes {
font-weight: 400;
color: var(--text-muted);
font-size: 0.82rem;
margin-left: 0.3em;
white-space: normal;
overflow: visible;
text-overflow: unset;
}
.result-details {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 0;
}
.result-test {
font-size: 0.85rem;
font-weight: 500;
color: var(--text);
}
.result-notes {
font-size: 0.78rem;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Score Badge */
.score-badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.3rem 0.75rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
white-space: nowrap;
}
.score-badge.score-3 {
background: var(--score-3-bg);
color: var(--score-3);
border: 1px solid rgba(52, 211, 153, 0.3);
}
.score-badge.score-2 {
background: var(--score-2-bg);
color: var(--score-2);
border: 1px solid rgba(96, 165, 250, 0.3);
}
.score-badge.score-1 {
background: var(--score-1-bg);
color: var(--score-1);
border: 1px solid rgba(147, 197, 253, 0.3);
}
.score-badge.score-0 {
background: var(--score-0-bg);
color: var(--score-0);
border: 1px solid rgba(251, 146, 60, 0.3);
}
.score-badge.score-fail {
background: var(--score-fail-bg);
color: var(--score-fail);
border: 1px solid rgba(248, 113, 113, 0.3);
}
/* Empty state */
.empty-state {
text-align: center;
padding: 3rem 1rem;
color: var(--text-muted);
}
.empty-state svg {
width: 48px;
height: 48px;
margin-bottom: 1rem;
opacity: 0.4;
}
.empty-state p {
font-size: 0.95rem;
}
/* ===== Loading ===== */
.loading {
text-align: center;
padding: 3rem 1rem;
color: var(--text-muted);
}
.loading .spinner {
display: inline-block;
width: 32px;
height: 32px;
border: 3px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin-bottom: 1rem;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ===== Error ===== */
.error-state {
text-align: center;
padding: 3rem 1rem;
color: var(--score-fail);
}
.error-state p {
margin-bottom: 0.5rem;
}
.error-state code {
font-size: 0.8rem;
color: var(--text-muted);
background: var(--surface);
padding: 0.3rem 0.6rem;
border-radius: var(--radius-sm);
}
/* ===== Responsive ===== */
@media (max-width: 640px) {
.container {
padding: 1rem;
}
header h1 {
font-size: 1.4rem;
}
.stats-bar {
gap: 0.5rem;
}
.stat-card {
min-width: 80px;
padding: 0.6rem 0.8rem;
}
.stat-value {
font-size: 1.2rem;
}
.result-row {
grid-template-columns: 1fr;
gap: 0.4rem;
}
.result-model {
font-size: 0.85rem;
}
.controls {
flex-direction: column;
}
.search-box {
width: 100%;
}
}