/* Font Face */
@font-face {
    font-family: "Walibi0615";
    font-weight: 700;
    src: url("fonts/walibi0615.ttf") format("truetype"),
         url("fonts/fonts/walibi0615.woff") format("woff"),
         url("fonts/walibi0615.woff2") format("woff2"),
         url("fonts/walibi0615.otf") format("opentype");
}

:root,
body.brand-aqa {
    --brand-primary: #13B5EA;
    --brand-primary-rgb: 19, 181, 234;
    --brand-primary-hover: #0ea1d0;
    --brand-primary-border: #0c90b8;
    --brand-primary-disabled: #9edcf1;
    --brand-primary-soft: #7ad7f4;
    --brand-primary-dark: #0d8fba;
    --brand-primary-darker: #0a79a0;
    --brand-primary-gradient-start: #0aa1d2;
    --brand-primary-gradient-end: #1dc2f5;
    --brand-primary-badge-ink: #006e96;
}

body.brand-walibi {
    --brand-primary: #F81700;
    --brand-primary-rgb: 248, 23, 0;
    --brand-primary-hover: #d71500;
    --brand-primary-border: #c21400;
    --brand-primary-disabled: #f7a199;
    --brand-primary-soft: #ff7a66;
    --brand-primary-dark: #b3301d;
    --brand-primary-darker: #941f12;
    --brand-primary-gradient-start: #c81400;
    --brand-primary-gradient-end: #ff4a32;
    --brand-primary-badge-ink: #b3301d;
}


/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    font-family: "futura-pt", sans-serif;
    font-size: 1.1rem; /* Base font size */
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, .h1 {
    text-align: center;
    font-size: 2.5rem !important;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 12px;
    width: 100%;
    display: block;
    font-family: "Walibi0615", "Poppins", Helvetica, Arial, sans-serif;
}

h2, .h2 {
    text-align: center;
    font-size: 1.75rem !important;
    font-weight: 500;
    margin-bottom: 0;
    padding-bottom: 12px;
    width: 100%;
    display: block;
    font-family: "Poppins", Helvetica, Arial, sans-serif;
    color:var(--bs-body-color);
}

/* Header and Navbar */
header {
    text-align: center;
    padding-top: 1.25rem; /* 20px */
    margin-bottom: 2.5rem; /* 40px */
}

header img {
    max-width: 11.25rem; /* 180px */
    margin-bottom: 1.25rem; /* 20px */
}

.navbar {
    padding-top: 50px;
}

/* Page Layout */
.page {
    flex: 1;
    background: #fff;
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    padding: 1.25rem; /* 20px */
    margin: 1.25rem auto; /* 20px */
    max-width: 60rem; /* 700px */
}

/* Logos */
.logos {
    text-align: center;
    margin: 40px 0;
}

/* Language Selector */
.lang-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.875rem; /* 30px */
}

.lang-selector form {
    display: inline-block;
    margin: 0 1rem;
}

.lang-selector button {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    padding: 0.625rem 1.875rem;
    border-radius: 50rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.lang-selector button:hover {
    background-color: var(--brand-primary-hover);
    cursor: pointer;
}

/* Language Visibility */
.lang-fr .nl, .lang-fr .en, .lang-fr .de,
.lang-nl .fr, .lang-nl .en, .lang-nl .de,
.lang-en .nl, .lang-en .fr, .lang-en .de,
.lang-de .nl, .lang-de .fr, .lang-de .en {
    display: none;
}

/* Intro Text */
.intro-text {
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.intro-text p {
    margin: 0;
}

.selected-reservation-date {
    font-weight: 700;
    white-space: nowrap;
}

.form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.4rem 0 0.15rem;
    color: #102a43;
}

.date-selection-section {
    margin-top: 1rem;
}

.page-copy {
    font-size: inherit;
    line-height: 1.6;
}

.debug-panel pre {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Footer */
.footer {
    background-color: #333;
    padding: 0.625rem 0;
    text-align: center;
    color: white;
    width: 100%;
    font-size: 0.75rem;
}

.footer a {
    text-decoration: none !important;
}

/* Buttons */
.btn-wbe, .btn-aqa {
    color: #ffffff !important;
    border-color: transparent !important;
}

.btn-wbe {
    background-color: #F81700 !important;
}

.btn-wbe:hover, .btn-wbe:focus, .btn-wbe:active {
    background-color: #d71500 !important;
    border-color: #c21400 !important;
}

.btn-aqa {
    background-color: var(--brand-primary) !important;
}

.btn-aqa:hover, .btn-aqa:focus, .btn-aqa:active {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-border) !important;
}

.btn-aqa:disabled,
.btn-aqa.disabled {
    background-color: var(--brand-primary-disabled) !important;
    border-color: var(--brand-primary-disabled) !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

/* Text Colors */
.text-wbe {
    color: #F81700 !important;
}

.text-aqa {
    color: var(--brand-primary) !important;
}

/* Responsive Design */
@media (max-width: 48rem) { /* 768px */
    .lang-selector {
        flex-direction: column;
        align-items: center;
    }

    .lang-selector button {
        margin: 0.625rem 0;
        width: 80%;
    }

    h1, .h1 {
        font-size: 2rem;
    }
}

/* Date selector */
.date-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.date-option {
    position: relative;
}

.date-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.date-card {
    min-width: 11rem;
    min-height: 6.25rem;
    border: 2px solid #d8e3ea;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    box-shadow: 0 0.45rem 1.3rem rgba(12, 42, 56, 0.08);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.date-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.75rem rgba(12, 42, 56, 0.13);
    border-color: var(--brand-primary-soft);
}

.date-label {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Poppins", Helvetica, Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #102a43;
    white-space: nowrap;
}

.date-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.55rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(122, 135, 148, 0.16);
    color: #66727d;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.date-card-sold-out {
    background: linear-gradient(180deg, #f4f6f8 0%, #e6ebef 100%);
    border-color: #d3dbe2;
    color: #7a8794;
    cursor: not-allowed;
    box-shadow: none;
}

.date-card-sold-out:hover {
    transform: none;
    box-shadow: none;
    border-color: #cfd8de;
}

.date-card-sold-out .date-label {
    color: #8c99a4;
}

/* Active state */
.date-radio:checked + .date-card {
    background: linear-gradient(180deg, #ffffff 0%, #f5fcff 100%);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.28rem rgba(var(--brand-primary-rgb), 0.16), 0 0.9rem 1.9rem rgba(var(--brand-primary-rgb), 0.18);
}

.date-radio:checked + .date-card .date-label {
    color: var(--brand-primary);
}

/* Focus state for keyboard navigation */
.date-radio:focus + .date-card {
    outline: 3px solid rgba(var(--brand-primary-rgb), 0.24);
    outline-offset: 2px;
}

/* Mobile */
@media (max-width: 48rem) {
    .date-selector {
        grid-template-columns: 1fr;
    }
 
    .date-card {
        width: 100%;
    }
}

/* Admin */
.admin-shell {
    --admin-ink: #123044;
    --admin-surface: #ffffff;
    --admin-border: rgba(18, 48, 68, 0.1);
    --admin-shadow: 0 1rem 2rem rgba(10, 36, 52, 0.08);
    --admin-danger: #cc3f45;
    --admin-success: #12866a;
    --admin-blue: var(--brand-primary);
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
    padding-top: 1.25rem;
}

.admin-topbar {
    background:
        linear-gradient(135deg, var(--brand-primary-gradient-start) 0%, var(--brand-primary) 52%, var(--brand-primary-gradient-end) 100%);
    box-shadow: 0 0.6rem 1.8rem rgba(var(--brand-primary-rgb), 0.28);
}

.admin-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem 1.5rem;
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
    min-height: 4.25rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.admin-topbar-title {
    color: #ffffff;
    font-family: "Walibi0615", "Poppins", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.admin-topbar-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.admin-topbar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-topbar-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-page {
    width: 100%;
}

.admin-alert {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0.8rem 1.8rem rgba(11, 33, 46, 0.08);
}

.admin-panel {
    border: 1px solid var(--admin-border);
    border-radius: 1.1rem;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
    padding: 1.2rem 1.25rem;
}

.admin-panel-highlight {
    background:
        linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.1) 0%, rgba(255, 255, 255, 1) 18rem);
    border-color: rgba(var(--brand-primary-rgb), 0.26);
}

.admin-panel-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.admin-panel-header-tight {
    margin-bottom: 0.85rem;
}

.admin-panel-header h2,
.admin-section-title {
    text-align: left;
    color: var(--admin-ink);
    margin: 0;
}

.admin-section-title {
    font-size: 2.2rem !important;
}

.admin-panel-header h2 {
    font-size: 1.35rem !important;
    padding-bottom: 0;
}

.admin-panel-header p {
    margin: 0.2rem 0 0;
    color: rgba(18, 48, 68, 0.68);
}

.admin-muted,
.admin-check-copy {
    display: block;
    color: rgba(18, 48, 68, 0.62);
    font-size: 0.84rem;
}

.admin-search-form {
    align-items: end;
}

.admin-search-input {
    min-height: 3.4rem;
    border-radius: 0.95rem;
    border-color: rgba(var(--brand-primary-rgb), 0.26);
    box-shadow: inset 0 1px 2px rgba(10, 36, 52, 0.04);
}

.admin-search-actions {
    flex-wrap: wrap;
}

.admin-search-actions .btn {
    min-width: 8rem;
    border-radius: 0.95rem;
}

.admin-search-results {
    border-top: 1px solid rgba(18, 48, 68, 0.08);
    padding-top: 1rem;
}

.admin-check {
    height: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.16);
    border-radius: 1rem;
    background: rgba(var(--brand-primary-rgb), 0.05);
}

.admin-check .form-check-input {
    margin-top: 0.25rem;
}

.admin-check .form-check-label {
    font-weight: 700;
    color: var(--admin-ink);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table thead th {
    border-bottom: 0;
    color: rgba(18, 48, 68, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.75rem 0.75rem;
    border-color: rgba(18, 48, 68, 0.08);
    vertical-align: top;
}

.admin-settings-table tbody td {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.admin-settings-table tbody tr:hover {
    background: rgba(var(--brand-primary-rgb), 0.03);
}

.admin-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    padding: 1rem;
    border: 1px dashed rgba(18, 48, 68, 0.18);
    border-radius: 1rem;
    color: rgba(18, 48, 68, 0.72);
    text-align: center;
    background: rgba(255, 255, 255, 0.76);
}

.admin-empty-state-inline {
    min-height: 0;
    margin-top: 0.55rem;
}

.admin-type-badge,
.admin-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1;
}

.admin-type-badge {
    background: rgba(18, 48, 68, 0.08);
    color: var(--admin-ink);
}

.admin-type-invitation {
    background: rgba(248, 23, 0, 0.1);
    color: #b3301d;
}

.admin-type-pass {
    background: rgba(var(--brand-primary-rgb), 0.14);
    color: var(--brand-primary-badge-ink);
}

.admin-type-privilege {
    background: rgba(255, 143, 28, 0.14);
    color: #b86a00;
}

.admin-chip--active {
    background: rgba(18, 134, 106, 0.12);
    color: var(--admin-success);
}

.admin-chip--inactive {
    background: rgba(204, 63, 69, 0.12);
    color: var(--admin-danger);
}

.admin-capacity-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--admin-ink);
}

.admin-setting-primary,
.admin-setting-status,
.admin-setting-usage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.admin-setting-primary {
    gap: 0.12rem;
}

.admin-setting-date {
    white-space: nowrap;
}

.admin-setting-weekday {
    color: rgba(18, 48, 68, 0.68);
    font-size: 0.84rem;
    line-height: 1.1;
}

.admin-setting-type {
    align-self: flex-start;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.admin-multidate-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.1rem;
    padding: 0.26rem 0.5rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1;
}

.admin-multidate-yes {
    background: rgba(18, 134, 106, 0.12);
    color: var(--admin-success);
}

.admin-multidate-no {
    background: rgba(204, 63, 69, 0.12);
    color: var(--admin-danger);
}

.admin-chip--soft {
    background: rgba(18, 48, 68, 0.08);
    color: rgba(18, 48, 68, 0.8);
}

.admin-chip--success {
    background: rgba(18, 134, 106, 0.12);
    color: var(--admin-success);
}

.admin-chip--danger {
    background: rgba(204, 63, 69, 0.12);
    color: var(--admin-danger);
}

.admin-code-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-code-grid span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: rgba(18, 48, 68, 0.05);
    color: var(--admin-ink);
    font-size: 0.8rem;
}

.admin-code-grid code {
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: inherit;
}

.admin-code-grid-compact {
    gap: 0.35rem;
}

.admin-code-grid-compact span {
    padding: 0.22rem 0.5rem;
    font-size: 0.75rem;
}

.admin-reservation-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.admin-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.42rem;
}

.admin-reservation-count {
    min-width: 2.75rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    border-color: rgba(var(--brand-primary-rgb), 0.38);
    background: rgba(var(--brand-primary-rgb), 0.08);
    color: var(--brand-primary-dark);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
}

.admin-reservation-count:hover,
.admin-reservation-count:focus-visible {
    border-color: rgba(var(--brand-primary-rgb), 0.5);
    background: rgba(var(--brand-primary-rgb), 0.14);
    color: var(--brand-primary-darker);
}

.admin-reservation-count:focus-visible {
    outline: 2px solid rgba(var(--brand-primary-rgb), 0.35);
    outline-offset: 0.2rem;
}

.admin-subtable {
    background: rgba(255, 255, 255, 0.84);
    border-radius: 0.85rem;
}

.admin-reservations-modal {
    text-align: left;
}

.admin-reservations-modal .modal-content {
    border: 0;
    border-radius: 1.1rem;
    box-shadow: 0 1.5rem 3rem rgba(10, 36, 52, 0.18);
}

.admin-reservations-modal .modal-header,
.admin-reservations-modal .modal-body {
    padding: 1.1rem 1.25rem;
}

.admin-modal-copy {
    margin: 0.18rem 0 0;
    color: rgba(18, 48, 68, 0.68);
}

.admin-modal-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

@media (max-width: 64rem) {
    .admin-section-title {
        font-size: 1.9rem !important;
    }

    .admin-topbar-inner {
        min-height: 4rem;
    }
}

@media (max-width: 48rem) {
    .admin-topbar-title {
        font-size: 1.25rem;
    }

    .admin-topbar-subtitle {
        font-size: 0.82rem;
    }

    .admin-panel {
        padding: 1rem;
    }

    .admin-section-title {
        font-size: 1.65rem !important;
    }

    .admin-search-actions .btn {
        width: 100%;
    }

    .admin-actions {
        justify-content: flex-start;
    }

    .admin-setting-primary,
    .admin-setting-status {
        align-items: flex-start;
    }
}
