:root {
    /* Light Theme */
    --color-base: #f8fafc;
    /* slate-50 */
    --color-panel: #ffffff;
    --color-border: #e2e8f0;
    /* slate-200 */
    --color-text: #0f172a;
    /* slate-900 */
    --color-muted: #64748b;
    /* slate-500 */

    --color-primary: #6366f1;
    /* indigo-500 */
    --color-success: #10b981;
    /* emerald-500 */
    --color-warning: #f59e0b;
    /* amber-500 */
    --color-danger: #ef4444;
    /* red-500 */
}

.dark {
    /* Dark Theme */
    --color-base: #0f172a;
    /* slate-900 */
    --color-panel: #1e293b;
    /* slate-800 */
    --color-border: #334155;
    /* slate-700 */
    --color-text: #f8fafc;
    /* slate-50 */
    --color-muted: #94a3b8;
    /* slate-400 */

    --color-primary: #818cf8;
    /* indigo-400 */
    --color-success: #34d399;
    /* emerald-400 */
    --color-warning: #fbbf24;
    /* amber-400 */
    --color-danger: #f87171;
    /* red-400 */
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #475569;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Glassmorphism utilities */
.glass-nav {
    background: rgba(var(--color-panel), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-blur {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Test Item Styling (generated by script) */
.test-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.875rem;
    color: var(--color-text);
}

.test-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* History Item */
.history-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-item:hover {
    transform: translateX(4px);
}