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

:root {
    --bg: #0f172a;
    --panel: #020617;
    --card: #020617;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #60a5fa;
}

body.light {
    --bg: #f1f5f9;
    --panel: #ffffff;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

/* ===== Layout ===== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 2rem;
}

/* ===== Header ===== */
.topbar {
    background: var(--panel);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.controls {
    display: flex;
    gap: 0.5rem;
}

/* ===== Zoekbalk ===== */
#search {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: var(--bg);
    color: var(--text);
}

#search::placeholder {
    color: var(--muted);
}

/* ===== Theme knop ===== */
#themeToggle {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    background: var(--accent);
    color: white;
}

/* ===== Stats ===== */
.stats {
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--panel);
    border-radius: 12px;
    padding: 1rem;
    display: inline-block;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.stat-card span {
    font-size: 1.4rem;
    font-weight: bold;
}

/* ===== Grid ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* ===== Cards ===== */
.card {
    background: var(--card);
    border-radius: 14px;
    padding: 1.3rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--muted);
}