/**
 * Event Tool — Cursistenportaal (BeachBreak-stijl)
 */

.et-portal {
    --bb-green: #1eb484;
    --bb-green-dark: #17926a;
    --bb-ink: #1f2a37;
    --bb-muted: #6b7280;
    --bb-bg: #f4f5f7;
    --bb-border: #e5e7eb;

    max-width: 1100px;
    margin: 0 auto;
    color: var(--bb-ink);
    font-size: 15px;
}

/* Topbar */
.et-portal__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bb-green);
    color: #fff;
    padding: 18px 24px;
    border-radius: 12px 12px 0 0;
}

.et-portal__brand {
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 18px;
}

.et-portal__account a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.95;
}

.et-portal__account a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Body layout */
.et-portal__body {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--bb-bg);
    border: 1px solid var(--bb-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    min-height: 420px;
}

.et-portal__nav {
    background: #fff;
    border-right: 1px solid var(--bb-border);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.et-portal__navitem {
    display: block;
    padding: 12px 22px;
    color: var(--bb-ink);
    text-decoration: none;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.et-portal__navitem:hover {
    background: #f9fafb;
}

.et-portal__navitem.is-active {
    color: var(--bb-green-dark);
    border-left-color: var(--bb-green);
    background: #f0fdf9;
}

.et-portal__main {
    padding: 26px 30px;
}

.et-portal__welcome {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 800;
}

/* Onbetaald-banner */
.et-portal__alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--bb-border);
    border-left: 4px solid var(--bb-green);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 22px;
}

.et-portal__alert-total {
    display: inline-block;
    margin-left: 10px;
    color: var(--bb-muted);
    font-weight: 600;
}

.et-portal__btn {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    background: var(--bb-green);
    color: #fff;
}

.et-portal__btn:hover {
    background: var(--bb-green-dark);
}

.et-portal__btn--pay:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Boekingen */
.et-portal__bookings {
    display: grid;
    gap: 14px;
}

.et-portal__booking {
    background: #fff;
    border: 1px solid var(--bb-border);
    border-radius: 10px;
    padding: 16px 20px;
}

.et-portal__booking.is-cancelled {
    opacity: 0.6;
}

.et-portal__booking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.et-portal__booking-num {
    color: var(--bb-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.et-portal__booking-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
}

.et-portal__booking-meta {
    margin: 0;
    color: var(--bb-muted);
    font-size: 14px;
}

/* Badges */
.et-portal__badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.et-portal__badge--paid    { background: #dcfce7; color: #15803d; }
.et-portal__badge--partial { background: #fef3c7; color: #b45309; }
.et-portal__badge--unpaid  { background: #fee2e2; color: #b91c1c; }
.et-portal__badge--refunded{ background: #e5e7eb; color: #4b5563; }

/* Lege staat */
.et-portal__empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    color: var(--bb-muted);
}

/* Login — vult het scherm, want dit is de voordeur van het portaal */
.et-portal--login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 16px;
}

.et-portal__login-card {
    background: #fff;
    border: 1px solid var(--bb-border);
    border-top: 4px solid var(--bb-green);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 32px 34px 28px;
    max-width: 400px;
    width: 100%;
}

.et-portal__login-brand {
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 15px;
    color: var(--bb-green);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.et-portal__login-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    color: var(--bb-ink);
}

.et-portal__login-intro {
    margin: 0 0 22px;
    color: var(--bb-muted);
    font-size: 14px;
}

/* wp_login_form() levert kale velden; hier krijgen ze de vorm van de rest. */
.et-portal__login-card .login-username,
.et-portal__login-card .login-password {
    margin-bottom: 14px;
}

.et-portal__login-card label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.et-portal__login-card input[type="text"],
.et-portal__login-card input[type="email"],
.et-portal__login-card input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--bb-border);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

.et-portal__login-card input[type="text"]:focus,
.et-portal__login-card input[type="email"]:focus,
.et-portal__login-card input[type="password"]:focus {
    outline: none;
    border-color: var(--bb-green);
    box-shadow: 0 0 0 3px rgba(30, 180, 132, 0.15);
}

.et-portal__login-card .login-remember {
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--bb-muted);
}

.et-portal__login-card .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.et-portal__login-card .login-remember input {
    margin: 0;
}

.et-portal__login-card .login-submit {
    margin: 0;
}

.et-portal__login-card .button,
.et-portal__login-card input[type="submit"] {
    width: 100%;
    background: var(--bb-green);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.et-portal__login-card .button:hover,
.et-portal__login-card input[type="submit"]:hover {
    background: var(--bb-green-dark);
}

.et-portal__login-foot {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
}

.et-portal__login-foot a {
    color: var(--bb-muted);
}

@media (max-width: 720px) {
    .et-portal__body {
        grid-template-columns: 1fr;
    }
    .et-portal__nav {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--bb-border);
    }
    .et-portal__navitem {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    .et-portal__navitem.is-active {
        border-left: none;
        border-bottom-color: var(--bb-green);
    }
}

/* ---- Historie tabel ---- */
.et-portal__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--bb-border);
    border-radius: 10px;
    overflow: hidden;
}

.et-portal__table th,
.et-portal__table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.et-portal__table th {
    background: #f9fafb;
    font-size: 13px;
    color: var(--bb-muted);
}

.et-portal__table tr:last-child td {
    border-bottom: none;
}

.et-portal__table tr.is-cancelled {
    opacity: 0.55;
    text-decoration: line-through;
}

/* ---- Vooruitgang ---- */
.et-progress {
    background: #fff;
    border: 1px solid var(--bb-border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.et-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.et-progress__title {
    font-weight: 800;
    font-size: 17px;
}

.et-progress__count {
    color: var(--bb-muted);
    font-weight: 600;
}

.et-progress__bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.et-progress__fill {
    height: 100%;
    background: var(--bb-green);
}

.et-progress__levels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.et-level {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--bb-border);
    border-radius: 8px;
    background: #fafafa;
}

.et-level.is-done {
    background: #f0fdf9;
    border-color: #bbf7e3;
}

.et-level__badge {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: #e5e7eb;
    color: var(--bb-muted);
}

.et-level.is-done .et-level__badge {
    background: var(--bb-green);
    color: #fff;
}

.et-level__label {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.et-level__label small {
    display: block;
    font-weight: 500;
    color: var(--bb-muted);
}

/* ---- Profiel formulier ---- */
.et-portal__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    background: #fff;
    border: 1px solid var(--bb-border);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 16px;
}

.et-portal__form-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 600;
    font-size: 14px;
}

.et-portal__form-grid input,
.et-portal__form-grid select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--bb-border);
    border-radius: 6px;
}

.et-portal__form-grid input:disabled {
    background: #f3f4f6;
    color: var(--bb-muted);
}

.et-portal__check {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
}

.et-portal__check input {
    width: auto !important;
}

/* ---- Notices ---- */
.et-portal__notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.et-portal__notice--ok {
    background: #dcfce7;
    color: #15803d;
}

.et-portal__notice--err {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 720px) {
    .et-portal__form-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Betalen ---- */
.et-portal__pay-form { margin: 0; }

.et-portal__pay-form--inline {
    margin-top: 12px;
}

.et-portal__btn--small {
    padding: 7px 14px;
    font-size: 13px;
}

.et-portal__paynote {
    margin: -10px 0 22px;
    color: var(--bb-muted);
    font-size: 13px;
}

/* ---- Nieuwe boeking knop + dropdown ---- */
.et-portal__mainhead { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.et-portal__btn--dark { background:#1f2a37; color:#fff; }
.et-portal__btn--dark:hover { background:#0f1620; }
.et-portal__newbooking { position:relative; }
.et-portal__newbooking > summary { list-style:none; cursor:pointer; display:inline-block; }
.et-portal__newbooking > summary::-webkit-details-marker { display:none; }
.et-portal__newbooking-list {
    position:absolute; right:0; top:calc(100% + 6px); z-index:20; min-width:260px;
    background:#fff; border:1px solid var(--bb-border); border-radius:10px;
    box-shadow:0 8px 24px rgba(15,23,42,.12); padding:6px; max-height:360px; overflow:auto;
}
.et-portal__newbooking-list a { display:block; padding:9px 12px; border-radius:7px; text-decoration:none; color:#15803d; font-weight:600; }
.et-portal__newbooking-list a:hover { background:#f0fdf9; }

.et-portal__navitem--admin { margin-top:auto; color:var(--bb-muted); border-top:1px solid var(--bb-border); }

/* ---- Boekformulier ---- */
.et-portal__back { display:inline-block; margin-bottom:8px; color:var(--bb-muted); text-decoration:none; font-weight:600; }
.et-portal__book-title { margin:0 0 16px; font-size:22px; color:var(--bb-ink); }
.et-portal__participants { margin-bottom:16px; }
.et-portal__participants-title { font-weight:700; font-size:13px; color:#475569; margin:0 0 8px; }
.et-portal__participant-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:8px; }
.et-portal__book-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.et-portal__book-total span { color:var(--bb-muted); font-size:13px; display:block; }
.et-portal__book-total strong { font-size:22px; color:var(--bb-green-dark); }
