@import url("/style.css");

*, *::before, *::after { box-sizing: border-box; }

:root {
  --border: #d6e4ed;
  --muted: #64748b;
  --error: #dc2626;
  --success: #16a34a;
  --radius: 10px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: #eef3f7; min-height: 100vh; line-height: 1.6; }

.beheer-loading { visibility: hidden; }

/* ── LOGIN-KAART (gelicht uit de oude clubbezoek-pagina's) ── */
.login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  padding: 24px;
}
.login-card {
  background: var(--white); border-radius: 16px; padding: 48px 40px;
  width: 100%; max-width: 420px; text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.login-card img { height: 56px; margin: 0 auto 24px; }
.login-card h1 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.login-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%; padding: 13px 16px; border: 2px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem;
  margin-bottom: 12px; outline: none; transition: border-color 0.2s;
}
.login-card input:focus { border-color: var(--brand); }
.login-card__links { margin-top: 16px; font-size: 0.85rem; }
.login-card__links a { color: var(--brand); text-decoration: none; }
.login-card__links a:hover { text-decoration: underline; }
.login-error { color: var(--error); font-size: 0.85rem; margin-top: 8px; }
.login-success { color: var(--success); font-size: 0.85rem; margin-top: 8px; }

/* ── APP-SHELL / HEADER (twee rijen: logo+gebruiker, dan het menu) ── */
.beheer-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.beheer-header__top { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 20px; }
.beheer-header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; color: var(--brand); white-space: nowrap; }
.beheer-header__brand img { height: 28px; }
.beheer-header__user { display: flex; align-items: center; gap: 10px; white-space: nowrap; margin-left: auto; }
.beheer-header__name { font-size: 0.85rem; font-weight: 600; }
.beheer-header__role { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; background: var(--brand-light); color: var(--brand); }
.beheer-header__role--admin { background: #fde68a; color: #92400e; }
.beheer-header__signout { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.beheer-header__signout:hover { border-color: var(--error); color: var(--error); }
.beheer-header__hamburger { display: none; }

.beheer-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: 0 24px 12px;
  border-top: 1px solid #f0f0f0;
}
.beheer-nav__link { padding: 8px 12px; margin-top: 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.beheer-nav__link:hover { color: var(--brand); background: var(--brand-light); }
.beheer-nav__link--active { color: var(--brand); background: var(--brand-light); }

@media (max-width: 720px) {
  .beheer-header__name { display: none; }
  .beheer-header__hamburger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; margin-left: 12px; }
  .beheer-header__hamburger span { display: block; height: 2px; background: var(--dark); border-radius: 2px; }
  .beheer-header__user { margin-left: auto; }
  .beheer-nav { display: none; flex-direction: column; border-top: none; padding-top: 4px; }
  .beheer-nav.is-open { display: flex; }
  .beheer-nav__link { margin-top: 0; padding: 10px 8px; }
}

/* ── FORMULIERLABELS: geen hoofdletters in het beheerdeel (i.t.t. de publieke site) ── */
.form__row label,
.beheer-main label { text-transform: none; letter-spacing: normal; font-size: 0.85rem; }

/* ── PAGINA-INDELING ── */
.beheer-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
.beheer-intro { margin-bottom: 28px; }
.beheer-intro h1 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.beheer-intro p { color: var(--muted); font-size: 0.92rem; max-width: 640px; }

.beheer-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.beheer-tile { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-decoration: none; color: var(--dark); transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; display: block; }
.beheer-tile:hover { border-color: var(--brand); box-shadow: 0 10px 30px rgba(30, 92, 126, 0.12); transform: translateY(-2px); }
.beheer-tile__icon { font-size: 1.8rem; margin-bottom: 10px; }
.beheer-tile__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.beheer-tile__desc { font-size: 0.85rem; color: var(--muted); }

.beheer-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 20px; }

.beheer-alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.85rem; margin-bottom: 20px; }
.beheer-alert--info { background: var(--brand-light); color: var(--brand-dark); }
.beheer-alert--error { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.beheer-alert--success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }

.beheer-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.beheer-table th { text-align: left; padding: 10px 12px; background: var(--brand-light); color: var(--brand); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.beheer-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.beheer-table .badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; background: var(--brand-light); color: var(--brand); }
.beheer-table .badge--inactive { background: #fef2f2; color: var(--error); }

.beheer-btn-link { background: none; border: none; color: var(--brand); font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 0; }
.beheer-btn-link:hover { text-decoration: underline; }
.beheer-btn-link--danger { color: var(--error); }

.btn--sm { padding: 9px 18px; font-size: 0.8rem; }

/* ── CLUB-CHECKBOXES (uitnodigen + clubs bewerken): .form__row input maakt er anders brede lege vakken van ── */
#inviteClubs input[type="checkbox"],
[data-clubs-cell] input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: auto;
  padding: 0;
  border: revert;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
