/* =========================================================================
   Familiefotomagazine — site.css
   Vertaling van het Claude Design-ontwerp (shadcn/Tailwind) naar gewone CSS.
   Kleuren en maten komen 1-op-1 uit theme.css / App.tsx van het ontwerp.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  --background: #F1F5F9;
  --foreground: #0F172A;
  --card: #FFFFFF;
  --primary: #2563EB;
  --primary-foreground: #FFFFFF;
  --secondary: #E2E8F0;
  --secondary-foreground: #0F172A;
  --muted: #F1F5F9;
  --muted-foreground: #64748B;
  --accent: #DBEAFE;
  --accent-foreground: #1E40AF;
  --destructive: #DC2626;
  --destructive-foreground: #FFFFFF;
  --border: rgba(15, 23, 42, 0.09);
  --input-background: #F8FAFC;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Donkere navigatie (sidebar / mobiele balk) — Tailwind slate-schaal */
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  background: var(--background);
  color: var(--foreground);
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}
h1 { font-size: 1.25rem; }   /* text-xl */
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
h4 { font-size: 0.9375rem; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 6px;
}

/* ---- Formulier-elementen ------------------------------------------------ */

.veld { margin-bottom: 1rem; position: relative; }

.input,
input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--input-background);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(100, 116, 139, 0.5); /* muted-foreground/50 */
}
.input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea { resize: none; }

.help-tekst { font-size: 0.75rem; color: var(--muted-foreground); display: block; margin-top: 4px; }

.errorlist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  color: var(--destructive);
  font-size: 0.8125rem;
}

/* ---- Knoppen ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all .15s;
}
.btn-primary {
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: #1D4ED8; }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }

.btn-secundair {
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  background: transparent;
}
.btn-secundair:hover { color: var(--primary); border-color: rgba(37,99,235,.4); }

.btn-icon {
  padding: 6px;
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
}
.btn-icon:hover { color: var(--destructive); background: rgba(220,38,38,.08); }

/* ---- Kaarten -------------------------------------------------------------*/

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

.banner-succes {
  background: var(--accent);
  color: var(--accent-foreground);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.banner-succes .vinkje {
  width: 20px; height: 20px; border-radius: 999px;
  background: rgba(37,99,235,.2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}

.banner-fout {
  background: rgba(220,38,38,.08);
  color: var(--destructive);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* ---- Layout: app-shell (sidebar + inhoud) -------------------------------*/

.app-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--background);
}

.layout-hoofd {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Desktop-sidebar */
.sidebar {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  background: var(--slate-900);
  color: var(--slate-300);
  width: 208px;
  transition: width .2s ease-in-out;
}
.sidebar.ingeklapt { width: 56px; }

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  border-bottom: 1px solid rgba(51,65,85,.6);
  padding: 0 12px;
}
.sidebar.ingeklapt .sidebar-top { justify-content: center; }
.sidebar-logo { font-size: .875rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; }

.sidebar-toggle {
  padding: 6px; border-radius: var(--radius-lg); color: var(--slate-400);
}
.sidebar-toggle:hover { color: #fff; background: rgba(51,65,85,.6); }

.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }

.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: var(--radius-lg);
  font-size: .875rem; color: var(--slate-300); white-space: nowrap; overflow: hidden;
}
.sidebar.ingeklapt .sidebar-link { justify-content: center; }
.sidebar-link:hover { color: #fff; background: rgba(51,65,85,.6); }
.sidebar-link.actief { background: var(--primary); color: #fff; font-weight: 500; }

.sidebar-kring {
  position: relative;
  padding: 8px; border-bottom: 1px solid rgba(51,65,85,.6);
}
.sidebar.ingeklapt .sidebar-kring { display: none; }

.sidebar-kring-knop {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: var(--radius-lg);
  font-size: .875rem; color: var(--slate-300);
}
.sidebar-kring-knop:hover { color: #fff; background: rgba(51,65,85,.6); }

.sidebar-kring-badge {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.8); color: #fff;
}

.sidebar-kring-tekst {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.kring-wisselaar-pijl { flex-shrink: 0; color: var(--slate-400); transition: transform .15s ease-in-out; }
.kring-wisselaar-knop[aria-expanded="true"] .kring-wisselaar-pijl { transform: rotate(180deg); }

/* Dropdown-paneel */
.kring-wisselaar-dropdown {
  position: absolute; z-index: 50; left: 8px; right: 8px; top: 100%; margin-top: 4px;
  background: var(--slate-800); border: 1px solid var(--slate-700); border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px rgba(0,0,0,.35); padding: 4px 0;
}
.kring-wisselaar-kopje {
  font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--slate-500); padding: 6px 12px; margin: 0;
}

.kring-wisselaar-optie {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 8px 10px; font-size: .875rem; color: var(--slate-300);
}
.kring-wisselaar-optie:hover { color: #fff; background: rgba(51,65,85,.6); }
.kring-wisselaar-optie-icoon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: var(--radius-sm);
  background: var(--slate-600); color: var(--slate-300);
}
.kring-wisselaar-optie-naam { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kring-wisselaar-vinkje { flex-shrink: 0; color: var(--primary); }

.kring-wisselaar-scheiding { border-top: 1px solid var(--slate-700); margin-top: 4px; padding-top: 4px; }
.kring-wisselaar-nieuw-knop {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; font-size: .875rem; color: var(--slate-400);
}
.kring-wisselaar-nieuw-knop:hover { color: #fff; background: rgba(51,65,85,.6); }

.mobiel-menu .sidebar-kring { border-bottom: 1px solid var(--slate-700); margin-bottom: 4px; padding: 0; }
.mobiel-menu .kring-wisselaar-dropdown { position: static; margin-top: 4px; box-shadow: none; }

.sidebar-onder {
  border-top: 1px solid rgba(51,65,85,.6);
  padding: 12px 8px;
}
.sidebar-gebruiker { padding: 6px 10px 8px; }
.sidebar-gebruiker p { font-size: .75rem; color: var(--slate-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-gebruiker p:last-child { color: var(--slate-500); }

/* Mobiele balk */
.mobiel-balk {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 16px; background: var(--slate-900); color: #fff; flex-shrink: 0;
}
.mobiel-balk .sidebar-logo { color: #fff; }
.mobiel-menu-knop { padding: 6px; border-radius: var(--radius-lg); color: var(--slate-300); }
.mobiel-menu-knop:hover { color: #fff; background: rgba(51,65,85,.6); }

.mobiel-menu {
  background: var(--slate-800); border-bottom: 1px solid var(--slate-700);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 4px;
}
.mobiel-menu .sidebar-link { padding: 10px 12px; }
.mobiel-menu-onder { border-top: 1px solid var(--slate-700); margin-top: 8px; padding-top: 8px; }
.mobiel-menu-onder p { font-size: .75rem; color: var(--slate-500); padding: 0 12px 6px; }

@media (min-width: 640px) {
  .sidebar { display: flex; }
  .mobiel-balk, .mobiel-menu { display: none; }
}

.hoofdinhoud { flex: 1; overflow-y: auto; }
.pagina { max-width: 36rem; margin: 0 auto; padding: 1.5rem 1rem; }
.pagina-kop { margin-bottom: 1.25rem; }
.pagina-kop p { font-size: .875rem; color: var(--muted-foreground); margin-top: 2px; }

/* ---- Login-pagina ---------------------------------------------------------*/

.login-scherm {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: var(--background);
}
.login-kaart-wrap { width: 100%; max-width: 24rem; }
.login-logo {
  width: 48px; height: 48px; border-radius: var(--radius-xl);
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.login-kop { text-align: center; margin-bottom: 2rem; }
.login-kop h1 { font-size: 1.5rem; margin-top: 1rem; }
.login-kop p { font-size: .875rem; color: var(--muted-foreground); margin-top: 4px; }
.login-kaart { padding: 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.login-voetnoot { text-align: center; font-size: .75rem; color: var(--muted-foreground); margin-top: 1rem; }

/* ---- Uploadpagina --------------------------------------------------------*/

.modus-schakelaar {
  display: flex; gap: 4px; padding: 4px; background: var(--secondary);
  border-radius: var(--radius-lg); margin-bottom: 1.25rem;
}
.modus-schakelaar button {
  flex: 1; padding: 8px 12px; border-radius: var(--radius-md);
  font-size: .875rem; color: var(--muted-foreground); text-align: center;
}
.modus-schakelaar button.actief { background: var(--card); color: var(--foreground); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.05); }

.twee-koloms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.veld-label-icoon { display: flex; align-items: center; gap: 6px; }

.mensen-input-rij { display: flex; gap: 8px; }
.mensen-input-rij .input { flex: 1; }
.mensen-lijst { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mensen-lijst .chip button { color: inherit; opacity: .7; }
.mensen-lijst .chip button:hover { opacity: 1; }

.dropzone {
  position: relative; border: 2px dashed var(--border); border-radius: var(--radius-xl);
  cursor: pointer; transition: all .15s; text-align: center;
}
.dropzone:hover { border-color: rgba(37,99,235,.4); background: rgba(241,245,249,.5); }
.dropzone.dragover { border-color: var(--primary); background: rgba(37,99,235,.05); }
.dropzone .dropzone-leeg { padding: 2.5rem 1rem; }
.dropzone .dropzone-leeg p { font-size: .875rem; color: rgba(15,23,42,.7); }
.dropzone .dropzone-leeg .onderschrift { font-size: .75rem; color: var(--muted-foreground); margin-top: 4px; }
.dropzone .onderstreept { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.dropzone input[type="file"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.voorbeeld-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.voorbeeld-thumb {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--muted);
}
.voorbeeld-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.voorbeeld-thumb .verwijder-thumb {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 999px; background: rgba(0,0,0,.6); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.voorbeeld-thumb-toevoegen {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted-foreground);
}

/* Locatiezoeker (Photon) */
.locatie-suggesties {
  list-style: none; margin: 2px 0 0; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  max-height: 160px; overflow-y: auto; position: absolute;
  background: var(--card); width: 100%; z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.locatie-suggesties li { padding: 8px 10px; cursor: pointer; font-size: .875rem; }
.locatie-suggesties li:hover { background: var(--accent); }
.locatie-status { font-size: .75rem; margin-top: 4px; }
.locatie-status.ok { color: #16a34a; }
.locatie-status.nodig { color: var(--destructive); }

/* ---- Mijn foto's ----------------------------------------------------------*/

.groep-kaart { margin-bottom: 12px; }
.groep-koptekst {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid rgba(15,23,42,.06);
}
.groep-koptekst-tekst p { font-size: .875rem; }
.groep-titel { font-weight: 500; color: var(--foreground); }
.groep-beschrijving { font-size: .75rem; color: var(--muted-foreground); margin-top: 2px; }
.groep-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.groep-meta span { font-size: .75rem; color: var(--muted-foreground); display: inline-flex; align-items: center; gap: 4px; }
.groep-personen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.groep-acties { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.groep-acties button.tekst-knop { font-size: .75rem; color: var(--muted-foreground); padding: 4px 8px; border-radius: var(--radius-md); }
.groep-acties button.tekst-knop:hover { color: var(--foreground); background: var(--muted); }
.groep-foto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.groep-vergrendeld { opacity: .55; }
.badge-vergrendeld {
  font-size: .6875rem; color: var(--muted-foreground); background: var(--muted);
  padding: 3px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
}

.lege-staat { text-align: center; padding: 4rem 0; color: var(--muted-foreground); }
.lege-staat p:first-of-type { font-size: .875rem; margin-top: 12px; }
.lege-staat p:last-of-type { font-size: .75rem; margin-top: 4px; opacity: .7; }

/* ---- Archief ---------------------------------------------------------------*/

.archief-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 480px) { .archief-grid { grid-template-columns: repeat(3, 1fr); } }
.archief-kaart { transition: box-shadow .2s; }
.archief-kaart:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.archief-omslag { aspect-ratio: 3/4; background: var(--muted); overflow: hidden; }
.archief-omslag img { width: 100%; height: 100%; object-fit: cover; }
.archief-info { padding: 10px 12px; }
.archief-info .maand { font-size: .875rem; font-weight: 500; }
.archief-info .aantal { font-size: .75rem; color: var(--muted-foreground); margin-top: 2px; }
.archief-download {
  margin-top: 8px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-md); border: 1px solid var(--border);
  font-size: .75rem; color: var(--muted-foreground);
}
.archief-download:hover { color: var(--primary); border-color: rgba(37,99,235,.4); }

/* ---- Kringbeheer: instellingen & gevarenzone ------------------------------*/

.radio-veld { display: flex; align-items: flex-start; gap: 8px; margin-bottom: .75rem; }
.radio-veld input[type="radio"] { margin-top: 3px; }
.radio-veld label { font-size: .875rem; color: var(--foreground); }

.banner-waarschuwing {
  background: rgba(217, 119, 6, .08);
  color: #92400E;
  border: 1px solid rgba(217, 119, 6, .25);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: .875rem;
  margin-bottom: 1rem;
}

.btn-destructief {
  border: 1px solid rgba(220, 38, 38, .3);
  color: var(--destructive);
  background: transparent;
}
.btn-destructief:hover:not(:disabled) { background: rgba(220,38,38,.08); }
.btn-destructief:disabled { opacity: .4; cursor: not-allowed; }

.kring-gevarenzone {
  border: 1px solid rgba(220, 38, 38, .3);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
}
.kring-gevarenzone h2 { color: var(--destructive); margin-bottom: .25rem; }
.kring-gevarenzone p { font-size: .8125rem; color: var(--muted-foreground); margin-bottom: .75rem; }

/* ---- Geen toegang ----------------------------------------------------------*/

.geen-toegang-scherm { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.geen-toegang-kaart { max-width: 24rem; padding: 2rem; text-align: center; }
.geen-toegang-icoon {
  width: 48px; height: 48px; border-radius: 999px; background: rgba(220,38,38,.08); color: var(--destructive);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.geen-toegang-kaart p { font-size: .875rem; color: var(--muted-foreground); margin-top: 8px; }