/* ==================================================
   RESET & BASIS
================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

a {
    color: inherit;
}

button {
    margin-top: 8px;
    padding: 14px 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

button:hover,
.card:hover,
.hero-button:hover,
.delete-btn:hover {
    transform: translateY(-1px);
}


/* ==================================================
   LOGIN PAGINA
================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.22), transparent 35%),
        #020617;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.logo {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    color: white;
    font-weight: 800;
    margin-bottom: 24px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.auth-card p {
    margin: 0 0 28px;
    color: #94a3b8;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
    margin-bottom: 18px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}


/* ==================================================
   ALGEMENE LAYOUT
================================================== */

.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.sidebar {
    padding: 28px;
    background: #020617;
    border-right: 1px solid #1e293b;
}

.sidebar .logo {
    margin-bottom: 32px;
}

.main {
    padding: 36px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30%),
        #0f172a;
}

.topbar {
    margin-bottom: 28px;
}

.topbar h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.topbar p {
    margin: 0;
    color: #94a3b8;
}


/* ==================================================
   NAVIGATIE
================================================== */

nav {
    display: grid;
    gap: 8px;
}

nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover,
nav a.active {
    background: #1e293b;
    color: #ffffff;
}


/* ==================================================
   DASHBOARD CARDS
================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    display: block;
    padding: 26px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.card:hover {
    border-color: rgba(34, 197, 94, 0.45);
}

.card h2 {
    margin: 0 0 10px;
}

.card p {
    margin: 0;
    color: #94a3b8;
}


/* ==================================================
   PANELEN & MELDINGEN
================================================== */

.panel {
    margin-bottom: 24px;
    padding: 26px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.panel h2 {
    margin: 0 0 18px;
}

.success {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.14);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.muted {
    color: #94a3b8;
    font-size: 14px;
}


/* ==================================================
   FORMULIEREN
================================================== */

form {
    display: grid;
    gap: 14px;
}

label {
    font-size: 14px;
    color: #cbd5e1;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #334155;
    background: #020617;
    color: #f8fafc;
    font-size: 16px;
    outline: none;
}

input:focus,
select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.users-form {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inline-form,
.score-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-form input[type="number"],
.score-inputs input {
    width: 72px;
    padding: 10px;
}

.inline-form button {
    margin-top: 0;
    padding: 10px 14px;
}

.save-button {
    margin-top: 22px;
}


/* ==================================================
   TABELLEN
================================================== */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #1e293b;
    text-align: left;
}

th {
    color: #94a3b8;
    font-size: 14px;
}


/* ==================================================
   PUNTEN & BADGES
================================================== */

.points {
    display: inline-flex;
    min-width: 46px;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    color: white;
    font-weight: 800;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
    font-weight: 700;
    font-size: 13px;
}

.highlight-row {
    background: rgba(34, 197, 94, 0.08);
}


/* ==================================================
   VLAGGEN
================================================== */

.team-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flag-svg {
    width: 30px !important;
    height: 22px !important;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 3px 8px rgba(0,0,0,.35);
}

.flag-placeholder {
    width: 30px;
    height: 22px;
    display: inline-block;
    border-radius: 5px;
    background: #334155;
}


/* ==================================================
   HOMEPAGE BASIS
================================================== */

.home-page {
    min-height: 100vh;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 32%),
        #020617;
}

.home-v2 {
    overflow: hidden;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148,163,184,.15);
}

.home-nav {
    display: flex;
    gap: 10px;
}

.home-nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-weight: 700;
}

.login-btn {
    padding: 12px 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #22c55e, #3b82f6) !important;
    color: white !important;
    font-weight: 800;
    text-decoration: none;
}


/* ==================================================
   HOMEPAGE HERO
================================================== */

.hero {
    max-width: 760px;
    margin-bottom: 42px;
}

.hero-v2 {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    font-weight: 800;
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(44px, 8vw, 86px);
    line-height: 0.95;
}

.hero p {
    max-width: 560px;
    margin: 0 0 26px;
    color: #94a3b8;
    font-size: 20px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-button,
.secondary-button {
    display: inline-flex;
    padding: 15px 20px;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 900;
}

.hero-button {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
}

.secondary-button {
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.hero-scorecard {
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .92)),
        radial-gradient(circle at top, rgba(34, 197, 94, .2), transparent 40%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    text-align: center;
}

.hero-scorecard .cup {
    font-size: 48px;
}

.hero-scorecard h2 {
    margin: 14px 0 6px;
    color: #cbd5e1;
}

.countdown-number {
    font-size: 72px;
    line-height: 1;
    font-weight: 1000;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-scorecard p {
    margin: 8px 0 0;
    color: #94a3b8;
}


/* ==================================================
   HOMEPAGE STATISTIEKEN
================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 34px 0;
}

.stat-card {
    padding: 20px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.stat-card span {
    display: block;
    color: #94a3b8;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 34px;
}


/* ==================================================
   HOMEPAGE BLOKKEN
================================================== */

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-grid-v2 {
    grid-template-columns: 300px 350px 1fr;
    gap: 24px;
    align-items: start;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1e293b;
}

.mini-row:last-child {
    border-bottom: 0;
}

.podium-row strong {
    display: inline-block;
    min-width: 32px;
}

.score-pill {
    display: inline-flex;
    min-width: 64px;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.24);
}


/* ==================================================
   HOMEPAGE WEDSTRIJDEN
================================================== */

.next-match-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.match-date {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
}

.match-teams {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.versus {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}


/* ==================================================
   BRACKET
================================================== */

.bracket-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(260px, 1fr));
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.bracket-column {
    min-width: 260px;
}

.bracket-column h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.bracket-card {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.bracket-meta {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 13px;
}

.bracket-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}

.bracket-team:last-of-type {
    border-bottom: 0;
}

.bracket-stadium {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}


/* ==================================================
   ADMIN
================================================== */

.delete-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, .15);
    color: #fca5a5;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(239, 68, 68, .25);
}

.delete-btn:hover {
    background: rgba(239, 68, 68, .25);
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1100px) {
    .hero-v2,
    .stats-grid,
    .home-grid-v2 {
        grid-template-columns: 1fr;
    }

    .users-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-header {
        margin-bottom: 42px;
    }
}

@media (max-width: 850px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid #1e293b;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   PROGRAMMA PAGINA
================================================== */

.program-page {
    min-height: 100vh;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 32%),
        #020617;
}

.program-hero {
    margin-bottom: 34px;
}

.program-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
}

.program-hero p {
    margin: 0;
    color: #94a3b8;
    font-size: 20px;
}

.program-day {
    margin-bottom: 34px;
}

.program-day h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.program-list {
    display: grid;
    gap: 14px;
}

.program-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.program-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
}

.program-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.program-team:last-child {
    text-align: right;
}

.program-score {
    min-width: 70px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
    font-weight: 900;
}

.program-stadium {
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 700px) {
    .program-teams {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .program-team:last-child {
        text-align: left;
    }

    .program-score {
        width: fit-content;
    }
}