/* ==========================================================================
   J.C. GOEROE - BEHEERPANEEL (CMS) STYLESHEET
   Dark Industrial Lounge & Festival Neon Theme
   ========================================================================== */

:root {
  /* Dark Mode Kleurschema voor Native Browser Controls */
  color-scheme: dark;

  /* Safe Area Insets voor WebApp / PWA / iPhone Notches */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --bg-body: #0a0d14;
  --bg-sidebar: #0e131d;
  --bg-surface: #121824;
  --bg-card: #161e2e;
  --bg-card-hover: #1c263a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(255, 159, 28, 0.35);

  --accent-amber: #ff9f1c;
  --accent-amber-light: #ffb703;
  --accent-orange: #ff7b00;
  --accent-teal: #2ec4b6;
  --accent-green: #1db954;
  --accent-red: #e71d36;
  --accent-blue: #3b82f6;

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(255, 159, 28, 0.2);
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

.admin-body {
  background-color: var(--bg-body);
  color: var(--text-secondary);
  font-family: var(--font-body);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BUTTON SYSTEM (HIGH CONTRAST & MAXIMUM READABILITY)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700 !important;
  font-size: 0.92rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

/* Primary Button: Amber Glow with Jet Black Bold Text */
.btn-primary {
  background: linear-gradient(135deg, #ff9f1c 0%, #ff7b00 100%) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(255, 159, 28, 0.4) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffaa33 0%, #ff8c1a 100%) !important;
  color: #000000 !important;
  box-shadow: 0 6px 20px rgba(255, 159, 28, 0.6) !important;
  transform: translateY(-2px);
}

/* Outline Button: Dark Glass with High-Contrast White Text */
.btn-outline {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Admin Outline: Vibrant Amber Action */
.btn-admin {
  background: rgba(255, 159, 28, 0.14) !important;
  border: 1.5px solid #ff9f1c !important;
  color: #ffbe0b !important;
  font-weight: 700 !important;
}

.btn-admin:hover {
  background: #ff9f1c !important;
  color: #000000 !important;
  transform: translateY(-2px);
}

/* Spotify Button */
.btn-spotify {
  background: #1db954 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.35);
}

.btn-spotify:hover {
  background: #1ed760 !important;
  color: #000000 !important;
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.55);
  transform: translateY(-2px);
}

/* Calendar Add Shift Button (CLEAR & PROMINENT) */
.btn-add-shift-cell {
  background: rgba(255, 159, 28, 0.14) !important;
  border: 1.5px solid rgba(255, 159, 28, 0.5) !important;
  color: #ffbe0b !important;
  font-family: var(--font-heading);
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: all var(--transition-fast);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-decoration: none;
}

.btn-add-shift-cell:hover {
  background: #ff9f1c !important;
  color: #000000 !important;
  border-color: #ff9f1c !important;
  box-shadow: 0 0 12px rgba(255, 159, 28, 0.5);
  transform: translateY(-1px);
}

/* Modal Time Preset Buttons */
.btn-time-preset {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-time-preset:hover, .btn-time-preset.active {
  background: #ff9f1c !important;
  color: #000000 !important;
  border-color: #ff9f1c !important;
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.4);
}

/* Shift Pill in Calendar */
.shift-pill {
  background: #0c2621 !important;
  border: 1.5px solid #2ec4b6 !important;
  color: #ffffff !important;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  line-height: 1.25;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.shift-pill.is-own {
  background: #2b1d0a !important;
  border-color: #ff9f1c !important;
  color: #ffffff !important;
}

.shift-pill strong {
  color: #2ec4b6;
  font-family: var(--font-heading);
  font-weight: 800;
}

.shift-pill.is-own strong {
  color: #ffbe0b;
}

.shift-del-btn {
  background: rgba(231, 29, 54, 0.35) !important;
  border: 1px solid #e71d36 !important;
  color: #ffffff !important;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  line-height: 1;
}

.shift-del-btn:hover {
  background: #e71d36 !important;
  color: #ffffff !important;
  transform: scale(1.18);
}

/* Action / Icon Buttons */
.action-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-icon.danger {
  border-color: rgba(231, 29, 54, 0.45);
  color: #ff6b6b;
}

.btn-icon.danger:hover {
  background: #e71d36;
  border-color: #e71d36;
  color: #ffffff;
}

/* ==========================================================================
   AUTH / LOGIN PAGE
   ========================================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 30%, rgba(255, 159, 28, 0.12) 0%, #080b10 70%);
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.auth-logo {
  width: 130px;
  height: auto;
  margin: 0 auto 1.5rem;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* ==========================================================================
   ADMIN LAYOUT & SIDEBAR
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 275px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 1.6rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sidebar-logo {
  height: 42px;
  width: auto;
}

.sidebar-nav {
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-grow: 1;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  background: transparent;
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-item-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-item-btn.active {
  background: rgba(255, 159, 28, 0.14);
  color: var(--accent-amber-light);
  border-color: rgba(255, 159, 28, 0.35);
  border-left: 3px solid var(--accent-amber);
  font-weight: 700;
}

.sidebar-footer {
  padding: 1.4rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   ADMIN MAIN & TOPBAR
   ========================================================================== */
.admin-main {
  flex-grow: 1;
  padding: 2.2rem clamp(1.4rem, 2.2vw, 2.8rem);
  overflow-y: auto;
  max-width: 1400px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-page-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.admin-page-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.4;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

@media (max-width: 540px) {
  .admin-topbar-actions {
    flex-wrap: wrap;
    width: 100%;
  }
}

/* ==========================================================================
   STATS CARDS
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 159, 28, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon-wrap.teal {
  background: rgba(46, 196, 182, 0.15);
  color: var(--accent-teal);
}

.stat-icon-wrap.green {
  background: rgba(29, 185, 84, 0.15);
  color: var(--accent-green);
}

.stat-info-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-info-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ==========================================================================
   PANEL BOX / CONTENT CONTAINER
   ========================================================================== */
.panel-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

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

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

/* ==========================================================================
   BARPLANNING 6-WEKEN KALENDER
   ========================================================================== */
.bar-calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem clamp(1rem, 1.4vw, 1.5rem);
  margin-bottom: 2.2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.calendar-scroll-hint {
  display: none;
  font-size: 0.8rem;
  color: var(--accent-amber-light);
  background: rgba(255, 159, 28, 0.12);
  border: 1px solid rgba(255, 159, 28, 0.3);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  gap: clamp(0.35rem, 0.5vw, 0.6rem);
  box-sizing: border-box;
}

.calendar-header-day {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.65rem 0.35rem;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  min-height: 135px;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}

.calendar-cell:hover:not(.is-disabled) {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.calendar-cell.is-today {
  border-color: var(--accent-amber);
  background: rgba(255, 159, 28, 0.06);
  box-shadow: inset 0 0 15px rgba(255, 159, 28, 0.12);
}

.calendar-cell.is-weekend {
  background: rgba(255, 255, 255, 0.035);
}

.calendar-cell.has-shifts {
  border-color: rgba(46, 196, 182, 0.45);
  background: rgba(46, 196, 182, 0.03);
}

.calendar-cell.is-disabled {
  opacity: 0.35;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.calendar-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.calendar-date-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
}

.calendar-cell.is-today .calendar-date-num {
  color: var(--accent-amber);
}

.calendar-today-badge {
  font-size: 0.62rem;
  font-weight: 800;
  background: var(--accent-amber);
  color: #000000;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-shifts-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table, .admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th, .admin-table th {
  padding: 0.95rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td, .admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tr:hover td, .admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.badge-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-published {
  background: rgba(46, 196, 182, 0.15);
  color: var(--accent-teal);
  border: 1px solid rgba(46, 196, 182, 0.35);
}

.badge-draft {
  background: rgba(255, 159, 28, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 159, 28, 0.35);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.role-badge.role-site-admin {
  background: rgba(255, 215, 0, 0.16);
  border: 1px solid rgba(255, 215, 0, 0.48);
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.12);
}

.role-badge.role-admin {
  background: rgba(255, 159, 28, 0.15);
  border: 1px solid rgba(255, 159, 28, 0.35);
  color: var(--accent-amber);
}

.role-badge.role-editor {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.role-badge.role-volunteer {
  background: rgba(46, 196, 182, 0.15);
  border: 1px solid rgba(46, 196, 182, 0.35);
  color: var(--accent-teal);
}

.user-self-tag {
  font-size: 0.72rem;
  color: var(--accent-amber);
  background: rgba(255, 159, 28, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 800;
}

/* ==========================================================================
   FORMS & CONTROLS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #0f1420;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.2);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.admin-modal-content {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  text-align: left;
  margin: auto;
}

.admin-modal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

/* Gallery Picker Modal */
.gallery-picker-modal-content {
  max-width: 950px;
  width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
}

.picker-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  grid-auto-rows: 100px;
  gap: 0.75rem;
  overflow-y: auto;
  max-height: 58vh;
  padding: 0.5rem 0.2rem;
}

.picker-thumb-card {
  position: relative;
  width: 100%;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #0f131f;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.picker-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.picker-thumb-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 159, 28, 0.35);
  z-index: 5;
}

.picker-thumb-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.82);
  color: var(--accent-amber);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  pointer-events: none;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 159, 28, 0.2);
}

/* Admin Gallery Tab Grid */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.admin-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.admin-gallery-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.admin-gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  position: relative;
}

.admin-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(14, 19, 29, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding-top: var(--sat);
    padding-left: var(--sal);
    padding-right: var(--sar);
  }
  .sidebar-header {
    padding: 1rem 1.2rem;
    justify-content: space-between;
  }
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.65rem 1rem;
    gap: 0.55rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-padding: 0 1.2rem;
  }
  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-item-btn {
    flex-shrink: 0;
    width: auto;
    white-space: nowrap;
    padding: 0.55rem 1.05rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    scroll-margin: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
  .nav-item-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }
  .nav-item-btn.active {
    background: var(--accent-amber) !important;
    color: #0b0f19 !important;
    border-color: var(--accent-amber) !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 14px rgba(255, 159, 28, 0.45) !important;
    transform: scale(1.02);
  }
  .nav-item-btn.active span {
    color: #0b0f19 !important;
    font-weight: 800 !important;
  }
  .nav-item-btn.active span[style*="background"] {
    background: rgba(0, 0, 0, 0.25) !important;
    color: #0b0f19 !important;
    border: 1px solid rgba(0, 0, 0, 0.35) !important;
  }
  .sidebar-footer {
    display: none;
  }
  .admin-main {
    padding: 1.5rem 1.2rem;
    max-width: 100%;
  }
  .calendar-scroll-hint {
    display: inline-block;
  }
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(105px, 1fr));
    min-width: 750px;
  }
}

@media (max-width: 768px) {
  .admin-main {
    padding: 1.2rem 0.85rem;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
  }
  .admin-page-title {
    font-size: 1.6rem;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .stat-card {
    padding: 0.9rem;
    gap: 0.75rem;
  }
  .stat-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .stat-info-val {
    font-size: 1.45rem;
  }
  .stat-info-lbl {
    font-size: 0.72rem;
  }
  .panel-box {
    padding: 1.2rem 0.9rem;
    margin-bottom: 1.5rem;
  }
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .panel-title {
    font-size: 1.2rem;
  }
  .data-table th, .data-table td, .admin-table td {
    padding: 0.7rem 0.6rem;
    font-size: 0.82rem;
  }
  .admin-modal {
    padding: 0.6rem;
    align-items: flex-start;
  }
  .admin-modal-content {
    padding: 1.4rem 1.1rem;
    max-width: 100%;
    max-height: calc(100dvh - 1.2rem);
    margin: 0.6rem auto;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Editor Grid & Image Selection */
.editor-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.image-preset-select {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.preset-thumb-btn {
  width: 60px;
  height: 45px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-fast);
  padding: 0;
  background: none;
}

.preset-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preset-thumb-btn.selected, .preset-thumb-btn:hover {
  opacity: 1;
  border-color: var(--accent-amber);
}

.preview-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

.event-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(255, 159, 28, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 159, 28, 0.3);
}

.alert-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.alert-box.error {
  background: rgba(231, 29, 54, 0.15);
  border: 1px solid var(--accent-red);
  color: #ffffff;
}

@media (max-width: 992px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Only Header Actions */
.mobile-only-actions {
  display: none;
}

@media (max-width: 992px) {
  .mobile-only-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Colored outline buttons */
.btn-outline[style*="1ed760"] {
  border-color: #1ed760 !important;
  color: #1ed760 !important;
  background: rgba(30, 215, 96, 0.1) !important;
}
.btn-outline[style*="1ed760"]:hover {
  background: #1ed760 !important;
  color: #000000 !important;
}

.btn-outline[style*="accent-red"] {
  border-color: #e71d36 !important;
  color: #ff6b6b !important;
  background: rgba(231, 29, 54, 0.1) !important;
}
.btn-outline[style*="accent-red"]:hover {
  background: #e71d36 !important;
  color: #ffffff !important;
}


/* ==========================================================================
   ADMIN WEBAPP & PWA ENHANCEMENTS
   ========================================================================== */
.admin-topbar-reload {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
}

.admin-topbar-reload:hover {
  background: rgba(255, 159, 28, 0.15);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.admin-topbar-reload.is-spinning svg {
  animation: pwa-spin 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Standalone body safe bottom padding */
body.is-standalone .admin-main {
  padding-bottom: max(3rem, calc(var(--sab) + 2.5rem));
}


/* ==============================================================================
   BARPLANNING: HISTORISCHE DIENSTEN & TAB FILTERS
   ============================================================================== */
.shift-tab-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.shift-tab-btn.active {
  background: var(--accent-amber) !important;
  color: #0b0e14 !important;
  border-color: var(--accent-amber) !important;
  font-weight: 700 !important;
}

.calendar-cell.is-past-admin {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.75;
}

.calendar-cell.is-past-admin:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 159, 28, 0.4);
}
