.auth-page,
body.bg-gray-50 {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.08), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #111827;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(280px, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: stretch;
    min-height: 100vh;
    padding: clamp(24px, 6vw, 72px);
}

.auth-panel {
    align-self: center;
    width: 100%;
    max-width: 520px;
    padding: clamp(28px, 5vw, 48px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px;
}

.auth-brand p,
.auth-heading span {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-brand h1 {
    margin: 3px 0 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
}

.auth-heading {
    margin: clamp(34px, 5vw, 52px) 0 28px;
}

.auth-heading h2 {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: 0;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-form label,
.auth-label-row label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-label-row a,
.auth-secondary-link {
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-input-wrap:focus-within {
    border-color: #475569;
    box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.12);
}

.auth-input-wrap i {
    width: 18px;
    color: #64748b;
    text-align: center;
}

.auth-input-wrap input,
.auth-input-wrap select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #0f172a;
    background: transparent;
    font: inherit;
}

.auth-error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #dc2626;
    font-size: 0.84rem;
    font-weight: 650;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.auth-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: #475569;
}

.auth-aside {
    display: flex;
    align-items: end;
    min-height: 420px;
    padding: clamp(28px, 5vw, 56px);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(51, 65, 85, 0.76)),
        var(--auth-banner, url("../img/default-football-banner.svg")) center / cover no-repeat;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 70px rgba(15, 23, 42, 0.14);
}

.auth-aside p {
    max-width: 560px;
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 3vw, 2.6rem);
    font-weight: 850;
    line-height: 1.08;
}

.auth-aside strong {
    display: block;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.6;
}

main.p-8,
main.bg-gray-50 {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

.bg-white.shadow-md,
.bg-white.shadow-lg,
.bg-white.border,
.rounded-2xl {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

thead.bg-gray-50,
#spelerOverview thead {
    background: #f8fafc !important;
}

tbody tr {
    transition: background-color 140ms ease;
}

input,
select,
textarea {
    border-radius: 8px !important;
}

.app-sidebar {
    background: rgba(15, 23, 42, 0.96) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 !important;
}

.app-sidebar-logo {
    max-width: 150px;
    max-height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

.app-nav-link {
    border-radius: 8px !important;
}

.app-topbar {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(16px);
}

.initials-avatar {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    border-radius: 50%;
    line-height: 1;
    background: grey;
    color: white;
}
.initials-avatar.large {
    width: 42px;
    height: 37px;
    font-size: 14px;
}

.action {
    position: fixed;
    top: 20px;
    right: 30px;
}

.action .profile {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.action .profile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.action .menu {
    position: absolute;
    top: 120px;
    right: -10px;
    padding: 10px 20px;
    background: rgba(173, 173, 173, 0.64);
    width: 200px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: 0.5s;
    visibility: hidden;
    opacity: 0;
}

.action .menu.active {
    top: 48px;
    visibility: visible;
    opacity: 1;
}

.action .menu h3 {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 20px 0;
    font-weight: 500;
    color: white;
    line-height: 1.5em;
}

.action .menu h3 span {
    font-size: 14px;
    color: #cecece;
    font-weight: 300;
}

.action .menu ul li {
    list-style: none;
    padding: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.action .menu ul li img {
    max-width: 20px;
    margin-right: 10px;
    opacity: 0.5;
    transition: 0.5s;
}

.action .menu ul li:hover img {
    opacity: 1;
}

.action .menu ul li a {
    display: inline-block;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.5s;
}

.menu {
    display: none; /* Dit zorgt ervoor dat het menu standaard verborgen is */
    position: absolute;
    top: 100%; /* Zorgt ervoor dat het menu direct onder de knop verschijnt */
    right: 0;  /* Positie aan de rechterkant */
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50; /* Zorgt ervoor dat het menu altijd bovenop komt */
    border-radius: 8px;
}

.menu.active {
    display: block; /* Maakt het menu zichtbaar wanneer 'active' klasse is toegevoegd */
}

.action .menu ul li:hover a {
    color: #474747;
}

.toggle-checkbox:checked {
    @apply: right-0 border-green-400;
    right: 0;
    border-color: #68D391;
}
.toggle-checkbox:checked + .toggle-label {
    @apply: bg-green-400;
    background-color: #68D391;
}


.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 16px;
}

.calendar-navigation .btn {
    padding: 8px 16px;
    font-size: 14px;
    text-align: center;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.calendar-navigation .btn:hover {
    background-color: #45a049;
}

.calendar-navigation .month-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Voor mobiele weergave, center de knoppen verticaal en horizontaal */
@media (max-width: 768px) {
    .calendar-navigation {
        flex-direction: column;
        align-items: center;
    }

    .calendar-navigation .month-title {
        margin: 10px 0;
    }
}

/* Zorg ervoor dat de tabel container de volledige breedte van het scherm gebruikt */
.table-container {
    width: 100%;
    overflow-x: auto;
}

/* Maak de tabel ook responsief */
#spelerOverview {
    width: 100%;
    border-collapse: collapse;
}

#spelerOverview th, #spelerOverview td {
    padding: 12px;
    text-align: left;
}

#spelerOverview thead {
    background-color: #f1f1f1;
}

#spelerOverview td, #spelerOverview th {
    border-bottom: 1px solid #ddd;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .auth-aside {
        min-height: 220px;
        order: -1;
    }
}

@media (max-width: 640px) {
    .auth-panel {
        padding: 24px;
    }

    .auth-brand {
        align-items: flex-start;
    }

    .auth-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    main.p-8,
    main.bg-gray-50 {
        padding: 20px !important;
    }
}
