/* ── BBK Admin Stijlen ── */

.login-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(160deg, var(--donker) 0%, #2a0505 60%, var(--rood-donker) 100%);
}

.login-kaart {
  background: var(--wit);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}

.login-icoon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.login-kaart h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--donker);
  margin-bottom: 0.5rem;
}

.login-kaart p {
  color: var(--grijs);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── ADMIN TABEL ── */
.admin-tabel-wrapper {
  background: var(--wit);
  border-radius: 12px;
  box-shadow: var(--kaart-schaduw);
  overflow: hidden;
  border: 1px solid var(--rand);
}

.admin-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-tabel thead {
  background: linear-gradient(135deg, var(--donker), var(--donker-mid));
  color: var(--wit);
}

.admin-tabel th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.admin-tabel td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rand);
  vertical-align: middle;
}

.admin-tabel tr:last-child td { border-bottom: none; }

.admin-tabel tr:hover td { background: rgba(204,21,21,0.02); }

.admin-tabel-foto {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--achtergrond);
}

.foto-placeholder-klein {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  background: var(--achtergrond);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge.actief { background: rgba(34,197,94,0.12); color: #15803d; }
.badge.inactief { background: rgba(239,68,68,0.12); color: #b91c1c; }
.badge.geannuleerd { background: rgba(107,114,128,0.12); color: #374151; }

.actie-knoppen {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.actie-btn {
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--rand);
  border-radius: 6px;
  background: var(--wit);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.actie-btn:hover { background: var(--achtergrond); }
.actie-btn.rood { border-color: var(--rood); color: var(--rood); }
.actie-btn.rood:hover { background: var(--rood); color: var(--wit); }
.actie-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.actie-btn:disabled:hover { background: var(--wit); }
.actie-btn.rood:disabled:hover { background: var(--wit); color: var(--rood); }

/* ── FOTO UPLOAD ── */
.foto-upload-zone {
  border: 2px dashed var(--rand);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  cursor: pointer;
  background: var(--achtergrond);
}

.foto-upload-zone:hover {
  border-color: var(--rood);
  background: rgba(204,21,21,0.02);
}

.foto-upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-placeholder {
  pointer-events: none;
}

.upload-placeholder p {
  margin: 0.25rem 0;
  color: var(--grijs);
  font-size: 0.9rem;
}

#foto-preview-container img {
  max-height: 180px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
  pointer-events: none;
}

/* ── RESERVERINGEN OVERZICHT ── */
.reservering-rij-actief td { }
.reservering-rij-geannuleerd td { opacity: 0.55; }

/* Afgelopen reserveringen (geschiedenis): gedimd, onder de komende */
.reservering-afgelopen td { opacity: 0.6; background: #fafafa; }

/* Scheidingsregel boven het geschiedenis-blok */
.tabel-scheiding td {
  background: #f1f1f3;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grijs);
  padding: 0.6rem 1rem;
}
.tabel-scheiding:hover td { background: #f1f1f3; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .admin-tabel th:nth-child(4),
  .admin-tabel td:nth-child(4),
  .admin-tabel th:nth-child(5),
  .admin-tabel td:nth-child(5) { display: none; }
}
