﻿:root {
    --mvp-bg: #f6f8fb;
    --mvp-surface: #ffffff;
    --mvp-surface-soft: #eef2f7;
    --mvp-text: #172033;
    --mvp-muted: #6b7280;
    --mvp-primary: #155eef;
    --mvp-primary-dark: #0f46b8;
    --mvp-success: #16a34a;
    --mvp-danger: #dc2626;
    --mvp-border: #e5e7eb;
    --mvp-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --mvp-radius: 18px;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--mvp-bg);
    color: var(--mvp-text);
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: inherit;
        text-decoration: none;
    }

.app-shell {
    min-height: 100vh;
    background: var(--mvp-bg);
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 104px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--mvp-border);
    backdrop-filter: blur(14px);
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
}

.nav-logo {
    height: 92px;
    width: auto;
    display: block;
    border-radius: 12px;
}

@media (max-width: 850px) {
    .nav-logo {
        height: 68px;
    }
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.dropdown-button {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    color: var(--mvp-muted);
    cursor: pointer;
}

    .nav-link:hover,
    .dropdown-button:hover {
        background: var(--mvp-surface-soft);
        color: var(--mvp-text);
    }

.live-link {
    color: var(--mvp-danger);
}

.nav-auth {
    display: flex;
    align-items: center;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--mvp-primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(21, 94, 239, 0.2);
}

    .login-button:hover {
        background: var(--mvp-primary-dark);
        color: white;
    }

.nav-dropdown {
    position: relative;
}

.dropdown-button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    background: var(--mvp-surface);
    box-shadow: var(--mvp-shadow);
    border: 1px solid var(--mvp-border);
}

    .dropdown-menu a {
        display: block;
        padding: 11px 12px;
        border-radius: 12px;
        color: var(--mvp-text);
        font-weight: 600;
    }

    .dropdown-group-label {
        padding: 10px 12px 4px;
        color: var(--mvp-muted);
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

        .dropdown-menu a:hover {
            background: var(--mvp-surface-soft);
        }

/* Desktop: dropdown opent op hover. Op touch-toestellen werkt hover niet,
   daar opent hij via klik (klasse .open, gezet in NavMenu). */
@media (hover: hover) {
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

/* Klik-ernaast sluit het open menu. De laag ligt ONDER de navigatiebalk
   (z 20), zodat het open menu en alle navigatieknoppen klikbaar blijven,
   maar boven de pagina-inhoud. */
.dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: transparent;
}

.nav-dropdown.open {
    z-index: 40;
}

.page-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 64px;
}

.page-header {
    margin-bottom: 28px;
}

.page-kicker {
    color: var(--mvp-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.page-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-subtitle {
    max-width: 680px;
    margin-top: 16px;
    color: var(--mvp-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    border-radius: var(--mvp-radius);
    padding: 22px;
    box-shadow: var(--mvp-shadow);
}

.card-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.card-muted {
    color: var(--mvp-muted);
    line-height: 1.55;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    background: var(--mvp-surface-soft);
    color: var(--mvp-muted);
}

.badge-live {
    background: #fee2e2;
    color: var(--mvp-danger);
}

.table-card {
    /* Nooit afkappen: te brede tabellen scrollen horizontaal binnen de kaart. */
    overflow-x: auto;
    padding: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th,
    .data-table td {
        text-align: left;
        padding: 12px 14px;
        border-bottom: 1px solid var(--mvp-border);
        vertical-align: top;
    }

    .data-table th {
        background: var(--mvp-surface-soft);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--mvp-muted);
    }

    .data-table tr:last-child td {
        border-bottom: 0;
    }

.score {
    font-weight: 900;
    font-size: 1.15rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
    align-items: stretch;
}

.hero-panel {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
}

.primary-button {
    background: var(--mvp-primary);
    color: white;
}

    .primary-button:hover {
        background: var(--mvp-primary-dark);
        color: white;
    }

.secondary-button {
    background: var(--mvp-surface-soft);
    color: var(--mvp-text);
}

    .secondary-button:hover {
        background: #dde4ef;
        color: var(--mvp-text);
    }

.nav-user-link {
    text-decoration: none;
    color: inherit;
}

    .nav-user-link:hover {
        color: var(--mvp-primary);
    }

/* Naam-dropdown (admin): kapiteinslijst om als te werken */
.dropdown-menu-right {
    left: auto;
    right: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.dropdown-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--mvp-muted);
}

/* Impersonatiebalk: admin werkt tijdelijk als een kapitein */
.impersonation-bar {
    /* Bewust niet zwevend: zo kan de balk nooit boven de navigatie of haar
       open dropdowns komen. De naam rechtsboven toont sowieso de kapitein. */
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    color: #92400e;
    padding: 8px 16px;
    font-weight: 600;
}

    .impersonation-bar button {
        border: 1px solid #f59e0b;
        background: #fff;
        border-radius: 999px;
        padding: 6px 14px;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
        color: #92400e;
    }

/* Testdatum-veld voor admins (fictief "vandaag") */
.clock-override {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--mvp-border);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mvp-muted);
    background: var(--mvp-surface);
}

    .clock-override input[type=date] {
        border: 0;
        background: transparent;
        font: inherit;
        color: inherit;
    }

.clock-override-active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.clock-override-reset {
    border: 0;
    background: transparent;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    color: inherit;
    padding: 0 2px;
}

/* "Menu"-knop: enkel zichtbaar op mobiel (bewust een woord, geen hamburger). */
.menu-button {
    display: none;
    border: 1px solid var(--mvp-border);
    background: var(--mvp-surface);
    padding: 10px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    color: var(--mvp-text);
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: var(--mvp-surface);
    overflow-y: auto;
    padding: 18px 22px 40px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mobile-menu-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.mobile-menu-close {
    border: 1px solid var(--mvp-border);
    background: var(--mvp-surface);
    padding: 10px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-link {
    display: block;
    padding: 14px 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mvp-text);
    border-bottom: 1px solid var(--mvp-border);
    text-decoration: none;
}

.mobile-menu-sub {
    padding-left: 28px;
    font-weight: 600;
}

.mobile-menu-group {
    padding: 16px 10px 4px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mvp-primary);
}

@media (max-width: 850px) {
    .top-nav {
        height: auto;
        min-height: 72px;
        padding: 12px 16px;
        gap: 12px;
    }

    /* Op mobiel: logo + Menu-knop + Login op één rij; de losse tabs verdwijnen. */
    .nav-links {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    /* Dropdown vouwt op mobiel gewoon open in de flow, zodat hij nooit
       buiten het scherm valt en alle items aanklikbaar zijn. */
    .nav-dropdown.open .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
    }

    .hero,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .page-content {
        width: calc(100% - 24px);
    }

    /* Brede tabellen scrollen horizontaal binnen hun kaart in plaats van
       knoppen af te snijden. */
    .table-card {
        overflow-x: auto;
    }

    .data-table {
        min-width: 640px;
    }
}
/*dit  voor def home*/
.section-block {
    margin-top: 42px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
}

    .section-heading h2 {
        margin: 0;
        font-size: 1.75rem;
        letter-spacing: -0.03em;
    }

.section-link {
    font-weight: 800;
    color: var(--mvp-primary);
}

.news-card {
    min-height: 190px;
}

    .news-card .card-title {
        margin-top: 10px;
    }

.news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-category {
    color: var(--mvp-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
}

.news-date {
    color: var(--mvp-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Publieke nieuwspagina */
.quarter-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border: 1px solid var(--mvp-border);
    border-radius: var(--mvp-radius);
    background: var(--mvp-surface);
    box-shadow: var(--mvp-shadow);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mvp-text);
    cursor: pointer;
}

.news-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.news-article .card-title {
    margin-top: 8px;
    font-size: 1.4rem;
}

.news-body {
    margin-top: 10px;
    color: var(--mvp-text);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Carrousel */
.news-carousel {
    position: relative;
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--mvp-surface-soft);
}

.news-carousel-image {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--mvp-text);
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--mvp-shadow);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

    .carousel-dot.active {
        background: white;
    }

/* Admin thumbnails */
.news-image-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.news-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--mvp-border);
}

    .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-thumb-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.mini-match-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
}

    .mini-match span {
        display: block;
        color: var(--mvp-muted);
        margin-top: 4px;
    }

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Sponsor-carrousel op de homepagina */
.sponsor-carousel {
    position: relative;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    border-radius: var(--mvp-radius);
    box-shadow: var(--mvp-shadow);
    padding: 24px 60px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.sponsor-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.sponsor-slot-side {
    flex: 0 1 22%;
    opacity: 0.55;
    transform: scale(0.8);
}

.sponsor-slot-center {
    flex: 0 1 40%;
    opacity: 1;
    transform: scale(1);
}

.sponsor-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sponsor-slot-side .sponsor-slide img {
    max-height: 80px;
}

.sponsor-slot-center .sponsor-slide img {
    max-height: 130px;
}

    .sponsor-slide img {
        max-width: 100%;
        width: auto;
        object-fit: contain;
        animation: sponsorFade 0.5s ease;
    }

.sponsor-name {
    font-weight: 800;
    color: var(--mvp-text);
    text-align: center;
    animation: sponsorFade 0.5s ease;
}

@keyframes sponsorFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 700px) {
    .sponsor-row {
        gap: 10px;
    }

    .sponsor-slot-side .sponsor-slide img {
        max-height: 48px;
    }

    .sponsor-slot-center .sponsor-slide img {
        max-height: 90px;
    }
}

.sponsor-card {
    min-height: 110px;
    border-radius: var(--mvp-radius);
    border: 1px dashed #cbd5e1;
    background: var(--mvp-surface);
    color: var(--mvp-muted);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--mvp-shadow);
}

@media (max-width: 850px) {
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*dit is voor de competitiespagina*/
.stat-number {
    margin: 14px 0 8px;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.team-card {
    min-height: 220px;
}

.compact-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--mvp-muted);
    line-height: 1.8;
}

/*Teams*/
.team-filter-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.filter-card {
    min-width: 260px;
    padding: 14px;
    border-radius: 16px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    box-shadow: var(--mvp-shadow);
}

    .filter-card label {
        display: block;
        margin-bottom: 8px;
        color: var(--mvp-muted);
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .filter-card select {
        width: 100%;
        border: 1px solid var(--mvp-border);
        border-radius: 12px;
        padding: 10px 12px;
        background: white;
        color: var(--mvp-text);
        font: inherit;
        font-weight: 600;
    }

.player-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
}

    .player-row strong {
        display: block;
        font-size: 0.95rem;
    }

    .player-row span {
        display: block;
        margin-top: 2px;
        color: var(--mvp-muted);
        font-size: 0.84rem;
    }

.player-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mvp-primary);
    color: white;
    font-weight: 900;
    font-size: 0.82rem;
}

.team-meta {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
}

    .team-meta span {
        display: block;
        color: var(--mvp-muted);
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 4px;
    }

    .team-meta strong {
        display: block;
        color: var(--mvp-text);
    }

/*Admin*/
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    box-shadow: var(--mvp-shadow);
}

.admin-nav-link {
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--mvp-muted);
    white-space: nowrap;
}

    .admin-nav-link:hover {
        background: var(--mvp-surface-soft);
        color: var(--mvp-text);
    }

    .admin-nav-link.active {
        background: var(--mvp-primary);
        color: white;
    }

@media (max-width: 850px) {
    .admin-nav {
        border-radius: 18px;
    }
}

.login-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(460px, 100%);
}

.login-title {
    margin: 0 0 12px;
    font-size: 2.2rem;
    letter-spacing: -0.04em;
}

.form-group {
    margin-top: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--mvp-muted);
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

.form-control-mvp {
    width: 100%;
    border: 1px solid var(--mvp-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: white;
    color: var(--mvp-text);
    font: inherit;
    font-weight: 600;
}

    .form-control-mvp:focus {
        outline: 3px solid rgba(21, 94, 239, 0.16);
        border-color: var(--mvp-primary);
    }

.full-width {
    width: 100%;
    border: 0;
    margin-top: 22px;
}

.form-error {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fee2e2;
    color: var(--mvp-danger);
    font-weight: 800;
}

.demo-login-box {
    margin-top: 22px;
    padding: 14px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
    color: var(--mvp-muted);
    display: grid;
    gap: 4px;
}

    .demo-login-box strong {
        color: var(--mvp-text);
    }

.nav-user {
    margin-right: 10px;
    color: var(--mvp-muted);
    font-weight: 700;
    white-space: nowrap;
}

.logout-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--mvp-surface-soft);
    color: var(--mvp-text);
    font-weight: 800;
    cursor: pointer;
}

    .logout-button:hover {
        background: #dde4ef;
    }

.admin-card {
    display: block;
    min-height: 190px;
}

    .admin-card:hover {
        transform: translateY(-2px);
    }

/*Navmenu*/
.login-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(460px, 100%);
}

.login-title {
    margin: 0 0 12px;
    font-size: 2.2rem;
    letter-spacing: -0.04em;
}

.form-group {
    margin-top: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--mvp-muted);
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

.form-control-mvp {
    width: 100%;
    border: 1px solid var(--mvp-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: white;
    color: var(--mvp-text);
    font: inherit;
    font-weight: 600;
}

    .form-control-mvp:focus {
        outline: 3px solid rgba(21, 94, 239, 0.16);
        border-color: var(--mvp-primary);
    }

.full-width {
    width: 100%;
    border: 0;
    margin-top: 22px;
}

.form-error {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fee2e2;
    color: var(--mvp-danger);
    font-weight: 800;
}

.demo-login-box {
    margin-top: 22px;
    padding: 14px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
    color: var(--mvp-muted);
    display: grid;
    gap: 4px;
}

    .demo-login-box strong {
        color: var(--mvp-text);
    }

.nav-user {
    margin-right: 10px;
    color: var(--mvp-muted);
    font-weight: 700;
    white-space: nowrap;
}

.logout-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--mvp-surface-soft);
    color: var(--mvp-text);
    font-weight: 800;
    cursor: pointer;
}

    .logout-button:hover {
        background: #dde4ef;
    }

.admin-card {
    display: block;
    min-height: 190px;
}

    .admin-card:hover {
        transform: translateY(-2px);
    }

/*AdminCompetitions*/
.form-success {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
}

.admin-action-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.table-link {
    color: var(--mvp-primary);
    font-weight: 800;
}

/*AdminTeams*/
.field-help {
    margin: 8px 0 0;
    color: var(--mvp-muted);
    font-size: 0.85rem;
}

.compact-filter {
    min-width: 240px;
    box-shadow: none;
}

.show-inactive-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    box-shadow: var(--mvp-shadow);
    font-weight: 700;
    cursor: pointer;
}

    .show-inactive-toggle input {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

.link-button {
    display: inline-block;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: var(--mvp-primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

/* Tijdelijk uitgeschakelde actie (met tooltip via title) */
.link-button-disabled {
    display: inline-block;
    margin-top: 12px;
    color: var(--mvp-muted);
    font-weight: 700;
    opacity: 0.55;
    cursor: not-allowed;
    text-decoration: line-through;
}

.info-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
    border: 1px solid var(--mvp-border);
}

.danger-solid {
    background: var(--mvp-danger);
    color: white;
}

    .danger-solid:hover {
        background: #b91c1c;
        color: white;
    }

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    width: min(480px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--mvp-surface);
    border-radius: var(--mvp-radius);
    padding: 24px;
    box-shadow: var(--mvp-shadow);
}

.modal-box-wide {
    width: min(820px, 100%);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-close {
    border: 0;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    color: var(--mvp-muted);
}

    .modal-close:hover {
        color: var(--mvp-text);
    }

/* Knoppenrijen: nooit afsnijden, altijd wrappen */
.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.small-button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--mvp-surface-soft);
    color: var(--mvp-text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

    .small-button:hover {
        background: #dde4ef;
    }

.danger-button {
    background: #fee2e2;
    color: var(--mvp-danger);
}

.small-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

    .small-button:disabled:hover {
        background: #fee2e2;
    }

    .danger-button:hover {
        background: #fecaca;
    }

/* Intern reglement (publiek) */
.rule-card {
    margin-top: 12px;
    display: grid;
    gap: 14px;
}

.rule-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    line-height: 1.55;
}

.rule-subitem {
    margin-top: 10px;
    margin-left: 4px;
}

.rule-nr {
    color: var(--mvp-primary);
    font-weight: 800;
    white-space: nowrap;
}

.board-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 28px 20px;
}

/* Biljart-lader: keu stoot drie ballen aan (puur CSS, geen overhead) */
.biljart-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 70px 0;
    /* Pas zichtbaar na 0,35 s: bij een snelle laadbeurt zie je hem nooit. */
    opacity: 0;
    animation: loaderIn 0.25s ease-out 0.35s forwards;
}

@keyframes loaderIn {
    to { opacity: 1; }
}

/* Intro op de homepage: meteen zichtbaar, zonder verschijnvertraging. */
.biljart-loader-instant {
    opacity: 1;
    animation: none;
}

.biljart-balls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biljart-keu {
    width: 78px;
    height: 7px;
    border-radius: 4px;
    background: linear-gradient(90deg, #5b3a1e, #a9743f 60%, #e5c49b);
    animation: keuStoot 1.3s ease-in-out infinite;
}

.biljart-bal {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: inset -3px -3px 5px rgba(0, 0, 0, 0.25), inset 3px 3px 5px rgba(255, 255, 255, 0.45);
}

.bal-wit  { background: #f8fafc; border: 1px solid #cbd5e1; animation: balRol 1.3s ease-in-out infinite; }
.bal-rood { background: #dc2626; animation: balRol 1.3s ease-in-out 0.15s infinite; }

@keyframes keuStoot {
    0%, 100% { transform: translateX(-10px); }
    40%      { transform: translateX(5px); }
}

@keyframes balRol {
    0%, 20%, 100% { transform: translateX(0); }
    55%           { transform: translateX(12px); }
}

/* Sponsorpagina */
.sponsor-main-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 16px;
}

.sponsor-main-logo {
    max-height: 90px;
    max-width: 80%;
    object-fit: contain;
}

.sponsor-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 8px 14px;
    border: 1px dashed var(--mvp-border);
    border-radius: 10px;
    font-weight: 700;
    color: var(--mvp-muted);
    text-align: center;
}

.sponsor-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.sponsor-premium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

    .sponsor-premium-card img {
        max-height: 70px;
        max-width: 100%;
        object-fit: contain;
    }

    .sponsor-premium-card:hover {
        border-color: var(--mvp-primary);
    }

/* Reacties onder nieuwsberichten */
.news-comments {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--mvp-border);
}

.news-comments-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.news-comment {
    background: var(--mvp-surface-soft);
    border: 1px solid var(--mvp-border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.news-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--mvp-muted);
    margin-bottom: 6px;
}

.news-comment-hidden {
    opacity: 0.6;
    border-style: dashed;
    border-color: var(--mvp-danger);
}

.news-comment-text {
    font-size: 0.95rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

    .news-comment-text a {
        color: var(--mvp-primary);
        text-decoration: underline;
    }

/* Doorklikbare nieuwskaarten op de homepagina */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .news-card-link:hover .news-card {
        border-color: var(--mvp-primary);
    }

.news-read-more {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--mvp-primary);
    font-size: 0.9rem;
}

/* Gemarkeerd bericht na doorklik vanaf de homepagina */
.news-highlight {
    border: 2px solid var(--mvp-primary);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

/* Bevestigingen op het wedstrijdblad van de kapitein */
.confirmation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.confirmation-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--mvp-border);
    border-radius: 12px;
    background: var(--mvp-surface-soft);
}

.confirmation-done {
    border-color: #86efac;
    background: #f0fdf4;
}

.confirmation-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    flex-shrink: 0;
}

.confirmation-done .confirmation-icon {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.confirmation-label {
    flex: 1;
    font-weight: 600;
}

.confirmation-status {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mvp-muted);
}

.confirmation-done .confirmation-status {
    color: #16a34a;
}

/* Flash-meldingen: centrale pop-up voor fout/succes */
.flash-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(15, 23, 42, 0.25);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 14vh 16px 0;
}

.flash-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 480px;
    width: 100%;
    background: var(--mvp-surface);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
    font-weight: 600;
    animation: toastIn 0.2s ease-out;
}

.flash-error {
    border: 2px solid var(--mvp-danger);
    color: var(--mvp-danger);
}

.flash-success {
    border: 2px solid #16a34a;
    color: #166534;
}

.flash-icon {
    font-size: 1.2rem;
    line-height: 1.3;
}

.flash-text {
    flex: 1;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0 2px;
}

/* Live-toasts op de homepagina */
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-primary);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    font-size: 0.9rem;
    font-weight: 600;
    animation: toastIn 0.25s ease-out;
}

@keyframes toastIn {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Terug-knop bovenaan elke pagina */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--mvp-primary);
    cursor: pointer;
    margin-bottom: 14px;
}

    .back-button:hover {
        border-color: var(--mvp-primary);
    }

/* Tussenheader per speelweek in de competitiekalender */
.week-header-row {
    cursor: pointer;
}

.week-toggle {
    display: inline-block;
    width: 16px;
}

.week-header-row td {
    /* Bewust anders dan de tabelheader: lichtblauwe band. */
    background: #dbe7ff;
    color: var(--mvp-primary-dark, #1d4ed8);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-top: 2px solid #b6ccff;
}

/* Klikbare wedstrijdrij in de kalender */
.match-row {
    cursor: pointer;
}

    .match-row:hover td {
        background: #eff6ff;
    }

/* Publiek wedstrijdblad */
.match-line-winner {
    color: var(--mvp-primary);
    font-weight: 700;
}

.match-line-belle td {
    background: #fef9c3;
}

.cup-match-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .cup-match-link:hover .cup-match {
        border-color: var(--mvp-primary);
    }

/* Beker: ploegkeuze in admin */
.cup-team-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 14px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--mvp-border);
    border-radius: 10px;
    padding: 10px;
}

.cup-team-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.cup-preview-list {
    margin: 0 0 6px;
    padding-left: 18px;
    font-size: 0.9rem;
}

    .cup-preview-list li {
        margin-bottom: 2px;
    }

/* Beker: manuele samenstelling volgende ronde */
.cup-pairing-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

    .cup-pairing-row select {
        flex: 1;
        min-width: 180px;
    }

    .cup-pairing-row input[type=date] {
        width: 160px;
    }

/* Beker: rondeplanning in admin */
.cup-round-planning {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px 14px;
    margin-bottom: 8px;
}

/* Beker: horizontale knock-out tree, finale in het midden */
.cup-bracket-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
}

.cup-bracket {
    display: flex;
    gap: 18px;
    align-items: stretch;
    min-width: max-content;
}

.cup-round-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 14px;
    min-width: 220px;
}

.cup-round-title {
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mvp-primary);
}

.cup-match {
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.cup-final-col .cup-match {
    border-color: var(--mvp-primary);
    border-width: 2px;
}

.cup-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
}

    .cup-team strong {
        color: var(--mvp-primary);
    }

.cup-team-winner span {
    color: var(--mvp-primary);
}

.cup-vs {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 4px 0;
}

    .cup-vs em {
        font-style: normal;
        color: #d97706;
    }

.cup-match-tbd {
    opacity: 0.7;
    border-style: dashed;
}

    .cup-match-tbd .cup-team-known span {
        color: var(--mvp-primary);
    }

.cup-match-bye .cup-vs {
    margin: 2px 0 0;
}

.hero-content {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

    .hero-content > div:first-child {
        min-width: 0;
        flex: 1;
    }

.hero-image {
    max-width: 240px;
    max-height: 240px;
    border-radius: var(--mvp-radius);
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-image {
        max-width: 100%;
        margin-top: 12px;
    }
}

.board-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--mvp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
}

.board-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mvp-primary);
}

.rule-card mark,
.quarter-header mark {
    background: #fde68a;
    border-radius: 3px;
    padding: 0 2px;
}

/* Reglement-beheer (admin) */
.rule-admin-section {
    margin-top: 14px;
    padding: 14px 16px;
}

.rule-admin-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-admin-toggle {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 4px 0;
}

.rule-admin-items {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.rule-admin-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--mvp-surface-soft);
}

.rule-admin-sub {
    margin-left: 34px;
    background: transparent;
    border: 1px dashed var(--mvp-border);
}

.rule-admin-text {
    flex: 1;
    line-height: 1.4;
}

.drag-handle {
    cursor: grab;
    color: var(--mvp-muted);
    font-size: 1.1rem;
    user-select: none;
    padding: 0 2px;
}

.rule-admin-dropzone {
    margin-top: 10px;
    padding: 10px;
    border: 2px dashed var(--mvp-border);
    border-radius: 12px;
    text-align: center;
    color: var(--mvp-muted);
    font-size: 0.85rem;
}

.drag-over {
    outline: 2px solid var(--mvp-primary);
    outline-offset: 2px;
}

/* Bediening in een tabelcel onder elkaar i.p.v. naast elkaar, zodat de
   tabel smal blijft en niets afgekapt wordt. */
.cell-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

    .cell-stack .table-date-input {
        width: 100%;
        max-width: 160px;
    }

    .cell-stack .small-button {
        white-space: normal;
        text-align: left;
    }

/* Handmatig aangepaste wedstrijddatum of -uur: duidelijk afwijkende kleur */
.match-manual {
    color: #c2410c;
    font-weight: 800;
}

.match-time-auto {
    font-size: 0.8em;
    color: #8a8f98;
}

.table-date-input {
    border: 1px solid var(--mvp-border);
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    font-size: 0.85rem;
    background: white;
    color: var(--mvp-text);
    max-width: 150px;
}

.empty-state {
    padding: 20px 0;
    color: var(--mvp-muted);
}

.admin-secondary-action {
    margin-top: 10px;
}

@media (max-width: 850px) {
    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .section-heading .filter-card,
    .compact-filter,
    .filter-card {
        width: 100%;
        min-width: 0;
    }
}