/* ====== Main CSS File - All Modules Combined ====== */

/* ====== Back to Dashboard Button ====== */
.back-to-dashboard {
  display: none !important; /* Verberg floating knop */
}

/* Header back button styling removed - no longer needed */

.back-to-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.back-to-dashboard:active {
  transform: translateY(0);
}

.back-to-dashboard .icon {
  font-size: var(--fs-base);
  transition: transform 0.3s ease;
}

.back-to-dashboard:hover .icon {
  transform: translateX(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .back-to-dashboard {
    top: 15px;
    left: 15px;
    padding: 10px 14px;
    font-size: var(--fs-sm);
  }
}

/* ====== Navigation Container Styles ====== */
.navigation-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.navigation-container .nav-btn {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: #f8f9fa;
  color: #495057;
}

.navigation-container .nav-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.navigation-container .nav-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.navigation-container .request-theme {
  background: #ffc107;
  color: #212529;
}

.navigation-container .request-theme:hover {
  background: #e0a800;
}

.navigation-container .data-theme {
  background: #28a745;
  color: white;
}

.navigation-container .data-theme:hover {
  background: #218838;
}

/* ====== Notification System Styles ====== */
.notification-bell {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.notification-bell:hover {
    background: #e9ecef;
    border-color: #dc2626;
    transform: scale(1.05);
}

.bell-icon {
    font-size: var(--fs-lg);
    display: block;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: var(--fs-sm);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 400px;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.hidden {
    display: none;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: var(--fs-base);
    color: #2d3748;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #fef3cd;
    border-left: 3px solid #ffc107;
}

.notification-icon {
    font-size: var(--fs-lg);
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: var(--fs-sm);
    color: #2d3748;
    margin-bottom: 2px;
}

.notification-message {
    font-size: var(--fs-sm);
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.notification-time {
    font-size: var(--fs-sm);
    color: #94a3b8;
}

.notification-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 8px;
}

.notification-actions .btn-icon {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: var(--fs-sm);
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-actions .btn-icon:hover {
    background: #e9ecef;
}

.notification-footer {
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    text-align: center;
}

.no-notifications {
    padding: 30px 15px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    font-size: var(--fs-sm);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design voor notificaties */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 280px;
        right: -50px;
    }
    
    .notification-bell {
        padding: 6px;
        margin-left: 5px;
    }
    
    .bell-icon {
        font-size: var(--fs-lg);
    }
    
    .notification-count {
        width: 18px;
        height: 18px;
        font-size: var(--fs-sm);
    }
}

/* ====== CSS Variables - Brandweer Thema ====== */
:root{
  --bg:#f8fafc; /* Lichtgrijs/wit achtergrond */
  --card:#ffffff; /* Witte cards */
  --text:#1e293b; /* Donker blauw-grijs voor tekst */
  --muted:#64748b; /* Lichter blauw-grijs voor secundaire tekst */
  --primary:#dc2626; /* Brandweer rood */
  --border:#e2e8f0; /* Lichte border */
  
  /* Brandweer thema kleuren */
  --count-bg:#fef2f2; /* Licht rood achtergrond */
  --count-tx:#dc2626; /* Donker rood tekst */
  --cat-bg:#eff6ff; /* Licht blauw achtergrond */
  --cat-tx:#1d4ed8; /* Donker blauw tekst */
  --cat-br:#dbeafe; /* Lichte blauwe border */
  
  /* Accent kleuren */
  --success:#059669; /* Groen voor success */
  --warning:#d97706; /* Oranje voor warning */
  --danger:#dc2626; /* Rood voor danger */
  --info:#0284c7; /* Blauw voor info */

  /* Font sizes optimaal voor verschillende schermresoluties */
  --fs-base: 14px;
  --fs-sm: 12px;
  --fs-lg: 16px;
  
  /* Responsive rem-based font sizes */
  --fs-xs: 0.7rem;
  --fs-sm-rem: 0.8rem;
  --fs-base-rem: 0.875rem;
  --fs-lg-rem: 1rem;
  --fs-xl: 1.15rem;
  --fs-xxl: 1.3rem;
  
  --container-max-width: 1800px;
  --container-padding: 16px;
  --grid-gap: 12px;
  --btn-padding: 12px 20px;
  --btn-font-size: var(--fs-sm);
  --input-padding: 10px 12px;
  --input-font-size: var(--fs-sm);
}

@media (min-width: 1440px) {
  :root {
    --fs-base: 15px;
    --fs-sm: 13px;
    --fs-lg: 17px;
    --fs-xs: 0.75rem;
    --fs-sm-rem: 0.85rem;
    --fs-base-rem: 0.9rem;
    --fs-lg-rem: 1.05rem;
    --fs-xl: 1.2rem;
    --fs-xxl: 1.4rem;
  }
}

@media (min-width: 2560px) {
  :root {
    --container-max-width: 2400px;
    --container-padding: 24px;
    --grid-gap: 16px;
    --btn-padding: 16px 24px;
    --btn-font-size: var(--fs-sm);
    --input-padding: 12px 16px;
    --input-font-size: var(--fs-sm);
    
    /* Grotere font-sizes voor grote schermen */
    --fs-base: 16px;
    --fs-sm: 14px;
    --fs-lg: 18px;
    --fs-xs: 0.8rem;
    --fs-sm-rem: 0.9rem;
    --fs-base-rem: 1rem;
    --fs-lg-rem: 1.1rem;
    --fs-xl: 1.3rem;
    --fs-xxl: 1.5rem;
  }
}

/* ====== Base Styles ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: var(--fs-lg); }
h2 { font-size: calc(var(--fs-lg) * 0.9); }
h3 { font-size: calc(var(--fs-lg) * 0.8); }

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ====== Layout ====== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Content centering - alles behalve header wordt gecentreerd */
main, .main-content, .content, .page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 80px); /* Minus header hoogte */
  padding: 2rem 1rem;
}

/* Specifieke content centering voor oefeningen, afmeldingen, aanvragen */
#content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Tekst centering voor content binnen #content */
#content h1, #content h2, #content h3 {
  text-align: center;
  width: 100%;
}

#content p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1rem auto;
}

/* Grid centering */
.grid {
  display: grid;
  gap: var(--grid-gap);
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Content binnen #content gecentreerd */
#content .grid {
  justify-items: center;
  place-items: center;
}

/* Oefeningen header */
.oefeningen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.oefeningen-header h3 {
  margin: 0;
  color: #2d3748;
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* Post cards grid - langwerpige horizontale layout */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}


.row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.space-between {
  justify-content: space-between;
}

/* Header styling - Originele rode thema */
header {
  width: 100%;
  background: linear-gradient(135deg,
    #fca5a5 0%,
    #dc2626 25%,
    #b91c1c 50%,
    #7f1d1d 75%,
    #450a0a 100%
  );
  color: white;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  padding: 1.5rem 2rem;
}

header h1, header p {
  color: white;
}

header h2 {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

header .row.space-between {
  justify-content: space-between;
  background: transparent;
}

/* Header content styling */
.header-content h1 {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #1e3a8a; /* Donker blauw */
}

/* Header titel verhoudingen - Oefenrooster groter dan pagina naam */
header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header h2 {
  font-size: var(--fs-xxl);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Ingelogde gebruiker styling in header */
header #who {
  color: white !important;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-right: 1rem;
}

/* Navigation buttons in header */
header .btn {
  background: white;
  color: #dc2626;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 700;
}

header .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header .btn.selected {
  background: #dc2626;
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Cards en widgets centering */
.card, .widget {
  width: 100%;
  max-width: 600px;
}

/* Post cards specifieke styling - normale layout */
.posts-grid .card {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.posts-grid .card .card-header {
  flex-shrink: 0;
}

.posts-grid .card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.posts-grid .card .card-footer {
  margin-top: auto;
  flex-shrink: 0;
}

/* Posten pagina specifieke styling */
.posten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.post-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.post-card-header h3 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
}

.post-id {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: var(--fs-sm-rem);
  font-weight: 500;
}

.post-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.stat-label {
  font-size: var(--fs-base-rem);
  color: var(--muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.stat-value.budget {
  color: var(--info);
}

.stat-value.spent {
  color: var(--warning);
}

.stat-value.remaining.status-positive {
  color: var(--success);
}

.stat-value.remaining.status-warning {
  color: var(--warning);
}

.stat-value.remaining.status-negative {
  color: var(--danger);
}

.post-status {
  margin-bottom: 1rem;
  text-align: center;
}

.status-indicator {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--fs-base-rem);
  font-weight: 500;
}

.status-indicator.status-positive {
  background: #f0fdf4;
  color: var(--success);
  border: 1px solid #dcfce7;
}

.status-indicator.status-warning {
  background: #fffbeb;
  color: var(--warning);
  border: 1px solid #fed7aa;
}

.status-indicator.status-negative {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.post-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.post-actions .btn {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm-rem);
}

/* Instellingen pagina specifieke styling */
.instellingen-dashboard {
  padding: 20px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.settings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.settings-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.settings-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
}

.settings-card p {
  margin: 0 0 1rem 0;
  color: var(--muted);
  font-size: var(--fs-base-rem);
  line-height: 1.4;
}

.settings-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ====== MODERNE CARD LAYOUT (VOORBEELD 5) ====== */
.instellingen-dashboard.modern-layout {
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}


.settings-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  align-items: stretch;
}

/* Responsive grid voor categorieën */
@media (min-width: 1200px) {
  .settings-categories {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
  }
}

@media (min-width: 1600px) {
  .settings-categories {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .settings-categories {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }
}

.category-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

.category-title {
  font-size: var(--fs-xxl);
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #dc2626;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modern-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  align-content: start;
  align-items: stretch;
}

/* Responsive layout voor verschillende schermformaten */
@media (min-width: 1200px) {
  .modern-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (min-width: 1600px) {
  .modern-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1400px;
  }
}

@media (min-width: 1920px) {
  .modern-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1400px;
  }
}

.modern-card {
  background: white;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #dc2626;
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #dc2626;
}

.card-icon {
  font-size: var(--fs-xxl);
  margin: 0;
  display: block;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 4px 0;
}

.card-content p {
  font-size: var(--fs-sm);
  color: #718096;
  margin: 0;
  line-height: 1.4;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.card-actions .btn {
  flex: none;
  min-width: 80px;
  padding: 6px 12px;
  font-size: var(--fs-sm);
  margin: 0;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Card varianten */
.modern-card.primary-card::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-card.accent-card::before {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.modern-card.primary-card:hover {
  border-color: #667eea;
}

/* Pending users styling */
.pending-user-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 15px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: var(--fs-xl);
}

.user-details h4 {
  margin: 0 0 5px 0;
  font-size: var(--fs-lg-rem);
  color: #2d3748;
}

.user-details p {
  margin: 0 0 5px 0;
  color: #6b7280;
  font-size: var(--fs-sm);
}

.user-role {
  background: #e2e8f0;
  color: #4a5568;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.user-posts {
  display: block;
  margin-top: 5px;
  color: #718096;
  font-size: var(--fs-sm);
  font-style: italic;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Users management styling */
.users-management {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.management-header h3 {
  margin: 0;
  font-size: var(--fs-xxl);
  color: #2d3748;
}

.back-btn {
  position: relative;
  top: -10px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
  font-weight: 500;
}

.back-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

.users-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: var(--fs-sm);
  background: white;
}

.search-box input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-icon {
  position: absolute;
  right: 12px;
  color: #9ca3af;
  font-size: var(--fs-base);
}

.filter-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: var(--fs-sm);
  background: white;
  cursor: pointer;
}

.filter-group select:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.users-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px 0;
  font-size: var(--fs-sm);
  color: #6b7280;
}

.filtered-count {
  color: #dc2626;
  font-weight: 500;
}

.users-table {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 1.5fr 1fr 1fr;
  background: #f8f9fa;
  border-bottom: 2px solid #e2e8f0;
  align-items: center;
}

.table-header .table-cell {
  padding: 15px 20px;
  font-weight: 600;
  color: #374151;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  min-height: 50px;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 1.5fr 1fr 1fr;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
  align-items: center;
  min-height: 50px;
}

.table-row:hover {
  background: #f8f9fa;
}

.table-row .table-cell {
  padding: 15px 20px;
  font-size: var(--fs-sm);
  color: #374151;
  display: flex;
  align-items: center;
  min-height: 50px;
  border-right: 1px solid #f1f5f9;
}

.table-row .table-cell:last-child {
  border-right: none;
}

.table-header .table-cell:last-child {
  border-right: none;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #991b1b;
}

/* Responsive design voor filters */
@media (max-width: 1200px) {
  .users-filters {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .management-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .back-btn {
    position: static;
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .table-header .table-cell,
  .table-row .table-cell {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    border-right: none;
    min-height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .table-header .table-cell:before,
  .table-row .table-cell:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
    margin-right: 10px;
  }
  
  .table-row .table-cell {
    background: white;
  }
  
  .table-row:nth-child(even) .table-cell {
    background: #f8f9fa;
  }
}

.modern-card.secondary-card::before {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.modern-card.secondary-card:hover {
  border-color: #f5576c;
}

.modern-card.accent-card::before {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modern-card.accent-card:hover {
  border-color: #4facfe;
}

.modern-card.success-card::before {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.modern-card.success-card:hover {
  border-color: #43e97b;
}

.modern-card.warning-card::before {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.modern-card.warning-card:hover {
  border-color: #fa709a;
}

.modern-card.info-card::before {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.modern-card.info-card:hover {
  border-color: #a8edea;
}

.modern-card.dark-card::before {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.modern-card.dark-card:hover {
  border-color: #2c3e50;
}

.modern-card.gradient-card::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.modern-card.gradient-card:hover {
  border-color: #667eea;
}

.modern-card.danger-card::before {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.modern-card.danger-card:hover {
  border-color: #ff6b6b;
}

/* Button varianten */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive design */
@media (max-width: 1199px) {
  .modern-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  
  .category-section {
    padding: 20px;
  }
  
  .category-title {
    font-size: var(--fs-xxl);
  }
  
  .modern-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .modern-card {
    padding: 12px 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .card-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }
  
  .card-actions .btn {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .instellingen-dashboard.modern-layout {
    padding: 0 10px;
  }
  
  
  .category-section {
    padding: 15px;
  }
  
  .modern-card {
    padding: 15px;
  }
  
  .card-icon {
    font-size: 2rem;
  }
  
  .card-content h3 {
    font-size: var(--fs-xl);
  }
}

/* Rol-afhankelijke styling voor instellingen knoppen */
.settings-card[data-role="admin"] {
  border-left: 4px solid #e74c3c;
}

.settings-card[data-role="beheerder"] {
  border-left: 4px solid #f39c12;
}

.settings-card[data-role="postcommandant"] {
  border-left: 4px solid #3498db;
}

.settings-card[data-role="coordinator_team_west"] {
  border-left: 4px solid #9b59b6;
}

.settings-card[data-role="poc"] {
  border-left: 4px solid #2ecc71;
}

.settings-card[data-role="postlid"] {
  border-left: 4px solid #95a5a6;
}

/* Materiaal bestelling popup styling */
#materialOrderPopup .modal-content {
  max-width: 500px;
  margin: 50px auto;
}

.material-summary {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.material-summary h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.1em;
}

.material-summary ul {
  margin: 0;
  padding-left: 20px;
}

.material-summary li {
  margin-bottom: 5px;
  color: #666;
}

/* Oefening Cards - Clean Minimalist Style - List Layout */
.oefening-card.clean-card {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  min-height: 120px;
}

/* Klikbare oefening cards */
.oefening-card.clickable-card {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.oefening-card.clickable-card::after {
  content: "👆 Klik voor details";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: var(--fs-sm);
  color: #667eea;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.oefening-card.clickable-card:hover::after {
  opacity: 1;
}

.oefening-card.clickable-card:hover {
  border-color: #667eea;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}


.oefening-card.clean-card .card-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: none;
  padding: 0;
  flex-shrink: 0;
  min-width: 200px;
  position: relative;
}

.oefening-card.clean-card .card-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 8px 0;
}

.oefening-card.clean-card .post-badge {
  background: #667eea;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: var(--fs-lg);
  font-weight: 700;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 3px 6px rgba(102, 126, 234, 0.4);
  margin-bottom: 20px;
}

.oefening-card.clean-card .card-content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.oefening-card.clean-card .content-main {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  flex: 1;
}

.oefening-card.clean-card .info-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  color: #4a5568;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.oefening-card.clean-card .info-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.oefening-card.clean-card .info-row .icon {
  width: 24px;
  margin-right: 12px;
  text-align: center;
  font-size: var(--fs-sm);
}

.oefening-card.clean-card .materials-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex-shrink: 0;
  min-width: 200px;
  flex: 1;
}

.oefening-card.clean-card .materials-title {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
}

.oefening-card.clean-card .materials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.oefening-card.clean-card .material-item {
  display: inline-block;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: var(--fs-sm);
  color: #4a5568;
  transition: all 0.2s ease;
}

/* Gekleurde material items op basis van status */
.oefening-card.clean-card .material-item.material-pending {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #d97706;
  font-weight: 500;
}

.oefening-card.clean-card .material-item.material-approved {
  background: #d1fae5;
  border-color: #10b981;
  color: #059669;
  font-weight: 500;
}

.oefening-card.clean-card .material-item.material-rejected {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
  font-weight: 500;
}

.oefening-card.clean-card .material-item.material-none {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
}

.oefening-card.clean-card .no-materials {
  color: #a0aec0;
  font-style: italic;
  font-size: var(--fs-sm);
}

/* Status badges in aanvragen */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-top: 4px;
}

.status-badge.approved {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.rejected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge.pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Toggle button styling */
.btn.outline.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* Aanvraag status sectie */
.oefening-card.clean-card .aanvraag-status-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  min-width: 200px;
}

.oefening-card.clean-card .aanvraag-status-title {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
}

.oefening-card.clean-card .aanvraag-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  border: 1px solid;
}

.oefening-card.clean-card .aanvraag-status-badge .status-icon {
  font-size: var(--fs-base);
}

.oefening-card.clean-card .aanvraag-status-badge .status-text {
  font-size: var(--fs-sm);
}

/* Status kleuren */
.oefening-card.clean-card .aanvraag-status-badge.status-pending {
  background: #fef3c7;
  color: #d97706;
  border-color: #f59e0b;
}

.oefening-card.clean-card .aanvraag-status-badge.status-approved {
  background: #d1fae5;
  color: #059669;
  border-color: #10b981;
}

.oefening-card.clean-card .aanvraag-status-badge.status-rejected {
  background: #fee2e2;
  color: #dc2626;
  border-color: #ef4444;
}

.oefening-card.clean-card .aanvraag-status-badge.status-none {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #d1d5db;
}

.oefening-card.clean-card .aanvraag-status-badge.status-unknown {
  background: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.oefening-card.clean-card .card-actions {
  display: flex;
  gap: 6px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: auto;
}

.oefening-card.clean-card .action-btn {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: all 0.2s ease;
  color: #4a5568;
}

.oefening-card.clean-card .action-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.oefening-card.clean-card .action-btn.danger:hover {
  background: #e53e3e;
  border-color: #e53e3e;
  color: white;
}

/* Users management styling */
.users-management {
  padding: 20px;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.user-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.user-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.user-info {
  margin-bottom: 1rem;
}

.user-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: var(--fs-base-rem);
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.user-role {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: var(--fs-sm-rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.user-role.admin {
  background: var(--cat-bg);
  color: var(--cat-tx);
}

.user-role.beheerder {
  background: var(--count-bg);
  color: var(--count-tx);
}

.user-role.postcommandant {
  background: #f0fdf4;
  color: var(--success);
}

.user-role.postlid {
  background: #f8fafc;
  color: var(--muted);
}

.user-actions {
  display: flex;
  gap: 0.5rem;
}

.user-actions .btn {
  flex: 1;
  padding: 0.5rem;
  font-size: var(--fs-sm-rem);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Forms centering */
.form-group, .form-row {
  width: 100%;
  max-width: 500px;
}


/* Navigation centering */
#navigation-container {
  justify-content: center;
  width: 100%;
}

/* Header navigation styling - Rode header */
header #navigation-container {
  justify-content: flex-end;
  gap: 12px;
  padding: 0.5rem 0;
}

header #navigation-container button {
  background: white;
  color: #dc2626;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 700;
}

header #navigation-container button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header #navigation-container button.selected {
  background: #dc2626;
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ====== Utility Classes ====== */
.hidden { display: none !important; }
.mobile-hidden { display: block; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.required { color: var(--danger); font-weight: bold; }
.small { font-size: 0.875rem; }

@media (max-width: 768px) {
  .mobile-hidden { display: none !important; }
}

/* ====== Button Styles ====== */
.btn {
  display: inline-block;
  padding: var(--btn-padding);
  font-size: var(--btn-font-size);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 16px 24px;
  font-size: var(--fs-sm);
}

/* Button thema's - Brandweer design */
.request-theme {
  background: var(--cat-bg);
  color: var(--cat-tx);
  border-color: var(--cat-br);
  font-weight: 500;
}

.request-theme:hover {
  background: var(--cat-tx);
  color: white;
  border-color: var(--cat-tx);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(29, 78, 216, 0.2);
}

.data-theme {
  background: var(--count-bg);
  color: var(--count-tx);
  border-color: var(--count-bg);
  font-weight: 500;
}

.data-theme:hover {
  background: var(--count-tx);
  color: white;
  border-color: var(--count-tx);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.logout-btn {
  background: transparent;
  color: var(--danger);
  border: 2px solid var(--danger);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logout-btn:hover {
  background: var(--danger);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Oude regel verwijderd - zie onderaan bestand voor mobiele logout styling */

/* Nieuwe button thema's */
.info-theme {
  background: var(--info);
  color: white;
  border-color: var(--info);
  font-weight: 500;
}

.info-theme:hover {
  background: #0369a1;
  border-color: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(2, 132, 199, 0.2);
}

.success-theme {
  background: var(--success);
  color: white;
  border-color: var(--success);
  font-weight: 500;
}

.success-theme:hover {
  background: #047857;
  border-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(5, 150, 105, 0.2);
}

.warning-theme {
  background: var(--warning);
  color: white;
  border-color: var(--warning);
  font-weight: 500;
}

.warning-theme:hover {
  background: #b45309;
  border-color: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.2);
}

/* ====== Navigation Styling ====== */
#navigation-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 40px;
}

#navigation-container button {
  display: inline-block !important;
  margin: 0 4px !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#navigation-container button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#navigation-container button.active {
  background-color: var(--primary) !important;
  color: white !important;
  font-weight: bold;
}

header .row.space-between {
  min-height: 50px;
  align-items: center;
  padding: 8px 0;
}

header .row.space-between .row:last-child {
  min-height: 40px;
  align-items: center;
  justify-content: flex-end;
}

header .row.space-between .row:first-child {
  align-items: center;
  justify-content: flex-start;
}

header h2 {
  margin: 0;
  font-size: var(--fs-xxl);
  font-weight: 600;
}

/* ====== Form Styles ====== */
.input, input, textarea, select {
  width: 100%;
  padding: var(--input-padding);
  font-size: var(--input-font-size);
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.input:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 29, 37, 0.1);
}

.input:disabled, input:disabled, textarea:disabled, select:disabled {
  background-color: #f8f9fa;
  color: var(--muted);
  cursor: not-allowed;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.form-field-group {
  flex: 1;
  min-width: 200px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Form validation - Brandweer thema */
.input.error, input.error {
  border-color: var(--danger);
  background-color: #fef2f2;
}

.input.success, input.success {
  border-color: var(--success);
  background-color: #f0fdf4;
}

.error-message {
  color: var(--danger);
  font-size: var(--fs-sm);
  margin-top: 0.25rem;
  font-weight: 500;
}

.success-message {
  color: var(--success);
  font-size: var(--fs-sm);
  margin-top: 0.25rem;
  font-weight: 500;
}

.warning-message {
  color: var(--warning);
  font-size: var(--fs-sm);
  margin-top: 0.25rem;
  font-weight: 500;
}

.info-message {
  color: var(--info);
  font-size: var(--fs-sm);
  margin-top: 0.25rem;
  font-weight: 500;
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
}

select[multiple] {
  min-height: 120px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ====== Card Styles ====== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.card-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.card-content {
  color: var(--text);
}

.card-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.widget:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.widget-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.widget-header h3 {
  margin: 0;
  font-size: var(--fs-lg-rem);
  font-weight: 600;
  color: var(--text);
}

.widget-content {
  color: var(--text);
}

.widget-action {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Card varianten - Brandweer thema */
.card.primary {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.card.success {
  border-left: 4px solid var(--success);
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.card.warning {
  border-left: 4px solid var(--warning);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.card.danger {
  border-left: 4px solid var(--danger);
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.card.info {
  border-left: 4px solid var(--info);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

@media (max-width: 768px) {
  .card {
    padding: 1rem;
  }
  
  .widget {
    padding: 1rem;
  }
}

/* ====== Modal Styles ====== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.modal.hidden {
  display: none;
  opacity: 0;
}

.modal-content {
  background: var(--card);
  border-radius: 8px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(1);
  transition: transform 0.3s ease;
}

/* Mobiele modal styling - Fixed Mobile Issues */
@media (max-width: 768px) {
  /* Prevent body scroll when modal is open */
  body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  .modal-content {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    animation: modalSlideUp 0.3s ease-out;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  /* Specifiek voor detail modal op mobiel - Fixed Layout */
  #oefeningDetailsModal .modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  #oefeningDetailsModal .modal-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0;
    position: relative;
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #oefeningDetailsModal .modal-header h2 {
    color: #2d3748;
    font-size: var(--fs-xl);
    font-weight: 600;
    margin: 0;
    text-align: center;
    padding-right: 50px; /* Space for close button */
  }
  
  #oefeningDetailsModal .modal-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg-rem);
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
  }
  
  #oefeningDetailsModal .modal-close:active {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(0.95);
  }
  
  #oefeningDetailsModal .modal-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  #oefeningDetailsModal .modal-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 15px 20px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
  }
  
  #oefeningDetailsModal .modal-footer .btn {
    flex: 1;
    max-width: 140px;
    font-size: var(--fs-base-rem);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    transition: all 0.2s ease;
    touch-action: manipulation;
  }
  
  #oefeningDetailsModal .modal-footer .btn:active {
    transform: scale(0.98);
  }
  
  /* Postcard-style oefening details - Mobile Optimized */
  .oefening-details {
    padding: 0;
  }
  
  .detail-row {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
  }
  
  .detail-row:active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(0.98);
  }
  
  .detail-row strong {
    color: #4a5568;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: var(--fs-sm-rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .detail-row:not(:has(strong)) {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 500;
  }
  
  .detail-section {
    margin-top: 20px;
    padding-top: 15px;
  }
  
  .detail-section h3 {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #2d3748;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
  }
}

/* Animatie voor mobiele modals */
@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.catalogus-exercise-modal .modal-content {
  max-width: 1200px !important; /* Zelfde als regular modal */
  width: 95vw !important; /* Zelfde als regular modal */
  max-height: 85vh !important; /* Zelfde als regular modal */
  aspect-ratio: 16/9 !important; /* Zelfde als regular modal */
  display: flex !important;
  flex-direction: column !important;
  min-width: 1000px !important; /* Zelfde als regular modal */
  padding: 1.5rem !important; /* Zelfde als regular modal */
}

/* Catalogus modal specifieke styling - horizontale layout */
.catalogus-modal-wide {
  max-width: 1200px !important; /* Zelfde als regular modal */
  width: 95vw !important; /* Zelfde als regular modal */
}

.catalogus-main-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.catalogus-main-section .form-row.horizontal-fields {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.catalogus-main-section .form-row.horizontal-fields:last-child {
  margin-bottom: 0;
}

.catalogus-main-section .form-field {
  flex: 1;
  min-width: 0;
}

.catalogus-main-section .form-field.primary-field {
  flex: 1.2;
}

.catalogus-main-section .input.input-large {
  font-size: var(--fs-sm);
  padding: 10px 12px;
  border: 2px solid #0ea5e9;
  background: white;
  width: 100%;
}

.catalogus-main-section .input.input-large:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.catalogus-main-section .input {
  width: 100%;
}

.catalogus-posts-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 0;
}

.catalogus-posts-section .form-row {
  margin-bottom: 0;
}

.catalogus-posts-section label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
  display: block;
}


/* Responsive catalogus modal - consistent met regular modal */
@media (max-width: 1200px) {
  .catalogus-exercise-modal .modal-content {
    width: 95vw !important;
    max-width: 1000px !important;
    min-width: 800px !important;
  }
  
  .catalogus-single-row {
    grid-template-columns: 1fr 1.5fr 0.8fr 0.8fr 1.2fr 1.2fr 0.8fr !important;
    gap: 18px !important;
  }
}

@media (max-width: 1000px) {
  .catalogus-exercise-modal .modal-content {
    width: 95vw !important;
    max-width: 900px !important;
    min-width: 0 !important;
    aspect-ratio: auto !important;
  }
  
  .catalogus-single-row {
    grid-template-columns: 1fr 1.3fr 0.8fr 0.8fr 1fr 1fr 0.8fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 800px) {
  .catalogus-exercise-modal .modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    min-width: 0 !important;
    aspect-ratio: auto !important;
    height: auto !important;
    max-height: 95vh !important;
  }
  
  .catalogus-single-row {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }
}

@media (max-width: 768px) {
  .catalogus-modal-wide {
    max-width: 95%;
    width: 95%;
  }
  
  .catalogus-exercise-modal {
    padding: 0 !important;
  }
  
  .catalogus-exercise-modal .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    padding: 1rem !important;
  }
  
  .catalogus-single-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .catalogus-single-row .form-field label {
    font-size: var(--fs-sm) !important;
  }
  
  .catalogus-single-row .form-field .input,
  .catalogus-single-row .form-field select {
    font-size: var(--fs-sm) !important;
    padding: 10px !important;
  }
}

@media (max-width: 600px) {
  .catalogus-single-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 400px) {
  .catalogus-single-row {
    grid-template-columns: 1fr !important;
  }
}

/* Catalogus modal body styling - consistent met regular modal */
.catalogus-exercise-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.catalogus-exercise-modal .form-row {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  width: 100% !important;
}

.catalogus-exercise-modal .form-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.catalogus-exercise-modal .form-field {
  width: 100% !important;
  min-width: 0;
}

/* Catalogus single row layout - verbeterde leesbaarheid */
.catalogus-single-row {
  display: grid !important;
  grid-template-columns: 1.2fr 1.8fr 0.8fr 0.8fr 1.2fr 1.2fr 0.8fr !important;
  gap: 16px !important;
  align-items: end !important;
  padding: 0 16px !important;
}

.catalogus-single-row .form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.catalogus-single-row .form-field label {
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 6px;
  white-space: nowrap;
}

.catalogus-single-row .form-field .input,
.catalogus-single-row .form-field select {
  font-size: var(--fs-base) !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  border: 2px solid var(--border) !important;
  background: white !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.catalogus-single-row .form-field .input:focus,
.catalogus-single-row .form-field select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  outline: none !important;
}

.catalogus-single-row .form-field .cost-display {
  font-size: var(--fs-base) !important;
  font-weight: 700 !important;
  padding: 12px 14px !important;
  text-align: center !important;
  background: #f0fdf4 !important;
  border: 2px solid #22c55e !important;
  border-radius: 8px !important;
  color: #15803d !important;
}

.cost-display {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #15803d;
  text-align: center;
  min-height: 20px;
  width: 100%;
}

.cost-display:empty::before {
  content: "Selecteer een programma";
  color: #6b7280;
  font-weight: 400;
  font-style: italic;
}

/* Catalogus oefening cards styling */
.oefening-card.catalogus-card {
  border-left: 6px solid #0ea5e9;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.oefening-card.catalogus-card:hover {
  border-color: #0284c7;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
}

.post-badge.catalogus-badge {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

/* Per-materiaal acties styling voor aanvragen */
.material-item-with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.material-item-with-actions:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.material-actions {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.material-action-btn {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: all 0.2s ease;
  color: #4a5568;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-action-btn:hover {
  transform: scale(1.1);
}

.material-action-btn.success:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.material-action-btn.danger:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.material-item-with-actions .material-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.material-item-with-actions .material-item {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-sm);
  color: #4a5568;
  font-weight: 500;
}

.material-item-with-actions .material-cost {
  font-size: var(--fs-sm);
  color: #059669;
  font-weight: 600;
  margin-top: 2px;
}

/* Budget styling */
.budget-positive {
  color: #059669;
  font-weight: 600;
}

.budget-negative {
  color: #dc2626;
  font-weight: 600;
}

.budget-warning {
  color: #d97706;
  font-weight: 600;
}

.catalogus-indicator {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
}

.catalogus-indicator .icon {
  font-size: var(--fs-sm);
  margin-right: 8px;
}

.catalogus-text {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal.hidden .modal-content {
  transform: scale(0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0;
  font-size: var(--fs-xxl);
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--fs-xxl);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: var(--border);
  color: var(--text);
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.modal-small .modal-content {
  max-width: 400px;
}

.modal-medium .modal-content {
  max-width: 600px;
}

.modal-large .modal-content {
  max-width: 800px;
}

/* ====== Exercise Type Selection ====== */
.exercise-type-selection {
  text-align: center;
}

.exercise-type-selection h3 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 1.25rem;
}

.exercise-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

/* Specifieke styling voor regular exercise modal - overschrijf max-width */
.regular-exercise-modal .exercise-type-options {
  max-width: none !important;
  width: 100% !important;
}

.exercise-type-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-align: left;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  transition: all 0.2s ease;
  cursor: pointer;
}

.exercise-type-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.exercise-type-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.exercise-type-content h4 {
  margin: 0 0 4px 0;
  font-size: var(--fs-lg-rem);
  font-weight: 600;
}

.exercise-type-content p {
  margin: 0;
  font-size: var(--fs-base-rem);
  opacity: 0.8;
}

/* ====== Horizontal Form Layout ====== */
.horizontal-fields {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 kolommen voor betere balans */
  gap: 16px;
  margin-bottom: 16px;
  flex: 1; /* Neem beschikbare ruimte */
  width: 100%; /* Gebruik volledige breedte */
}

/* Specifieke styling voor regular exercise modal */
.regular-exercise-modal .horizontal-fields {
  width: 100% !important;
  max-width: none !important;
}

/* Compacte layout voor 16:9 modal */
.regular-exercise-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.regular-exercise-modal .form-row {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  width: 100% !important;
}

.regular-exercise-modal .form-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.regular-exercise-modal .form-field {
  width: 100% !important;
  min-width: 0;
}

/* Visuele scheiding tussen secties */
.regular-exercise-modal .form-row:nth-child(2) {
  border-top: 2px solid var(--primary);
  padding-top: 20px;
  margin-top: 20px;
}

/* Responsive voor 6-kolommen layout */
@media (max-width: 1200px) {
  .regular-exercise-modal .modal-content {
    width: 95vw !important;
    max-width: 1000px !important;
  }
}

@media (max-width: 1000px) {
  .horizontal-fields {
    grid-template-columns: repeat(4, 1fr);
  }
  .regular-exercise-modal .modal-content {
    aspect-ratio: 4/3; /* Iets minder breed */
  }
}

@media (max-width: 800px) {
  .horizontal-fields {
    grid-template-columns: repeat(3, 1fr);
  }
  .regular-exercise-modal .modal-content {
    aspect-ratio: 1/1; /* Vierkant op tablets */
  }
}

@media (max-width: 600px) {
  .horizontal-fields {
    grid-template-columns: 1fr !important;
  }
  .regular-exercise-modal .modal-content {
    min-width: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    padding: 1rem !important;
  }
}

@media (max-width: 400px) {
  .horizontal-fields {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Voorkom overflow in grid */
  width: 100%; /* Gebruik volledige breedte */
}

.form-field label {
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.85rem; /* Iets kleiner voor compacte layout */
}

.form-field .input {
  width: 100%;
  padding: 6px 10px; /* Iets compacter */
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem; /* Iets kleiner voor compacte layout */
}

.form-field .input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Specifieke styling voor tijd inputs */
.form-field .time-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-field .time-inputs input {
  flex: 1;
  min-width: 0;
}

.form-field .time-inputs span {
  font-size: var(--fs-sm-rem);
  color: var(--muted);
  white-space: nowrap;
}

/* ====== Mail Templates ====== */
.template-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.template-header h5 {
  margin: 0;
  color: #2d3748;
  font-size: var(--fs-lg-rem);
  text-transform: capitalize;
}

.template-actions {
  display: flex;
  gap: 8px;
}

.template-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-subject {
  font-size: var(--fs-base-rem);
  color: #4a5568;
}

.template-body {
  font-size: var(--fs-base-rem);
  color: #4a5568;
}

.template-body pre {
  background: #f7fafc;
  padding: 8px;
  border-radius: 4px;
  font-size: var(--fs-sm-rem);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 4px 0;
}

.template-status {
  font-size: var(--fs-base-rem);
  color: #4a5568;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.badge.success {
  background: #d1fae5;
  color: #065f46;
}

.badge.secondary {
  background: #f3f4f6;
  color: #6b7280;
}

/* ====== Material Requests ====== */
.material-request-section {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px;
  background: var(--card);
  height: 100%;
  position: relative;
}

/* Rode gradient border voor materiaal aanvragen postcards */
.material-request-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(135deg, #fca5a5 0%, #dc2626 25%, #b91c1c 50%, #991b1b 75%, #7f1d1d 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}

.material-request-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.material-request-item:last-child {
  margin-bottom: 0;
}

.material-request-item .btn {
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: var(--fs-xs);
}

.material-request-item .material-select {
  flex: 1;
  min-width: 0;
}

/* Bestel knoppen styling */
.order-btn {
  width: 100%;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: var(--fs-sm-rem);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.order-btn.ordered {
  background: var(--success);
  cursor: not-allowed;
}

.order-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Compacte post selectie voor 16:9 layout */
.regular-exercise-modal .post-selection-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.regular-exercise-modal .posts-multiselect {
  flex: 1;
  min-height: 120px;
}

.regular-exercise-modal .preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.regular-exercise-modal .preset-buttons .btn {
  font-size: var(--fs-xs);
  padding: 4px 8px;
}

.material-shortcuts {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.material-requests {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.material-request-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--background);
  position: relative;
}

/* Rode gradient border voor individuele materiaal aanvraag items */
.material-request-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(135deg, #fca5a5 0%, #dc2626 25%, #b91c1c 50%, #991b1b 75%, #7f1d1d 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}

/* Rode gradient border voor materiaal aanvragen postcards */
.postcard.materiaal-aanvraag-postcard {
  position: relative;
  border: 2px solid transparent;
}

.postcard.materiaal-aanvraag-postcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, #fca5a5 0%, #dc2626 25%, #b91c1c 50%, #991b1b 75%, #7f1d1d 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}

/* Rode gradient border voor materiaal aanvragen lijst items */
.list-item.materiaal-aanvraag-list-item {
  position: relative;
  border: 2px solid transparent;
  border-radius: 8px;
}

.list-item.materiaal-aanvraag-list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, #fca5a5 0%, #dc2626 25%, #b91c1c 50%, #991b1b 75%, #7f1d1d 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}

.material-request-content {
  display: flex;
  gap: 12px;
  flex: 1;
}

.material-request-content .material-select {
  flex: 2;
  min-width: 200px;
}

.material-request-content .material-quantity {
  flex: 1;
  min-width: 80px;
}

.remove-material {
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: var(--fs-sm-rem);
  transition: all 0.2s ease;
}

.remove-material:hover {
  background: #b91c1c;
}

/* ====== Time Inputs ====== */
.time-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-inputs span {
  color: var(--muted);
  font-size: var(--fs-base-rem);
}

/* ====== Form Elements ====== */
.select-multiple-posts {
  height: 120px;
}

.select-materials {
  height: 80px;
}

/* ====== Instellingen Postcards ====== */
.postcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.postcards-grid .postcard {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.postcards-grid .postcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #e53e3e;
}

.postcards-grid .postcard.primary-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1f2937;
}

.postcards-grid .postcard.secondary-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1f2937;
}

.postcards-grid .postcard.accent-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1f2937;
}

.postcards-grid .postcard.success-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1f2937;
}

.postcards-grid .postcard.warning-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1f2937;
}

.postcards-grid .postcard.dark-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1f2937;
}

.postcards-grid .postcard.gradient-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1f2937;
}

.postcards-grid .postcard.danger-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1f2937;
}

.postcards-grid .postcard .postcard-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.postcards-grid .postcard .postcard-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.postcards-grid .postcard .postcard-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.postcards-grid .postcard .postcard-description {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.4;
}

.postcards-grid .postcard .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.postcards-grid .postcard .info-item {
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.postcards-grid .postcard .info-title {
  font-size: var(--fs-xs);
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.postcards-grid .postcard .info-value {
  font-size: var(--fs-lg-rem);
  font-weight: 600;
}

/* ====== Configuratie Pagina ====== */
.configuration-settings {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.config-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

.config-tab {
  padding: 12px 24px;
  background: #f3f4f6;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.3s ease;
}

.config-tab:hover {
  background: #e5e7eb;
  color: #374151;
}

.config-tab.active {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.config-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.config-section h4 {
  color: #1f2937;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.form-field input,
.form-field select {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-field input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.form-field label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.posts-config-list {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.post-config-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

.post-config-item h5 {
  color: #1f2937;
  margin-bottom: 15px;
  font-size: var(--fs-lg-rem);
  font-weight: 600;
}

.post-config-item .form-grid {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.form-actions .btn {
  padding: 12px 24px;
  font-weight: 500;
}

/* Test result styling */
.test-result {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.test-result.success {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
}

.test-result.error {
  background: #fef2f2;
  border-color: #dc2626;
  color: #991b1b;
}

.test-result p {
  margin: 5px 0;
}

.test-result .muted {
  color: inherit;
  opacity: 0.7;
  font-size: 0.9rem;
}

.form-section {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h4 {
  margin: 0 0 15px 0;
  color: var(--text);
  font-size: var(--fs-lg);
}

/* Help box styling */
.help-box {
  background: #eff6ff;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.help-box strong {
  color: #1e40af;
}

.help-box ol {
  color: #1e3a8a;
}

/* Chat ID result styling */
.chat-id-result {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.chat-id-result.success {
  background: #ecfdf5;
  border-color: #059669;
}

.chat-id-result.warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.chat-id-result.error {
  background: #fef2f2;
  border-color: #dc2626;
  color: #991b1b;
}

.chat-id-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin: 8px 0;
}

.chat-id-item code {
  flex: 1;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 600;
}

/* ====== Back Button ====== */
.btn-back {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  margin-right: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.btn-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.btn-back:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.btn-back span {
  font-size: 18px;
  line-height: 1;
}

/* Hide back button on mobile devices */
@media (max-width: 768px) {
  .btn-back {
    display: none !important;
  }
}

/* Ensure footer is always centered */
footer {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

footer p {
  text-align: center !important;
  margin: 0 !important;
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
  .exercise-type-options {
    grid-template-columns: 1fr;
  }
  
  .horizontal-fields {
    grid-template-columns: 1fr;
  }
  
  .regular-exercise-modal .modal-content,
  .catalogus-exercise-modal .modal-content {
    max-width: 95%;
  }
  
  .material-request-content {
    flex-direction: column;
  }
  
  .material-request-content .material-select {
    min-width: auto;
  }
}

.modal-full .modal-content {
  max-width: 95vw;
  max-height: 95vh;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal.modal-animate {
  animation: modalFadeIn 0.3s ease;
}

.modal.modal-animate .modal-content {
  animation: modalSlideIn 0.3s ease;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
    max-width: calc(100vw - 2rem);
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* ====== Settings Tabs ====== */
.settings-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--bg);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg);
}

.settings-content {
  padding: 20px 0;
}

.settings-content.hidden {
  display: none;
}

/* ====== Checkbox Styling ====== */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label span {
  user-select: none;
}

/* ====== Post Mail Settings ====== */
.post-mail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.post-mail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-mail-card h4 {
  margin: 0 0 15px 0;
  color: var(--text);
  font-size: var(--fs-lg-rem);
}

.mail-types {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mail-type {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mail-type label {
  min-width: 80px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.mail-type .input {
  flex: 1;
  margin: 0;
}

/* ====== Notificaties Widget ====== */
.notifications-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  border-left: 4px solid var(--primary);
  background: var(--card);
  transition: all 0.2s ease;
}

.notification-item.unread {
  background: var(--bg);
  border-left-color: var(--accent);
  font-weight: 500;
}

.notification-item.read {
  opacity: 0.7;
}

.notification-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.notification-message {
  color: var(--muted);
  font-size: var(--fs-base-rem);
  margin-bottom: 4px;
}

.notification-time {
  color: var(--muted);
  font-size: var(--fs-sm-rem);
}

.notification-more {
  text-align: center;
  color: var(--primary);
  font-weight: 500;
  padding: 8px;
  cursor: pointer;
}

.notification-more:hover {
  background: var(--bg);
  border-radius: 4px;
}

/* ====== Dashboard Styling ====== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.widget-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.widget-header h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-xl);
  font-weight: 600;
}

.widget-content {
  color: var(--muted);
  line-height: 1.6;
}

.widget-action {
  margin-top: 15px;
  text-align: right;
}

.widget-action .btn {
  padding: 8px 16px;
  font-size: var(--fs-base-rem);
}

/* Widget thema's - Professioneel brandweer design */
.widget.info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid var(--info);
}

.widget.data {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-left: 4px solid var(--danger);
}

.widget.admin {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-left: 4px solid var(--text);
}

.widget.budget {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid var(--success);
}

.widget.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fed7aa 100%);
  border-left: 4px solid var(--warning);
}

.widget.col-span-2 {
  grid-column: span 2;
}

.exercise-list {
  max-height: 200px;
  overflow-y: auto;
}

.exercise-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.exercise-item:last-child {
  border-bottom: none;
}

.exercise-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.exercise-date {
  font-size: var(--fs-base-rem);
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: var(--fs-base-rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loading-state, .error-state {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-state h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* ====== Responsive Styles ====== */
@media (max-width: 575.98px) {
  .container {
    padding: 0.75rem;
  }
  
  .grid {
    gap: 0.75rem;
  }
  
  .row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .space-between {
    justify-content: flex-start;
  }
  
  h1 {
    font-size: var(--fs-xxl);
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-field-group {
    min-width: 100%;
  }
  
  .mobile-hidden {
    display: none !important;
  }
  
  /* Mobile centering aanpassingen */
  main, .main-content, .content, .page-content {
    padding: 1rem 0.5rem;
  }
  
  .card, .widget {
    max-width: 100%;
  }
  
  .form-group, .form-row {
    max-width: 100%;
  }
  
  /* Posts grid mobile */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding: 1rem;
  }
  
  .row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .btn {
    min-width: 120px;
  }
  
  /* Posts grid tablet */
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    padding: 1.25rem;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .row {
    gap: 1rem;
  }
  
  /* Posts grid medium tablet */
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .container {
    padding: 1.5rem;
  }
  
  /* Posts grid desktop */
  .posts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    padding: 2rem;
  }
  
  /* Posts grid large desktop */
  .posts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

@media (min-width: 2560px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .container {
    padding: 3rem;
  }
  
  /* Posts grid 4K - blijft 4 kolommen voor optimale leesbaarheid */
  .posts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1600px;
  }
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }

@media (max-width: 767.98px) {
  .col-2, .col-3, .col-4, .col-5, .col-6 {
    grid-column: span 1;
  }
  
  .col-span-2, .col-span-3, .col-span-4, .col-span-5, .col-span-6 {
    grid-column: span 1;
  }
}

@media (max-width: 991.98px) {
  .navigation-container {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .navigation-container .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .form-row.all-fields {
    flex-direction: column;
  }
  
  .form-field-group {
    min-width: 100%;
  }
  
  .shortcut-buttons-inline {
    flex-direction: column;
  }
  
  .shortcut-btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 600px;
  }
}

@media (max-width: 575.98px) {
  .modal-content {
    margin: 0.5rem;
    padding: 1rem;
    max-height: calc(100vh - 1rem);
  }
}

/* ====== MATERIAAL CATALOGUS ====== */
.materiaal-overview {
  padding: 20px;
}

.materiaal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.materiaal-actions {
  display: flex;
  gap: 10px;
}

.materiaal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--card);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-card h3 {
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.materiaal-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: 500;
  color: var(--text);
}

.materiaal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.materiaal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.materiaal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.materiaal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.materiaal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thema-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.materiaal-card-header h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.materiaal-actions {
  display: flex;
  gap: 5px;
}

.btn-icon {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn-icon:hover {
  background-color: var(--bg);
}

.btn-icon.danger:hover {
  background-color: var(--danger);
  color: white;
}

.materiaal-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.materiaal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.materiaal-cost {
  color: var(--primary);
  font-size: var(--fs-lg);
}

.materiaal-description {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
  padding: 10px;
  background: var(--bg);
  border-radius: 6px;
  border-left: 3px solid var(--border);
}

.materiaal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 500;
}

.meta-date {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-left: auto;
}

.materiaal-category {
  display: flex;
  align-items: center;
}

.category-badge {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.materiaal-price {
  display: flex;
  align-items: center;
  gap: 5px;
}

.price {
  font-weight: 600;
  color: var(--success);
}

.price.unknown {
  color: var(--muted);
  font-style: italic;
}

.materiaal-date {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.no-data {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.no-data h3 {
  margin: 0 0 10px 0;
  color: var(--text);
}

.no-data p {
  margin: 0 0 20px 0;
}

/* ====== MATERIAAL MODAL ====== */
.materiaal-modal .modal-content {
  max-width: 500px;
}

.materiaal-modal .form-field {
  margin-bottom: 20px;
}

.materiaal-modal .form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.materiaal-modal .form-field input,
.materiaal-modal .form-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--fs-sm);
}

.materiaal-modal .form-field input:focus,
.materiaal-modal .form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* ====== PRIJZEN MODAL ====== */
.prijzen-modal .modal-content {
  max-width: 800px;
}

.prijzen-overview {
  padding: 20px 0;
}

.prijzen-actions {
  margin-bottom: 20px;
}

.prijzen-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.prijjs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.prijjs-info h4 {
  margin: 0 0 5px 0;
  color: var(--text);
  font-size: var(--fs-sm);
}

.prijjs-info p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.prijjs-actions {
  display: flex;
  gap: 5px;
}

/* ====== BUDGET SYSTEEM ====== */
.budget-overview {
  padding: 20px;
}

.budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.budget-actions {
  display: flex;
  gap: 10px;
}

.budget-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.budget-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.budget-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.budget-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.budget-card.overbudget {
  border-color: var(--danger);
  background: #fef2f2;
}

.budget-card.warning {
  border-color: var(--warning);
  background: #fffbeb;
}

.budget-card.caution {
  border-color: #f59e0b;
  background: #fffbeb;
}

.budget-card.good {
  border-color: var(--success);
  background: #f0fdf4;
}

.budget-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.budget-card-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.budget-card-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Post details styling */
.post-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.detail-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.detail-value {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  text-align: right;
  flex: 1;
  margin-left: 10px;
}

.budget-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.budget-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
}

.budget-amounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.budget-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.budget-label {
  font-weight: 500;
  color: var(--muted);
}

.budget-value {
  font-weight: 600;
  font-size: 14px;
}

.budget-value.spent {
  color: var(--warning);
}

.budget-value.remaining {
  color: var(--success);
}

.budget-value.overbudget {
  color: var(--danger);
}

.budget-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success) 0%, var(--warning) 70%, var(--danger) 100%);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: var(--fs-sm);
  color: var(--muted);
  text-align: right;
}

.budget-status {
  display: flex;
  justify-content: flex-end;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.status-badge.overbudget {
  background: var(--danger);
  color: white;
}

.status-badge.warning {
  background: var(--warning);
  color: white;
}

.status-badge.caution {
  background: #f59e0b;
  color: white;
}

.status-badge.good {
  background: var(--success);
  color: white;
}

/* ====== BUDGET MODAL ====== */
.budget-modal .modal-content {
  max-width: 600px;
}

.budget-modal .form-field {
  margin-bottom: 20px;
}

.budget-modal .form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.budget-modal .form-field input,
.budget-modal .form-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--fs-sm);
}

.budget-modal .form-field input:focus,
.budget-modal .form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* ====== BUDGET SETTINGS ====== */
.budget-settings-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.budget-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.budget-setting-info h4 {
  margin: 0 0 5px 0;
  color: var(--text);
  font-size: var(--fs-sm);
}

.budget-setting-info p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.budget-setting-input {
  width: 150px;
}

.budget-setting-input input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: right;
}

/* ====== STATS ENHANCEMENTS ====== */
.stat-number.positive {
  color: var(--success);
}

.stat-number.negative {
  color: var(--danger);
}

/* ====== MATERIAAL AANVRAGEN - VERTICALE LIJST LAYOUT ====== */
.aanvragen-overview {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f5;
  min-height: 100vh;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Global budget overzicht */
.global-budget {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e8f0;
}

.budget-item {
  text-align: center;
}

.budget-label {
  font-size: 14px;
  color: #718096;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.budget-value {
  font-size: 14px;
  font-weight: 700;
}

.budget-positive {
  color: #38a169;
}

.budget-negative {
  color: #e53e3e;
}

.budget-warning {
  color: #d69e2e;
}

/* Verticale lijst */
.vertical-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  padding: 20px;
  border-bottom: 3px solid #e53e3e;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.list-item:hover {
  background-color: #f8fafc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.list-item:last-child {
  border-bottom: 3px solid #e53e3e;
  margin-bottom: 0;
}

.item-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.post-badge {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-right: 16px;
}

.item-info {
  flex: 1;
}

.item-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 4px 0;
}

.item-meta {
  font-size: var(--fs-sm);
  color: #718096;
  margin: 0;
}

/* Post budget sectie */
.post-budget-section {
  background: #f7fafc;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid #e2e8f0;
}

.post-budget-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.post-budget-title .icon {
  margin-right: 8px;
}

.budget-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.budget-before, .budget-after, .budget-difference {
  text-align: center;
  padding: 12px;
  border-radius: 6px;
}

.budget-before {
  background: #e6fffa;
  border: 1px solid #81e6d9;
}

.budget-after {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
}

.budget-difference {
  background: #fef5e7;
  border: 1px solid #fbd38d;
}

.budget-comparison-label {
  font-size: var(--fs-sm);
  color: #718096;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.budget-comparison-value {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.budget-before .budget-comparison-value {
  color: #319795;
}

.budget-after .budget-comparison-value {
  color: #38a169;
}

.budget-difference .budget-comparison-value {
  color: #d69e2e;
}

.budget-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  color: #718096;
  margin: 0;
}

/* Materiaal sectie */
.materials-section {
  margin: 16px 0;
}

.materials-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 12px;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.material-info {
  display: flex;
  align-items: center;
  flex: 1;
}

/* Material icon weggehaald */

.material-details {
  flex: 1;
}

.material-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 2px 0;
}

.material-cost {
  font-size: var(--fs-sm);
  color: #38a169;
  font-weight: 700;
  margin: 0;
}

.material-actions {
  display: flex;
  gap: 8px;
}

.material-action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-action-btn.success {
  background-color: #48bb78;
  color: white;
}

.material-action-btn.success:hover {
  background-color: #38a169;
  transform: scale(1.05);
}

.material-action-btn.danger {
  background-color: #f56565;
  color: white;
}

.material-action-btn.danger:hover {
  background-color: #e53e3e;
  transform: scale(1.05);
}

.material-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Item footer */
.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.item-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background-color: #fef5e7;
  color: #d69e2e;
}

.status-approved {
  background-color: #f0fff4;
  color: #38a169;
}

.status-rejected {
  background-color: #fed7d7;
  color: #e53e3e;
}

.item-total {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #2d3748;
}

.item-total .cost {
  color: #38a169;
}

/* Statistieken bovenaan - 4 kolommen */
.aanvragen-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.aanvragen-stats .stat-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aanvragen-stats .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #007bff;
}

.aanvragen-stats .stat-card.pending::before {
  background: #ffc107;
}

.aanvragen-stats .stat-card.approved::before {
  background: #28a745;
}

.aanvragen-stats .stat-card.rejected::before {
  background: #dc3545;
}

.aanvragen-stats .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aanvragen-stats .stat-card h3 {
  margin: 0 0 12px 0;
  color: #6c757d;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aanvragen-stats .stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #007bff;
  line-height: 1;
}

.aanvragen-stats .stat-card.pending .stat-number {
  color: #ffc107;
}

.aanvragen-stats .stat-card.approved .stat-number {
  color: #28a745;
}

.aanvragen-stats .stat-card.rejected .stat-number {
  color: #dc3545;
}

/* Filters en zoekbalk */
.aanvragen-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aanvragen-filters .input {
  min-width: 180px;
  flex: 1;
  max-width: 300px;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: var(--fs-sm);
}

.aanvragen-filters .input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Klassieke tabel */
.aanvragen-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.2fr 0.8fr 1fr 1fr 1.8fr;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-body {
  max-height: 600px;
  overflow-y: auto;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.2fr 0.8fr 1fr 1fr 1.8fr;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid #dee2e6;
  transition: all 0.2s ease;
  align-items: center;
}

.table-row:hover {
  background: #f8f9fa;
}

.table-row:last-child {
  border-bottom: none;
}

.table-cell {
  display: flex;
  align-items: center;
  font-size: var(--fs-sm);
  color: #212529;
}

.oefening-info strong {
  display: block;
  font-weight: 600;
  color: #212529;
  margin-bottom: 4px;
  font-size: var(--fs-sm);
}

.oefening-info small {
  color: #6c757d;
  font-size: var(--fs-sm);
}

.materiaal-info strong {
  display: block;
  font-weight: 600;
  color: #212529;
  margin-bottom: 4px;
  font-size: var(--fs-sm);
}

.materiaal-info small {
  color: #6c757d;
  font-size: var(--fs-sm);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.approved {
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.rejected {
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Actie knoppen */
.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--fs-sm);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-sm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Text kleuren */
.text-success {
  color: #28a745;
  font-weight: 600;
}

.text-danger {
  color: #dc3545;
  font-weight: 600;
}

.text-muted {
  color: #6c757d;
  font-weight: 600;
}

/* Responsive aanvragen tabel - Klassieke Layout */
@media (max-width: 1200px) {
  .table-header,
  .table-row {
    grid-template-columns: 1.5fr 1fr 0.8fr 1fr 0.6fr 0.8fr 0.8fr 1.5fr;
    gap: 10px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  /* Fix header width on mobile */
  header {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 15px !important;
  }
  
  /* Fix content centering on mobile */
  #content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .aanvragen-overview {
    padding: 10px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f5f5f5;
    min-height: 100vh;
    width: 100%;
  }
  
  .aanvragen-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .aanvragen-stats .stat-card {
    padding: 20px;
  }
  
  .aanvragen-stats .stat-number {
    font-size: var(--fs-lg);
  }
  
  .aanvragen-filters {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    margin: 0 10px 20px 10px;
  }
  
  .aanvragen-filters .input {
    max-width: none;
    margin-bottom: 10px;
    width: 100%;
  }
  
  .global-budget {
    margin: 0 10px 20px 10px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .global-budget .budget-item {
    width: 100%;
  }
  
  .table-header {
    display: none;
  }
  
  .table-row {
    display: block;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .table-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
  }
  
  .table-cell:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  .table-cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6c757d;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
  }
  
  .table-actions {
    justify-content: center;
    margin-top: 15px;
  }
  
  .action-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn-sm {
    margin: 2px;
  }
}

@media (max-width: 480px) {
  .aanvragen-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .aanvragen-stats .stat-card {
    padding: 15px;
  }
  
  .aanvragen-stats .stat-number {
    font-size: var(--fs-lg);
  }
  
  .table-row {
    padding: 15px;
  }
  
  .table-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .table-cell::before {
    min-width: auto;
    margin-bottom: 5px;
  }
}

/* ====== CATALOGUS PROGRAMMA'S ====== */
.catalogus-overview {
  padding: 20px;
}

.catalogus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.catalogus-actions {
  display: flex;
  gap: 10px;
}

.catalogus-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.catalogus-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.catalogus-groups {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.catalogus-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.group-header h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.group-actions {
  display: flex;
  gap: 5px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.program-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px;
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.program-header h4 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.program-actions {
  display: flex;
  gap: 5px;
}

.program-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-cost {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cost-label {
  font-weight: 500;
  color: var(--muted);
}

.cost-value {
  font-weight: 600;
  color: var(--success);
}

.program-date {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ====== CATALOGUS MODAL ====== */
.catalogus-modal .modal-content {
  max-width: 600px;
}

.catalogus-modal .form-field {
  margin-bottom: 20px;
}

.catalogus-modal .form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.catalogus-modal .form-field input,
.catalogus-modal .form-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--fs-sm);
}

.catalogus-modal .form-field input:focus,
.catalogus-modal .form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* ====== GROUP MANAGEMENT ====== */
.group-management {
  padding: 20px 0;
}

.group-management .group-actions {
  margin-bottom: 20px;
}

.groups-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.group-info h4 {
  margin: 0 0 5px 0;
  color: var(--text);
  font-size: var(--fs-sm);
}

.group-info p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ====== AANMELDINGEN SYSTEEM ====== */
.aanmeldingen-overview {
  padding: 20px;
}

.aanmeldingen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.aanmeldingen-actions {
  display: flex;
  gap: 10px;
}

.aanmeldingen-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.aanmeldingen-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.aanmeldingen-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.signup-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.signup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.signup-card.signed_up {
  border-left: 4px solid var(--success);
}

.signup-card.absent {
  border-left: 4px solid var(--danger);
}

.signup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.signup-info h3 {
  margin: 0 0 5px 0;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.signup-exercise {
  margin: 0 0 5px 0;
  color: var(--primary);
  font-weight: 500;
  font-size: var(--fs-sm);
}

.signup-details {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.signup-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.signed_up {
  background: var(--success);
  color: white;
}

.status-badge.absent {
  background: var(--danger);
  color: white;
}

.signup-actions {
  display: flex;
  gap: 5px;
}

.signup-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-reason {
  margin: 0;
  padding: 10px;
  background: var(--bg);
  border-radius: 4px;
  color: var(--text);
  font-size: var(--fs-sm);
}

.signup-date {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  text-align: right;
}

/* ====== AANMELDINGEN MODAL ====== */
.aanmeldingen-modal .modal-content {
  max-width: 600px;
}

.aanmeldingen-modal .form-field {
  margin-bottom: 20px;
}

.aanmeldingen-modal .form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.aanmeldingen-modal .form-field input,
.aanmeldingen-modal .form-field select,
.aanmeldingen-modal .form-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--fs-sm);
}

.aanmeldingen-modal .form-field input:focus,
.aanmeldingen-modal .form-field select:focus,
.aanmeldingen-modal .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.aanmeldingen-modal .form-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* ====== PENDING USERS SYSTEEM ====== */
.pending-users-overview {
  padding: 20px;
}

.pending-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.pending-users-actions {
  display: flex;
  gap: 10px;
}

.pending-users-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.pending-users-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.pending-users-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pending-user-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.pending-user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pending-user-card.pending {
  border-left: 4px solid var(--warning);
}

.pending-user-card.rejected {
  border-left: 4px solid var(--danger);
}

.pending-user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.pending-user-info h3 {
  margin: 0 0 5px 0;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.pending-user-email {
  margin: 0 0 5px 0;
  color: var(--primary);
  font-weight: 500;
  font-size: var(--fs-sm);
}

.pending-user-details {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.pending-user-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background: var(--warning);
  color: white;
}

.status-badge.rejected {
  background: var(--danger);
  color: white;
}

.status-badge.active {
  background: var(--success);
  color: white;
}

.pending-user-actions {
  display: flex;
  gap: 5px;
}

.btn-icon.success {
  color: var(--success);
}

.btn-icon.success:hover {
  background-color: var(--success);
  color: white;
}

.pending-user-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pending-user-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.detail-label {
  font-weight: 500;
  color: var(--muted);
}

.detail-value {
  font-weight: 600;
  color: var(--text);
}

/* ====== PENDING USERS MODALS ====== */
.pending-users-modal .modal-content {
  max-width: 600px;
}

.pending-users-modal .form-field {
  margin-bottom: 20px;
}

.pending-users-modal .form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.pending-users-modal .form-field input,
.pending-users-modal .form-field select,
.pending-users-modal .form-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--fs-sm);
}

.pending-users-modal .form-field input:focus,
.pending-users-modal .form-field select:focus,
.pending-users-modal .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.pending-users-modal .form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.approve-user-info,
.reject-user-info {
  background: var(--bg);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.approve-user-info h3,
.reject-user-info h3 {
  margin: 0 0 5px 0;
  color: var(--text);
  font-size: var(--fs-sm);
}

.approve-user-info p,
.reject-user-info p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.posts-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.checkbox-label:hover {
  background-color: var(--bg);
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}

.checkbox-label span {
  font-size: var(--fs-sm);
  color: var(--text);
}

/* ====== SESSIE TRACKING SYSTEEM ====== */
.sessie-tracking-overview {
  padding: 20px;
}

.sessie-tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.sessie-tracking-actions {
  display: flex;
  gap: 10px;
}

.sessie-tracking-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.sessie-tracking-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.sessie-tracking-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sessie-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.sessie-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sessie-card.attended {
  border-left: 4px solid var(--success);
}

.sessie-card.absent {
  border-left: 4px solid var(--danger);
}

.sessie-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.sessie-info h3 {
  margin: 0 0 5px 0;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.sessie-date {
  margin: 0 0 5px 0;
  color: var(--primary);
  font-weight: 500;
  font-size: var(--fs-sm);
}

.sessie-location {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.sessie-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.status-badge.attended {
  background: var(--success);
  color: white;
}

.status-badge.absent {
  background: var(--danger);
  color: white;
}

.sessie-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.sessie-details {
  flex: 1;
}

.sessie-actions {
  display: flex;
  gap: 5px;
}

/* ====== USER STATS SECTION ====== */
.user-stats-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.user-stats-section h3 {
  margin: 0 0 20px 0;
  color: var(--text);
  font-size: var(--fs-sm);
}

.user-stats-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.user-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.user-info h4 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-sm);
}

.user-stats {
  display: flex;
  gap: 15px;
}

.user-stats .stat {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 500;
}

/* ====== SESSIE TRACKING MODALS ====== */
.sessie-tracking-modal .modal-content {
  max-width: 600px;
}

.sessie-tracking-modal .form-field {
  margin-bottom: 20px;
}

.sessie-tracking-modal .form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.sessie-tracking-modal .form-field input,
.sessie-tracking-modal .form-field select,
.sessie-tracking-modal .form-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--fs-sm);
}

.sessie-tracking-modal .form-field input:focus,
.sessie-tracking-modal .form-field select:focus,
.sessie-tracking-modal .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.sessie-tracking-modal .form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.sessie-tracking-modal .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.sessie-tracking-modal .checkbox-label:hover {
  background-color: var(--bg);
}

.sessie-tracking-modal .checkbox-label input[type="checkbox"] {
  margin: 0;
}

.sessie-tracking-modal .checkbox-label span {
  font-size: var(--fs-sm);
  color: var(--text);
}

/* ====== REGIO MANAGEMENT SYSTEEM ====== */
.regio-management-overview {
  padding: 20px;
}

.regio-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.regio-management-actions {
  display: flex;
  gap: 10px;
}

.regio-management-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.regio-management-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.regio-management-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.regio-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.regio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.regio-header h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.post-count {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.regio-posts {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px;
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-info h4 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.post-location {
  margin: 0 0 5px 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.post-contact {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.post-actions {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 20px;
}

/* ====== REGIO MANAGEMENT MODALS ====== */
.regio-management-modal .modal-content {
  max-width: 500px;
}

.regio-management-modal .form-field {
  margin-bottom: 20px;
}

.regio-management-modal .form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.regio-management-modal .form-field input,
.regio-management-modal .form-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--fs-sm);
}

.regio-management-modal .form-field input:focus,
.regio-management-modal .form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* ====== WACHTWOORD WIJZIGING MODAL ====== */
.user-info-display {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.user-info-display p {
  margin: 5px 0;
  color: #495057;
}

.password-requirements {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 6px;
  padding: 12px;
  margin-top: 15px;
}

.password-requirements small {
  font-weight: 600;
  color: #1976d2;
  display: block;
  margin-bottom: 8px;
}

.password-requirements ul {
  margin: 0;
  padding-left: 20px;
  color: #424242;
}

.password-requirements li {
  margin: 4px 0;
  font-size: var(--fs-sm);
}

/* Wachtwoord knop styling */
.btn-outline {
  background: transparent;
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 6px 12px;
  font-size: var(--fs-sm);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.btn-outline:hover {
  background: #dc2626;
  color: white;
}

/* Roles management styling */
.roles-management {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.roles-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.roles-stats .stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-left: 4px solid #dc2626;
}

.roles-stats .stat-card h4 {
  margin: 0 0 10px 0;
  color: #718096;
  font-size: var(--fs-base-rem);
  font-weight: 600;
}

.roles-stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
}

.roles-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.role-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e2e8f0;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.role-header h4 {
  margin: 0;
  color: #2d3748;
  font-size: var(--fs-lg-rem);
  font-weight: 600;
}

.role-badge {
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--fs-sm-rem);
  font-weight: 500;
}

.role-description {
  color: #64748b;
  font-size: var(--fs-base-rem);
  line-height: 1.5;
  margin: 0 0 15px 0;
}

.role-permissions {
  margin-bottom: 20px;
}

.role-permissions h5 {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: var(--fs-base-rem);
  font-weight: 600;
}

.permissions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-tag {
  background: #f0f9ff;
  color: #0369a1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: var(--fs-sm-rem);
  font-weight: 500;
  border: 1px solid #bae6fd;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px;
  transition: all 0.2s;
}

.permission-tag:hover {
  background: #e0f2fe;
  border-color: #0ea5e9;
  transform: translateY(-1px);
}

.no-permissions {
  color: #9ca3af;
  font-style: italic;
  font-size: 0.85rem;
  padding: 8px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px dashed #d1d5db;
}

.role-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-actions .btn {
  flex: 1;
  min-width: 80px;
  font-size: var(--fs-sm-rem);
  padding: 8px 12px;
}

/* Permissions selection in modals */
.permissions-selection {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  background: #f8fafc;
}

.permission-category {
  margin-bottom: 25px;
}

.permission-category:last-child {
  margin-bottom: 0;
}

.permission-category .category-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #dc2626;
  display: flex;
  align-items: center;
  gap: 8px;
}

.permission-category .category-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #dc2626;
  border-radius: 2px;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.permission-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
  overflow: hidden;
}

.permission-item:hover {
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.permission-checkbox {
  display: block;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.permission-checkbox input[type="checkbox"] {
  display: none;
}

.permission-content {
  padding: 15px;
}

.permission-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.permission-icon {
  font-size: var(--fs-xl);
  width: 24px;
  text-align: center;
}

.permission-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3748;
}

.permission-description {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.permission-affects {
  font-size: var(--fs-sm-rem);
  color: #4a5568;
}

.permission-affects strong {
  color: #2d3748;
  font-weight: 600;
}

.permission-affects ul {
  margin: 5px 0 0 0;
  padding-left: 15px;
}

.permission-affects li {
  margin: 2px 0;
  color: #718096;
}

/* Checkbox styling */
.permission-checkbox input[type="checkbox"]:checked + .permission-content {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  border-left: 4px solid #dc2626;
}

.permission-checkbox input[type="checkbox"]:checked + .permission-content .permission-name {
  color: #dc2626;
}

.permission-checkbox input[type="checkbox"]:checked + .permission-content .permission-icon {
  color: #dc2626;
}

/* Responsive design for permissions */
@media (max-width: 768px) {
  .permissions-selection {
    padding: 15px;
  }
  
  .permissions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .permission-content {
    padding: 12px;
  }
  
  .permission-header {
    gap: 8px;
  }
  
  .permission-name {
    font-size: var(--fs-base-rem);
  }
  
  .permission-description {
    font-size: var(--fs-sm-rem);
  }
}

/* Users list in role modal */
.users-list {
  max-height: 400px;
  overflow-y: auto;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s;
}

.user-item:hover {
  background: #f8fafc;
}

.user-item:last-child {
  border-bottom: none;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dc2626;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--fs-base-rem);
}

.user-details h4 {
  margin: 0 0 4px 0;
  color: #2d3748;
  font-size: 0.95rem;
  font-weight: 600;
}

.user-details p {
  margin: 0 0 4px 0;
  color: #64748b;
  font-size: var(--fs-sm-rem);
}

.user-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.user-status.active {
  background: #dcfce7;
  color: #166534;
}

.user-status.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.user-actions {
  display: flex;
  gap: 8px;
}

/* Roles table styling */
.roles-table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  padding: 20px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.table-header h4 {
  margin: 0 0 8px 0;
  font-size: var(--fs-xl);
  font-weight: 600;
}

.table-header p {
  margin: 0;
  opacity: 0.9;
  font-size: var(--fs-base-rem);
}

.roles-table {
  overflow-x: auto;
}

.roles-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base-rem);
}

.roles-table th {
  background: #f8fafc;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.roles-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.roles-table tr:hover {
  background: #f8fafc;
}

.role-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.navigation-cell {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.capabilities-cell ul {
  margin: 0;
  padding-left: 15px;
  font-size: 0.85rem;
  color: #4a5568;
}

.capabilities-cell li {
  margin: 4px 0;
  line-height: 1.3;
}

.access-cell {
  text-align: center;
}

.access-badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--fs-sm-rem);
  font-weight: 500;
  white-space: nowrap;
}

/* Dashboard Postcards Cell */
.dashboard-postcards-cell {
  padding: 8px 0;
}

.mini-postcards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.mini-postcard {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: var(--fs-sm-rem);
  color: #334155;
  transition: all 0.2s ease;
  cursor: help;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mini-postcard:hover {
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
  border-color: #94a3b8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.mini-postcard-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.mini-postcard-title {
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.no-postcards {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: var(--fs-sm-rem);
  font-style: italic;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
}

.no-postcards-icon {
  font-size: 1rem;
  opacity: 0.7;
}

.actions-cell {
  text-align: center;
  white-space: nowrap;
}

.actions-cell .btn {
  margin: 2px;
}

.regio-info {
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.regio-info h5 {
  margin: 0 0 15px 0;
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
}

.regio-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.regio-section h6 {
  margin: 0 0 8px 0;
  color: #374151;
  font-size: var(--fs-base-rem);
  font-weight: 600;
}

.regio-section p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Responsive design for roles management */
@media (max-width: 768px) {
  .roles-management {
    padding: 15px;
  }
  
  .roles-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
  }
  
  .roles-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .role-actions {
    flex-direction: column;
  }
  
  .permissions-grid {
    grid-template-columns: 1fr;
  }
  
  .user-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .user-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .regio-sections {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .roles-table {
    font-size: var(--fs-sm-rem);
  }
  
  .roles-table th,
  .roles-table td {
    padding: 10px 8px;
  }
  
  .mini-postcards-container {
    flex-direction: column;
    gap: 6px;
  }
  
  .mini-postcard {
    font-size: 0.75rem;
    padding: 5px 8px;
    gap: 5px;
  }
  
  .mini-postcard-icon {
    font-size: 1rem;
  }
  
  .actions-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .actions-cell .btn {
    width: 100%;
    margin: 0;
  }
}

.btn-outline:active {
  transform: translateY(1px);
}

/* ====== Moderne Permissie UI Styling ====== */

.modern-permission-management {
  margin-top: 20px;
}

.permission-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.permission-count {
  font-weight: 500;
  color: #374151;
  margin-left: auto;
}

.modern-permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.permission-card {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
  background: white;
}

.permission-card:hover {
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.permission-card.selected {
  border-color: #dc2626;
  background: #fef2f2;
}

.permission-card .permission-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.permission-card .permission-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #dc2626;
}

.permission-card .permission-icon {
  font-size: var(--fs-xxl);
}

.permission-card .permission-name {
  font-weight: 600;
  font-size: var(--fs-lg-rem);
  color: #2d3748;
}

.permission-card .permission-description {
  color: #64748b;
  font-size: var(--fs-base-rem);
  margin-bottom: 8px;
  line-height: 1.4;
}

.permission-card .permission-category {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: var(--fs-sm-rem);
  display: inline-block;
}

/* Header Knoppen Management */
.header-buttons-section {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.header-buttons-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 15px;
  font-size: var(--fs-lg-rem);
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.button-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.2s;
}

.button-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.button-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #dc2626;
}

.button-icon {
  font-size: var(--fs-xl);
}

.button-name {
  font-size: var(--fs-base-rem);
  font-weight: 500;
  color: #374151;
}

/* ====== Postcard Layout Styles ====== */
.postcard-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px;
}

.postcard {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.postcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e53e3e, #c53030, #7c2d12);
  border-radius: 24px;
  padding: 3px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}

.postcard:hover::before {
  opacity: 0.8;
}

.postcard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.postcard-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.postcard-icon {
  font-size: 2.5rem;
  margin-right: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  flex-shrink: 0;
}

.postcard-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2d3748;
  line-height: 1.2;
}

.postcard-description {
  color: #718096;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Welcome card styling - alleen voor dashboard postcards */
.postcard-container .welcome-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 50%, #7c2d12 100%);
  color: white;
  text-align: center;
}

.postcard-container .welcome-card::before {
  display: none;
}

.postcard-container .welcome-card .postcard-title {
  color: white;
}

.postcard-container .welcome-card .postcard-description {
  color: white;
}

.postcard-container .welcome-card .stat-number {
  color: white !important;
}

.postcard-container .welcome-card .stat-label {
  color: white !important;
}

.postcard-container .welcome-card .postcard-icon {
  background: rgba(255,255,255,0.2);
  margin: 0 auto 20px;
}

.oefeningen .postcard-icon {
  background: linear-gradient(135deg, #48bb78, #38a169);
}

.afmeldingen .postcard-icon {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.aanvragen .postcard-icon {
  background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.instellingen .postcard-icon {
  background: linear-gradient(135deg, #4299e1, #3182ce);
}

.recente-oefeningen .postcard-icon {
  background: linear-gradient(135deg, #38b2ac, #319795);
}

.notificaties .postcard-icon {
  background: linear-gradient(135deg, #f56565, #e53e3e);
}

.stats-row {
  display: flex;
  justify-content: space-around;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 2;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: white !important;
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--fs-base-rem);
  color: white !important;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.info-item {
  padding: 16px;
  background: #f7fafc;
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

/* Klikbare info-items styling */
.clickable-info-item {
  transition: all 0.3s ease;
  cursor: pointer !important;
}

.clickable-info-item:hover {
  background: #edf2f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left-color: #48bb78;
}

.info-title {
  font-weight: 600;
  color: #2d3748;
  font-size: var(--fs-base-rem);
  margin-bottom: 4px;
}

.info-value {
  color: #4a5568;
  font-size: 0.85rem;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 1.3rem;
  color: white;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.activity-time {
  color: #718096;
  font-size: 0.85rem;
}

.oefeningen .activity-icon {
  background: linear-gradient(135deg, #48bb78, #38a169);
}

.afmeldingen .activity-icon {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.aanvragen .activity-icon {
  background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.instellingen .activity-icon {
  background: linear-gradient(135deg, #4299e1, #3182ce);
}

.recente-oefeningen .activity-icon {
  background: linear-gradient(135deg, #38b2ac, #319795);
}

.notificaties .activity-icon {
  background: linear-gradient(135deg, #f56565, #e53e3e);
}

/* Responsive design voor postcards */
@media (max-width: 768px) {
  .postcard-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  
  .postcard {
    padding: 20px;
  }
  
  .postcard-header {
    flex-direction: column;
    text-align: center;
  }
  
  .postcard-icon {
    margin: 0 auto 16px;
  }
  
  .stats-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra responsive voor kleine schermen (360x720) */
@media (max-width: 480px) {
  .postcard-container {
    padding: 12px;
    gap: 12px;
  }
  
  .postcard {
    padding: 16px;
    border-radius: 16px;
  }
  
  /* Verberg welcome card op mobiele telefoons */
  .welcome-card {
    display: none;
  }
  
  .postcard-icon {
    width: 48px;
    height: 48px;
    font-size: 2rem;
    margin: 0 auto 12px;
  }
  
  .postcard-title {
    font-size: var(--fs-xl);
    margin-bottom: 6px;
  }
  
  .postcard-description {
    font-size: var(--fs-base-rem);
    line-height: 1.5;
  }
  
  .stats-row {
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: var(--fs-sm-rem);
  }
  
  .info-grid {
    gap: 12px;
    margin-top: 16px;
  }
  
  .info-item {
    padding: 12px;
    border-radius: 8px;
  }
  
  .info-title {
    font-size: 0.85rem;
  }
  
  .info-value {
    font-size: var(--fs-sm-rem);
  }
  
  .activity-item {
    padding: 12px 0;
  }
  
  .activity-icon {
    width: 36px;
    height: 36px;
    font-size: var(--fs-lg-rem);
    margin-right: 12px;
  }
  
  .activity-title {
    font-size: var(--fs-base-rem);
  }
  
  .activity-time {
    font-size: var(--fs-sm-rem);
  }
}

/* Extra kleine schermen (360px en kleiner) */
@media (max-width: 360px) {
  .postcard-container {
    padding: 8px;
    gap: 8px;
  }
  
  .postcard {
    padding: 12px;
    border-radius: 12px;
  }
  
  .postcard-icon {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    margin: 0 auto 10px;
  }
  
  .postcard-title {
    font-size: var(--fs-lg-rem);
    margin-bottom: 4px;
  }
  
  .postcard-description {
    font-size: 0.85rem;
  }
  
  .stats-row {
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: var(--fs-xs);
  }
  
  .info-grid {
    gap: 8px;
    margin-top: 12px;
  }
  
  .info-item {
    padding: 10px;
    border-radius: 6px;
  }
  
  .info-title {
    font-size: var(--fs-sm-rem);
  }
  
  .info-value {
    font-size: var(--fs-xs);
  }
  
  .activity-item {
    padding: 10px 0;
  }
  
  .activity-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-right: 10px;
  }
  
  .activity-title {
    font-size: 0.85rem;
  }
  
  .activity-time {
    font-size: var(--fs-xs);
  }
}

/* ====== Oefeningen Pagina Specifieke Styling ====== */
.oefeningen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.oefeningen-header h2 {
  text-align: left !important;
  width: auto !important;
}

.new-exercise-section {
  margin: 20px 0;
  text-align: left;
}

.new-exercise-section .btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
}

/* ====== Desktop Mobile Layout (Layout 5 aangepast voor desktop) ====== */
.oefening-postcard.desktop-mobile-layout {
  max-width: 100%;
  width: 100%;
  padding: 20px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  min-height: 200px; /* Zorg voor minimale hoogte voor consistentie */
}

.afmeld-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.afmeldingen-count {
  color: #4a5568;
  font-size: var(--fs-base-rem);
  font-weight: 500;
  background: #f7fafc;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

/* Hover effect wordt nu via JavaScript gedaan */

/* ====== MODAL DESIGN 1 STYLING ====== */
.modal-body {
    padding: 15px;
    height: calc(100% - 60px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.form-row-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.form-row-5 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.materials-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.materials-row .form-group {
    margin-bottom: 0;
}

/* Catalogus programma info styling */
.catalogus-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
}

.catalogus-info p {
  margin: 4px 0;
  font-size: var(--fs-base-rem);
}

.catalogus-info strong {
  color: #495057;
}

/* Aanmeldknop styling */
.aanmeldknop-group {
  margin-top: 15px;
}

.aanmeldknop-container {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 250px;
}

.aanmeldknop-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.aanmeldknop-container label {
  margin: 0;
  font-size: var(--fs-base-rem);
  cursor: pointer;
  user-select: none;
}

/* Oefeningen filter knoppen styling */
.new-exercise-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.new-exercise-section .btn {
  white-space: nowrap;
}

.new-exercise-section .btn.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.new-exercise-section .btn:not(.active) {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.new-exercise-section .btn:not(.active):hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* Registratie formulier styling */
.registration-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.registration-header {
  text-align: center;
  margin-bottom: 40px;
}

.registration-header h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 2rem;
}

.registration-header p {
  color: #666;
  font-size: var(--fs-lg-rem);
}

.registration-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.registration-form .form-group {
  margin-bottom: 20px;
}

.registration-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.registration-form .form-help {
  display: block;
  margin-top: 5px;
  font-size: 0.875rem;
  color: #666;
}

.registration-form .form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.registration-form .form-actions .btn {
  flex: 1;
  min-width: 150px;
  padding: 12px 20px;
  font-size: 1rem;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  margin-top: 20px;
  text-align: center;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
  margin-top: 20px;
  text-align: center;
}

.hidden {
  display: none;
}

.form-group {
    margin-bottom: 8px;
}

.form-group label {
    font-size: var(--fs-sm);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 6px 8px;
    font-size: var(--fs-sm);
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
}

.form-group select[multiple] {
    height: 60px;
}

.buttons-row {
    margin-top: auto;
    text-align: right;
    padding-top: 10px;
}

/* Modal specifieke styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 800px;
    height: 450px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: var(--fs-lg);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Exercise type selection */
.exercise-type-selection {
    text-align: center;
    margin-bottom: 20px;
}

.exercise-type-selection h3 {
    margin-bottom: 15px;
    color: #374151;
}

.exercise-type-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.exercise-type-btn {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: var(--fs-sm);
    transition: all 0.2s;
}

.exercise-type-btn:hover {
    border-color: #667eea;
    background: #f8fafc;
}

.exercise-type-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* Hidden class */
.hidden {
    display: none !important;
}

.postcard-header-mobile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  min-height: 60px; /* Zorg voor consistente hoogte */
  gap: 16px; /* Ruimte tussen links en rechts */
}

.postcard-title-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1; /* Neem beschikbare ruimte in */
  min-width: 0; /* Zorg ervoor dat het kan krimpen */
  overflow: hidden; /* Voorkom overflow */
}

.postcard-title-mobile h3 {
  margin: 0;
  color: #1a202c;
  font-size: var(--fs-xxl);
  font-weight: 700;
  line-height: 1.2;
  min-height: 28px; /* Consistente hoogte voor H3 */
  display: flex;
  align-items: center; /* Center verticaal binnen de min-height */
  flex-shrink: 0; /* Voorkom dat H3 krimpt */
  min-width: 0; /* Zorg ervoor dat H3 kan krimpen als nodig */
}

.post-name-subject-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0; /* Zorg ervoor dat flex items kunnen krimpen */
  max-width: 100%; /* Voorkom dat het te breed wordt */
}

.post-name-subject-row .subject-text {
  color: #4a5568;
  font-size: var(--fs-base-rem);
  font-weight: 500;
  background: #f7fafc;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px; /* Kleinere max-width */
  flex-shrink: 1; /* Laat het krimpen als nodig */
}

/* Verberg subject-text in post-name-subject-row op mobiel */
@media (max-width: 768px) {
  .post-name-subject-row .subject-text {
    display: none;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .subject-text {
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    font-size: var(--fs-sm-rem);
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
  }
  
  .post-name-subject-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px;
    width: 100%;
  }
  
  .subject-section-mobile {
    width: 100%;
    overflow: hidden;
  }
  
  /* Oefening postcard specifieke styling voor kleine schermen */
  .oefening-postcard {
    padding: 12px !important;
    overflow: hidden;
    word-wrap: break-word;
  }
  
  .oefening-postcard * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .postcard-header-mobile {
    width: 100%;
    overflow: hidden;
  }
  
  .postcard-title-mobile {
    width: 100%;
    overflow: hidden;
  }
}

.exercise-type-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: var(--fs-sm-rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  margin-top: 4px; /* Kleine margin voor consistentie */
  color: white; /* Default color, will be overridden by specific classes */
}

.instructor-section {
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.instructor-text {
  color: #4a5568;
  font-size: var(--fs-base-rem);
  font-weight: 500;
}

/* Thema kleuren voor badges */
.exercise-type-badge.brand {
  background: linear-gradient(135deg, #f56565, #e53e3e); /* Rood */
}

.exercise-type-badge.hv {
  background: linear-gradient(135deg, #f6e05e, #ecc94b); /* Geel */
  color: #2d3748; /* Donkere tekst voor gele achtergrond */
}

.exercise-type-badge.ibgs {
  background: linear-gradient(135deg, #48bb78, #38a169); /* Groen */
}

.exercise-type-badge.wo {
  background: linear-gradient(135deg, #4299e1, #3182ce); /* Blauw */
}

.exercise-type-badge.specialisme {
  background: linear-gradient(135deg, #9f7aea, #805ad5); /* Paars */
}

.exercise-type-badge.lrh {
  background: linear-gradient(135deg, #ffffff, #f7fafc); /* Wit */
  color: #2d3748; /* Donkere tekst voor witte achtergrond */
  border: 1px solid #e2e8f0; /* Subtiele border voor wit */
}

.exercise-type-badge.incidentoverstijgend {
  background: linear-gradient(135deg, #ed8936, #dd6b20); /* Oranje */
}

.exercise-type-badge.catalogusmoment {
  background: linear-gradient(135deg, #fed7aa, #fdba74); /* Licht oranje */
  color: #2d3748; /* Donkere tekst voor oranje achtergrond */
}

/* Catalogus moment postcard achtergrond */
.postcard.catalogus-postcard {
  background: linear-gradient(135deg, #fef3e7, #fde68a); /* Licht oranje tint */
  border-left: 4px solid #f59e0b; /* Oranje accent border */
}

.postcard.catalogus-postcard:hover {
  background: linear-gradient(135deg, #fef3e7, #fde68a);
  border-left-color: #d97706; /* Donkerder oranje op hover */
}

/* Compacte oefening details styling */
.oefening-details-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-row-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
}

.detail-item.full-width {
  flex: 100%;
  min-width: 100%;
}

.detail-item strong {
  color: #4a5568;
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item span {
  color: #2d3748;
  font-weight: 500;
  font-size: var(--fs-base-rem);
  line-height: 1.3;
}

.detail-section-compact {
  margin-top: 8px;
}

.detail-section-compact h3 {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #2d3748;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

/* Mobile responsive voor compacte layout */
@media (max-width: 768px) {
  .detail-row-compact {
    flex-direction: column;
    gap: 8px;
  }
  
  .detail-item {
    min-width: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .detail-item strong {
    font-size: 0.7rem;
    margin-right: 8px;
  }
  
  .detail-item span {
    font-size: 0.85rem;
    text-align: right;
  }
  
  .detail-item.full-width {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .detail-item.full-width span {
    text-align: left;
    margin-top: 4px;
  }
}

/* Future Development Styles */
.future-development {
  padding: 20px;
}

.development-info {
  margin-top: 20px;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.feature-list {
  margin: 20px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  margin: 10px 0;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.feature-icon {
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.feature-content h5 {
  margin: 0 0 5px 0;
  color: #2d3748;
  font-size: var(--fs-base);
}

.feature-content p {
  margin: 0;
  color: #6c757d;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.timeline {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start;
}

.timeline-date {
  background: #667eea;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
}

.timeline-content h5 {
  margin: 0 0 5px 0;
  color: #2d3748;
  font-size: var(--fs-base);
}

.timeline-content p {
  margin: 0;
  color: #6c757d;
  font-size: var(--fs-sm);
}

.feedback-section {
  margin-top: 30px;
  padding: 20px;
  background: #e3f2fd;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Subject Section Styles */
.subject-section-mobile {
  margin: 10px 0;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.subject-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.subject-label {
  font-weight: 600;
  color: #4a5568;
  font-size: var(--fs-base-rem);
}

.subject-content-mobile {
  margin-left: 8px;
}

.subject-text {
  color: #2d3748;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Material Detail Styles */
.detail-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.detail-section h3 {
  color: #2d3748;
  margin: 0 0 15px 0;
  font-size: var(--fs-lg-rem);
  font-weight: 600;
}

.materials-detail-empty {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #cbd5e0;
}

.materials-detail-empty p {
  margin: 5px 0;
  color: #6c757d;
}

.text-muted {
  color: #9ca3af !important;
  font-size: var(--fs-base-rem);
}

.materials-detail-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.material-detail-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #cbd5e0;
  transition: all 0.2s ease;
}

.material-detail-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.material-detail-item.approved {
  border-left-color: #48bb78;
  background: #f0fff4;
}

.material-detail-item.rejected {
  border-left-color: #f56565;
  background: #fff5f5;
}

.material-detail-item.pending {
  border-left-color: #ed8936;
  background: #fffaf0;
}

.material-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.material-detail-header h4 {
  margin: 0;
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--fs-sm-rem);
  font-weight: 500;
}

.status-badge.approved {
  background: #c6f6d5;
  color: #22543d;
}

.status-badge.rejected {
  background: #fed7d7;
  color: #742a2a;
}

.status-badge.pending {
  background: #feebc8;
  color: #7b341e;
}

.material-detail-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-info-item {
  font-size: var(--fs-base-rem);
  color: #4a5568;
}

.detail-info-item strong {
  color: #2d3748;
}

.materials-detail-error {
  text-align: center;
  padding: 20px;
  background: #fed7d7;
  border-radius: 8px;
  color: #742a2a;
}

/* Afmeldingen Styles */
.afmeldingen-empty {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #cbd5e0;
}

.afmeldingen-empty p {
  margin: 0;
  color: #6c757d;
}

.afmeldingen-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.afmelding-item {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 12px;
  border-left: 4px solid #f56565;
}

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

.afmelding-header strong {
  color: #2d3748;
  font-size: 0.95rem;
}

.afmelding-date {
  color: #718096;
  font-size: 0.85rem;
}

.afmelding-reason {
  color: #4a5568;
  font-size: var(--fs-base-rem);
  line-height: 1.4;
}

/* Mobiele afmeldingen styling - Mobile Optimized */
@media (max-width: 768px) {
  .afmeldingen-list {
    gap: 12px; /* Consistente spacing tussen alle items */
  }
  
  .afmelding-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 16px; /* Consistente padding */
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    border-left: 3px solid #f56565;
    touch-action: manipulation;
    margin-bottom: 0; /* Verwijder extra margin */
  }
  
  .afmelding-item:active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(0.98);
  }
  
  .afmelding-header {
    flex-direction: column;
    align-items: flex-start; /* Consistente links uitlijning */
    gap: 5px;
    margin-bottom: 8px;
  }
  
  .afmelding-header strong {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 600;
    text-align: left; /* Expliciete links uitlijning */
  }
  
  .afmelding-date {
    font-size: var(--fs-xs);
    color: #718096;
    background: rgba(255, 255, 255, 0.6);
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 500;
    text-align: left; /* Consistente links uitlijning */
  }
  
  .afmelding-reason {
    font-size: var(--fs-sm-rem);
    margin-top: 8px;
    color: #4a5568;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 6px;
    text-align: left; /* Consistente links uitlijning */
  }
  
  .afmeldingen-empty {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    padding: 20px;
    text-align: center; /* Alleen voor empty state centreren */
  }
  
  .afmeldingen-empty p {
    color: #6c757d;
    font-weight: 500;
    font-size: var(--fs-base-rem);
    text-align: center; /* Consistente centrering voor empty state */
  }
  
  /* Consistente styling voor alle signup cards */
  .signup-card {
    margin-bottom: 12px; /* Consistente spacing */
    padding: 16px; /* Consistente padding */
  }
  
  .signup-header {
    text-align: left; /* Consistente links uitlijning */
  }
  
  .signup-info h3 {
    text-align: left; /* Consistente links uitlijning */
  }
  
  .signup-info p {
    text-align: left; /* Consistente links uitlijning */
  }
  
  .signup-body {
    text-align: left; /* Consistente links uitlijning */
  }
  
  .signup-body p {
    text-align: left; /* Consistente links uitlijning */
  }
}

.postcard-date-header {
  display: flex;
  align-items: flex-start;
  min-height: 60px; /* Zelfde hoogte als header */
  justify-content: flex-end;
}

.date-display {
  font-size: var(--fs-xxl);
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
  min-height: 28px; /* Zelfde hoogte als H3 */
  display: flex;
  align-items: center; /* Center verticaal */
}

.postcard-info-grid {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-item {
  font-size: 0.95rem;
  color: #4a5568;
  font-weight: 500;
}

.materials-section-mobile {
  margin-bottom: 16px;
}

.materials-header {
  margin-bottom: 8px;
}

.materials-label {
  font-size: var(--fs-base-rem);
  color: #4a5568;
  font-weight: 600;
}

.materials-list-mobile {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.materials-list-mobile .material-item {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: var(--fs-sm-rem);
  font-weight: 500;
  margin-bottom: 0;
}

.btn-afmelden {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: #f56565;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-afmelden:hover {
  background: #e53e3e;
  transform: translateY(-1px);
}

/* Groene aanmeld knop voor speciale evenementen */
.btn-aanmelden {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: #48bb78;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-aanmelden:hover {
  background: #38a169;
  transform: translateY(-1px);
}

/* ====== Responsive Desktop Mobile Layout ====== */
@media (min-width: 768px) {
  /* Desktop: bredere layout */
  .oefening-postcard.desktop-mobile-layout {
    max-width: 100%;
    width: 100%;
  }
  
  .postcard-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .info-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .info-item {
    font-size: 1rem;
  }
  
  .postcard-title-mobile h3 {
    font-size: 1.6rem;
  }
  
  .exercise-type-badge {
    font-size: var(--fs-base-rem);
    padding: 8px 16px;
  }
  
  .date-display {
    font-size: 1.6rem;
  }
}

@media (max-width: 767px) {
  /* Mobiel: compacte layout zoals in voorbeeld */
  .oefening-postcard.desktop-mobile-layout {
    max-width: 400px;
    margin: 0 auto 20px auto;
  }
  
  .postcard-info-grid {
    display: block;
  }
  
  .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  
  .info-item {
    font-size: var(--fs-base-rem);
  }
  
  .postcard-title-mobile h3 {
    font-size: var(--fs-xl);
  }
  
  .exercise-type-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  
  .date-display {
    font-size: var(--fs-xl);
  }
  
  .materials-list-mobile .material-item {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

.oefeningen-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

/* Oefening postcard styling - gebaseerd op originele voorbeeld */
.oefening-postcard {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #e2e8f0;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.oefening-postcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e53e3e, #c53030, #7c2d12);
  border-radius: 24px;
  padding: 2px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.oefening-postcard:hover::before {
  opacity: 0.8;
}

.oefening-postcard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.oefening-postcard .postcard-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

/* Postcard icon verwijderd - niet meer nodig */

.oefening-postcard .postcard-content {
  flex: 1;
}

.oefening-postcard .postcard-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a202c;
  line-height: 1.2;
  text-align: left !important;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.oefening-postcard .postcard-description {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.oefening-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.oefening-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #2d3748;
  font-weight: 500;
}

.oefening-meta-icon {
  font-size: var(--fs-lg-rem);
  width: 20px;
  text-align: center;
}

.theme-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: var(--fs-base-rem);
  font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  display: inline-block;
  margin: 16px 0 8px 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.materials-section {
  margin-top: 20px;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.materials-section h4 {
  font-size: var(--fs-lg-rem);
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.material-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.material-item .material-name {
  font-weight: 600;
  flex: 1;
}

.material-item .material-status {
  font-size: var(--fs-base-rem);
  font-weight: 600;
  margin-left: 12px;
}

.material-item.pending {
  background: #f7fafc;
  border: 2px solid #cbd5e0;
  color: #4a5568;
  font-weight: 500;
}

.material-item.approved {
  background: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
  font-weight: 600;
}

.material-item.rejected {
  background: #fee2e2;
  border: 2px solid #ef4444;
  color: #991b1b;
  font-weight: 600;
}

.material-item.no-requests {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  color: #718096;
  font-style: italic;
  text-align: center;
  justify-content: center;
}

.material-item {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
}

.material-requested {
  background: #fef3c7;
  color: #92400e;
}

.material-approved {
  background: #d1fae5;
  color: #065f46;
}

.material-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.no-requests {
  background: #f3f4f6;
  color: #6b7280;
}

/* Loading en error states */
.loading-state, .error-state, .no-data {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #e53e3e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-icon, .no-data-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Responsive voor oefeningen */
@media (max-width: 768px) {
  .oefeningen-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .oefening-postcard {
    padding: 20px;
  }
  
  .oefening-postcard .postcard-header {
    flex-direction: column;
    text-align: left !important;
  }
  
  /* Postcard icon verwijderd */
  
  .oefening-meta {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .oefening-postcard {
    padding: 16px;
    border-radius: 16px;
  }
  
  /* Postcard icon verwijderd */
  
  .oefening-postcard .postcard-title {
    font-size: var(--fs-xl);
    margin-bottom: 6px;
    text-align: left !important;
  }
  
  .oefening-postcard .postcard-description {
    font-size: var(--fs-base-rem);
    line-height: 1.5;
  }
  
  .oefening-meta {
    gap: 8px;
  }
  
  .oefening-meta-item {
    font-size: var(--fs-sm-rem);
  }
}

/* ====== Algemene Responsive Verbeteringen voor Alle Pagina's ====== */

/* Container responsive verbeteringen */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }
  
  .container.grid {
    gap: 12px;
  }
  
  /* Header responsive */
  header {
    padding: 12px 16px;
  }
  
  header h1 {
    font-size: var(--fs-xxl);
  }
  
  header h2 {
    font-size: var(--fs-xl);
  }
  
  /* Button responsive */
  .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  /* Form responsive */
  .input {
    padding: 8px 10px;
    font-size: var(--fs-base-rem);
  }
  
  /* Card responsive */
  .card {
    padding: 16px;
    border-radius: 12px;
  }
  
  /* Modal responsive */
  .modal-content {
    margin: 20px;
    padding: 20px;
    max-width: calc(100vw - 40px);
  }
}

@media (max-width: 360px) {
  .container {
    padding: 8px;
  }
  
  .container.grid {
    gap: 8px;
  }
  
  /* Header responsive */
  header {
    padding: 8px 12px;
  }
  
  header h1 {
    font-size: 1.3rem;
  }
  
  header h2 {
    font-size: var(--fs-lg-rem);
  }
  
  /* Button responsive */
  .btn {
    padding: 6px 10px;
    font-size: var(--fs-sm-rem);
  }
  
  /* Form responsive */
  .input {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  
  /* Card responsive */
  .card {
    padding: 12px;
    border-radius: 8px;
  }
  
  /* Modal responsive */
  .modal-content {
    margin: 10px;
    padding: 16px;
    max-width: calc(100vw - 20px);
  }
  
  /* Table responsive */
  .table-responsive {
    font-size: var(--fs-sm-rem);
  }
  
  /* Grid responsive */
  .grid {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Table responsive voor kleine schermen */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table-responsive table {
    min-width: 600px;
  }
  
  /* Form responsive */
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-field-group {
    width: 100%;
  }
  
  /* Navigation responsive */
  .row {
    flex-direction: column;
    gap: 8px;
  }
  
  .row.space-between {
    align-items: flex-start;
  }
  
  /* Footer responsive */
  footer {
    padding: 12px 16px;
    text-align: center;
  }
}

/* Extra responsive voor zeer kleine schermen (320px) */
@media (max-width: 320px) {
  .container {
    padding: 6px;
  }
  
  header {
    padding: 6px 8px;
  }
  
  header h1 {
    font-size: var(--fs-xl);
  }
  
  header h2 {
    font-size: 1rem;
  }
  
  .btn {
    padding: 5px 8px;
    font-size: var(--fs-xs);
  }
  
  .input {
    padding: 5px 6px;
    font-size: var(--fs-sm-rem);
  }
  
  .card {
    padding: 10px;
  }
  
  .modal-content {
    margin: 5px;
    padding: 12px;
    max-width: calc(100vw - 10px);
  }
}

/* ====== Post Selectie Modal Styles ====== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.post-item {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.post-item:hover {
  border-color: #e53e3e;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.1);
  transform: translateY(-2px);
}

.post-item.selected {
  border-color: #e53e3e;
  background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
}

.post-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.post-region {
  font-size: 0.85rem;
  color: #718096;
}

.quick-select {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quick-btn {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  color: #4a5568;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: var(--fs-base-rem);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-btn:hover {
  border-color: #e53e3e;
  color: #e53e3e;
}

.quick-btn.active {
  background: #e53e3e;
  border-color: #e53e3e;
  color: white;
}

.selected-info {
  background: #f0fff4;
  border: 2px solid #9ae6b4;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

.selected-info h4 {
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 1rem;
}

.selected-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-post-tag {
  background: #48bb78;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.exercise-type-selection {
  background: #f7fafc;
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #e2e8f0;
}

.exercise-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.exercise-type-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.exercise-type-btn:hover {
  border-color: #e53e3e;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.1);
  transform: translateY(-2px);
}

.exercise-type-btn.selected {
  border-color: #e53e3e;
  background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
}

.exercise-type-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.exercise-type-content h4 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.exercise-type-content p {
  color: #718096;
  font-size: var(--fs-base-rem);
  line-height: 1.5;
}

/* Responsive voor post selectie modal */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .exercise-type-options {
    grid-template-columns: 1fr;
  }
}

/* ====== Compacte Materiaal Selectie Styles ====== */
.materials-section {
  background: #f7fafc;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e2e8f0;
}

.material-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.material-item {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.material-item:hover {
  border-color: #e53e3e;
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.1);
}

.material-item.selected {
  border-color: #e53e3e;
  background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
}

.material-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.material-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
}

.material-cost {
  background: #e53e3e;
  color: white;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: var(--fs-sm-rem);
  font-weight: 600;
}

.material-cost.free {
  background: #48bb78;
}

.material-description {
  color: #718096;
  font-size: var(--fs-sm-rem);
  margin-bottom: 8px;
  line-height: 1.3;
}

.budget-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

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

.budget-label {
  font-weight: 500;
}

.budget-amount {
  font-weight: 700;
  font-size: var(--fs-lg-rem);
}

.budget-warning {
  background: #fed7d7;
  color: #c53030;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: 500;
}

/* Materialen dropdowns styling */
.material-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.material-dropdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material-dropdown label {
  font-weight: 600;
  color: #4a5568;
  font-size: var(--fs-base-rem);
}

.material-dropdown select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.2s ease;
}

.material-dropdown select:focus {
  outline: none;
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.material-dropdown select:hover {
  border-color: #cbd5e0;
}

/* Responsive voor materiaal selectie */
@media (max-width: 768px) {
  .material-selector {
    grid-template-columns: 1fr;
  }
  
  .material-dropdowns {
    gap: 12px;
  }
}

/* ====== Horizontale Oefening Postcards ====== */
.oefeningen-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.oefening-postcard {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 2px solid #e2e8f0;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 150px;
  max-width: 1400px;
  width: 100%;
}

/* Nieuwe postcard layout styling */
.oefening-postcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border-color: #4f46e5;
  background: #fafbfc;
}

.oefening-postcard-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: space-between;
}

.oefening-header-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.oefening-main-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}


.oefening-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.oefening-bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.oefening-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.oefening-title.catalogus-title {
  color: #0ea5e9;
}

.oefening-meta-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
  align-items: center;
}

.oefening-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: #4a5568;
  font-weight: 500;
}

.oefening-meta-item.post-name,
.oefening-meta-item.date {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #2d3748;
}

.oefening-meta-icon {
  font-size: var(--fs-base);
  width: 20px;
  text-align: center;
}

.oefening-theme-badge {
  padding: 10px 18px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.oefening-theme-badge.brand {
  background: linear-gradient(135deg, #f56565, #e53e3e);
}

.oefening-theme-badge.hv {
  background: linear-gradient(135deg, #48bb78, #38a169);
}

.oefening-theme-badge.ibgs {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.oefening-theme-badge.wo {
  background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.oefening-theme-badge.specialisme {
  background: linear-gradient(135deg, #4299e1, #3182ce);
}


.oefening-actions-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.oefening-left-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.oefening-right-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  height: 100%;
  justify-content: flex-end;
}

.oefening-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.oefening-status.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.oefening-status.status-approved {
  background: #d1fae5;
  color: #059669;
}

.oefening-status.status-rejected {
  background: #fee2e2;
  color: #dc2626;
}

.oefening-status.status-none {
  background: #f3f4f6;
  color: #6b7280;
}

/* Nieuwe layout voor datum/tijd en materiaal badges */
.oefening-meta-and-materials {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.oefening-meta-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Materiaal badges inline styling */
.materiaal-badges-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  flex: 1;
}

/* Oude materiaal badges styling (behouden voor compatibiliteit) */
.materiaal-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  min-height: 32px; /* Zelfde hoogte als afmelden knop */
}

.materiaal-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  height: 32px; /* Zelfde hoogte als afmelden knop */
  box-sizing: border-box;
  min-width: 120px;
  justify-content: center;
  border: 1px solid;
}

/* Aangepaste styling voor inline materiaal badges */
.materiaal-badges-inline .materiaal-badge {
  min-width: 140px;
  font-size: 11px;
  padding: 4px 10px;
  height: 28px;
}

.materiaal-badge.pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
  font-weight: 600;
}

.materiaal-badge.approved {
  background: #d1fae5;
  color: #047857;
  border-color: #059669;
  font-weight: 600;
}

.materiaal-badge.rejected {
  background: #fee2e2;
  color: #991b1b;
  border-color: #dc2626;
  font-weight: 600;
}

.materiaal-icon {
  font-size: var(--fs-sm);
}

.materiaal-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oefening-afmeld-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fee2e2;
  color: #dc2626;
  border: 2px solid #fecaca;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.oefening-afmeld-btn:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.afmeld-icon {
  font-size: var(--fs-base);
}

.afmeld-text {
  font-size: var(--fs-sm);
}

.oefening-delete-btn {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  font-size: var(--fs-base);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.oefening-delete-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Afmeldingen styling in modal */
.signoff-details {
  margin-top: 16px;
}

.signoff-details h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
}

.signoff-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signoff-item {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signoff-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signoff-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signoff-reason {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-icon, .date-icon, .reason-icon {
  font-size: var(--fs-sm);
  width: 16px;
  text-align: center;
}

.user-name {
  font-weight: 600;
  color: #2d3748;
}

.date-text {
  font-size: var(--fs-sm);
  color: #4a5568;
}

.reason-text {
  font-size: var(--fs-sm);
  color: #4a5568;
  font-style: italic;
}

.signoff-empty {
  margin-top: 16px;
  text-align: center;
  padding: 20px;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: 12px;
}

.signoff-empty .signoff-text {
  color: #22543d;
  font-weight: 500;
  margin: 0;
}

.oefening-postcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e53e3e, #c53030, #7c2d12);
  border-radius: 16px;
  padding: 2px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}

.oefening-postcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.oefening-postcard-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.oefening-main-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.oefening-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  line-height: 1.2;
  text-align: left !important;
}

.oefening-title.catalogus-title {
  background: #fce7f3;
  color: #be185d;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #f9a8d4;
}

.oefening-subtitle {
  font-size: 1rem;
  color: #718096;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left !important;
}

/* Override #content p voor oefening postcards */
.oefening-postcard p {
  text-align: left !important;
}

.oefening-date-post {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 8px 0;
}

.oefening-date {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: var(--fs-base-rem);
  text-align: center;
  min-width: 80px;
}

.oefening-post {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: var(--fs-base-rem);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.oefening-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  text-align: left !important;
}

.oefening-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-base-rem);
  color: #4a5568;
}

.oefening-meta-icon {
  font-size: 1rem;
}

.oefening-side-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}


.oefening-theme {
  background: #f7fafc;
  color: #4a5568;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

/* Thema kleuren */
.oefening-theme.brand {
  background: #fed7d7;
  color: #c53030;
  border-color: #feb2b2;
}

.oefening-theme.hv {
  background: #fef5e7;
  color: #d69e2e;
  border-color: #f6e05e;
}

.oefening-theme.ibgs {
  background: #f0fff4;
  color: #38a169;
  border-color: #9ae6b4;
}

.oefening-theme.wo {
  background: #ebf8ff;
  color: #3182ce;
  border-color: #90cdf4;
}

.oefening-theme.specialisme {
  background: #faf5ff;
  color: #805ad5;
  border-color: #c6adff;
}

.oefening-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm-rem);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.oefening-status.pending {
  background: #fef5e7;
  color: #d69e2e;
}

.oefening-status.approved {
  background: #f0fff4;
  color: #38a169;
}

.oefening-status.rejected {
  background: #fed7d7;
  color: #e53e3e;
}

.oefening-status.none {
  background: #f7fafc;
  color: #718096;
}

.oefening-delete-btn {
  background: #fed7d7;
  color: #c53030;
  border: 1px solid #feb2b2;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.oefening-delete-btn:hover {
  background: #feb2b2;
  color: #9c1c1c;
  transform: scale(1.05);
}

.oefening-delete-btn:active {
  transform: scale(0.95);
}

/* ====== Oefening Details Modal Styles ====== */
.oefening-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.detail-section h3 {
  margin: 0 0 16px 0;
  color: #2d3748;
  font-size: var(--fs-lg-rem);
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

/* Horizontale layout voor desktop (1920x1080) */
@media (min-width: 1200px) {
  .oefening-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
  
  .detail-section {
    margin-bottom: 0;
  }
  
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .signoff-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .signoff-stats {
    align-self: stretch;
  }
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item label {
  font-weight: 600;
  color: #4a5568;
  font-size: var(--fs-base-rem);
}

.detail-item span {
  color: #2d3748;
  font-size: 1rem;
}

.theme-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.theme-badge.brand {
  background: #fed7d7;
  color: #c53030;
  border-color: #feb2b2;
}

.theme-badge.hv {
  background: #fef5e7;
  color: #d69e2e;
  border-color: #f6e05e;
}

.theme-badge.ibgs {
  background: #f0fff4;
  color: #38a169;
  border-color: #9ae6b4;
}

.theme-badge.wo {
  background: #ebf8ff;
  color: #3182ce;
  border-color: #90cdf4;
}

.theme-badge.specialisme {
  background: #faf5ff;
  color: #805ad5;
  border-color: #c6adff;
}

.signoff-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.signoff-stats {
  display: flex;
  gap: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: var(--fs-xxl);
  font-weight: 700;
  color: #e53e3e;
}

.stat-label {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.signoff-summary {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef5e7;
  border-radius: 8px;
  border: 1px solid #f6e05e;
}

.signoff-text {
  margin: 0;
  color: #d69e2e;
  font-weight: 500;
  font-size: 0.95rem;
}

.materials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.material-tag {
  background: #e6fffa;
  color: #234e52;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #b2f5ea;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Alert boxes voor modals */
.alert {
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid;
}

.alert-info {
  background-color: #e0f2fe;
  border-color: #0891b2;
  color: #0e7490;
}

.alert-info strong {
  color: #0c4a6e;
}

.alert-info ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.alert-info li {
  margin: 4px 0;
}

/* Info box voor materiaal selectie */
.info-box {
  margin: 10px 0;
}

/* Form hints */
.hint {
  font-size: 0.875rem;
  color: #64748b;
  margin: 5px 0 0 0;
}

.btn-danger {
  background: #fed7d7;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.btn-danger:hover {
  background: #feb2b2;
  color: #9c1c1c;
}

/* ====== Bewerk Gebruiker Modal Styles ====== */
#editUserModal .modal-content {
  max-width: 1200px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

#editUserModal .posts-selection {
  margin-top: 16px;
}

#editUserModal .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

#editUserModal .post-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  position: relative;
}

#editUserModal .post-item:hover {
  border-color: #38a169;
  background: #f0fff4;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56, 161, 105, 0.15);
}

#editUserModal .post-item:hover .post-name {
  color: #2f855a;
}

#editUserModal .post-item:hover .post-region {
  color: #38a169;
}

#editUserModal .post-item.selected {
  border-color: #38a169 !important;
  background: #f0fff4 !important;
  box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.2) !important;
}

#editUserModal .post-item:not(.selected) {
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Hogere specificiteit voor geselecteerde posts */
#editUserModal .post-item.selected.post-item {
  border-color: #38a169 !important;
  background: #f0fff4 !important;
  box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.2) !important;
}

#editUserModal .post-item.selected .post-name {
  color: #2f855a !important;
  font-weight: 600 !important;
}

#editUserModal .post-item:not(.selected) .post-name {
  color: #2d3748 !important;
  font-weight: 600 !important;
}

#editUserModal .post-item.selected .post-region {
  color: #38a169 !important;
  font-weight: 500 !important;
}

#editUserModal .post-item:not(.selected) .post-region {
  color: #718096 !important;
  font-weight: 500 !important;
}

/* CSS ::before checkmark verwijderd - wordt nu via JavaScript beheerd */

#editUserModal .post-item:not(.selected)::before {
  display: none !important;
}

#editUserModal .post-item .checkmark {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #ffffff;
  font-weight: bold;
  font-size: var(--fs-lg);
  background: #38a169;
  border: 2px solid #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  line-height: 1;
}

#editUserModal .post-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

#editUserModal .post-region {
  font-size: 0.85rem;
  color: #718096;
}

#editUserModal .no-posts {
  text-align: center;
  color: #718096;
  font-style: italic;
  padding: 20px;
}

/* Responsive voor edit modal */
@media (max-width: 1200px) {
  #editUserModal .modal-content {
    max-width: 95%;
    width: 95%;
  }
  
  #editUserModal .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  #editUserModal .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive voor oefening postcards */
@media (max-width: 768px) {
  .oefening-postcard-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .oefening-side-info {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }
  
  /* Responsive voor nieuwe layout */
  .oefening-meta-and-materials {
    flex-direction: column;
    gap: 12px;
  }
  
  .materiaal-badges-inline {
    align-items: stretch;
  }
  
  .materiaal-badges-inline .materiaal-badge {
    min-width: auto;
    width: 100%;
    justify-content: flex-start;
  }
  
  .postcard-header-mobile {
    gap: 12px; /* Kleinere gap op mobiel */
  }
  
  .post-name-subject-row {
    flex-direction: row; /* Blijf naast elkaar op mobiel */
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  
  .subject-text {
    max-width: 100%; /* Gebruik volledige breedte van container */
    font-size: var(--fs-xs);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Subject section mobile container */
  .subject-section-mobile {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Post name subject row */
  .post-name-subject-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  
  .post-name-subject-row h3 {
    font-size: var(--fs-base-rem);
    margin: 0;
    line-height: 1.2;
  }
  
  .instructor-section {
    margin-bottom: 12px;
    padding: 6px 10px;
  }
  
  .afmeld-section {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .afmeldingen-count {
    text-align: center;
  }
  
  .oefening-meta {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .oefening-date-post {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .oefening-delete-btn {
    min-width: 36px;
    height: 36px;
    font-size: var(--fs-base-rem);
  }
}

@media (max-width: 480px) {
  .oefeningen-container {
    padding: 12px;
    gap: 12px;
  }
  
  .oefening-postcard {
    padding: 16px;
  }
  
  .oefening-title {
    font-size: var(--fs-lg-rem);
  }
  
  .oefening-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* ====== Dashboard Settings Styling ====== */
.dashboard-settings {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.role-postcard-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.role-setting {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.role-setting h5 {
  margin: 0 0 15px 0;
  color: #2d3748;
  font-size: var(--fs-lg-rem);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.postcard-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.postcard-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.postcard-checkboxes label:hover {
  background-color: #f8f9fa;
}

.postcard-checkboxes label:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

.postcard-checkboxes input[type="checkbox"] {
  margin: 0;
  transform: scale(1.1);
}

.postcard-checkboxes input[type="checkbox"]:disabled {
  opacity: 0.5;
}

.settings-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

.layout-options {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.layout-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.layout-options label:hover {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.layout-options input[type="radio"]:checked + label,
.layout-options label:has(input[type="radio"]:checked) {
  border-color: #dc2626;
  background-color: #fef2f2;
  color: #dc2626;
  font-weight: 600;
}

/* Responsive design voor dashboard settings */
@media (max-width: 768px) {
  .role-postcard-settings {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .role-setting {
    padding: 15px;
  }
  
  .settings-actions {
    flex-direction: column;
  }
  
  .layout-options {
    flex-direction: column;
    gap: 10px;
  }
}

/* ====== View Toggle ====== */
.view-toggle {
  margin-right: 15px;
}

.view-toggle button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 500;
  cursor: pointer;
}

.view-toggle button:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Dashboard button styling removed - no longer needed */

/* ====== Stacked CSS verwijderd - terug naar originele layout ====== */

/* Modal protection CSS - zorg dat modal postcards niet beïnvloed worden door algemene postcard CSS */
.modal .postcard,
.modal-content .postcard {
  flex: none !important;
  width: auto !important;
  flex-shrink: 1 !important;
  display: block !important;
  flex-direction: initial !important;
  justify-content: initial !important;
  overflow: visible !important;
  border-radius: initial !important;
  box-shadow: initial !important;
  position: static !important;
  z-index: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Extra bescherming voor modal postcards */
.modal #postcardsStack .postcard,
.modal .postcards-stack .postcard,
.modal-content #postcardsStack .postcard,
.modal-content .postcards-stack .postcard {
  flex: none !important;
  width: auto !important;
  display: block !important;
}

/* ====== NIEUWE EXERCISE MODAL ====== */
.modal.new-exercise-modal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem !important;
  z-index: 10000 !important;
}

.modal.new-exercise-modal .modal-content {
  max-width: 1200px !important;
  width: 95vw !important;
  max-height: 85vh !important;
  min-width: 1000px !important;
  aspect-ratio: 16/9 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.5rem !important;
  margin: 0 !important;
  background: var(--card) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  box-sizing: border-box !important;
}

/* Responsive modal voor mobiel */
@media (max-width: 1024px) {
  .modal.new-exercise-modal .modal-content {
    min-width: 800px !important;
  }
}

@media (max-width: 900px) {
  .modal.new-exercise-modal .modal-content {
    min-width: 0 !important;
    width: 95vw !important;
    max-width: 95vw !important;
    aspect-ratio: auto !important;
    height: auto !important;
    max-height: 95vh !important;
  }
}

@media (max-width: 768px) {
  .modal.new-exercise-modal {
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
  }
  
  .modal.new-exercise-modal .modal-content {
    min-width: 0 !important;
    width: calc(100% - 10px) !important;
    max-width: 100% !important;
    height: 580px !important;
    min-height: 580px !important;
    max-height: 580px !important;
    aspect-ratio: auto !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    margin: 5px auto !important;
    position: relative !important;
  }
  
  .modal.new-exercise-modal .modal-header {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .modal.new-exercise-modal .modal-header h2 {
    font-size: 1.1rem !important;
  }
  
  .modal.new-exercise-modal .exercise-type-selection h3 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .modal.new-exercise-modal .exercise-type-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .modal.new-exercise-modal .exercise-type-btn {
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
  }
  
  /* ALLE formulier layouts in 1 kolom op mobiel - GRID layouts */
  .modal.new-exercise-modal .horizontal-fields,
  .modal.new-exercise-modal .catalogus-single-row,
  .modal.new-exercise-modal .form-row-5,
  .modal.new-exercise-modal .exercise-form-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 0.5rem !important;
  }
  
  /* FLEX layouts in kolom */
  .modal.new-exercise-modal .form-row,
  .modal.new-exercise-modal .catalogus-main-section .form-row.horizontal-fields {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }
  
  .modal.new-exercise-modal .form-field,
  .modal.new-exercise-modal .form-group {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  
  .modal.new-exercise-modal .modal-body {
    padding: 0 !important;
    overflow-y: auto !important;
  }
  
  .modal.new-exercise-modal .form-group label,
  .modal.new-exercise-modal .form-field label {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .modal.new-exercise-modal .form-group input,
  .modal.new-exercise-modal .form-group select,
  .modal.new-exercise-modal .form-group textarea,
  .modal.new-exercise-modal .form-field input,
  .modal.new-exercise-modal .form-field select,
  .modal.new-exercise-modal .form-field textarea {
    font-size: 0.9rem !important;
    padding: 0.5rem !important;
    width: 100% !important;
  }
}

.modal.new-exercise-modal .modal-content * {
  box-sizing: border-box !important;
}

.modal.new-exercise-modal .modal-content form {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.modal.new-exercise-modal .modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid var(--border) !important;
}

.modal.new-exercise-modal .modal-header h2 {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

.modal.new-exercise-modal .modal-close {
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  color: var(--text) !important;
  padding: 0.5rem !important;
  border-radius: 4px !important;
  transition: background-color 0.2s ease !important;
}

.modal.new-exercise-modal .modal-close:hover {
  background-color: var(--border) !important;
}

.modal.new-exercise-modal .modal-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 0 !important;
}

.modal.new-exercise-modal .modal-footer {
  margin-top: auto !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 1rem !important;
  align-items: center !important;
}

.modal.new-exercise-modal .btn {
  padding: 0.75rem 1.5rem !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
}

.modal.new-exercise-modal .btn-primary {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

.modal.new-exercise-modal .btn-primary:hover {
  background: var(--primary-dark, #2563eb) !important;
  border-color: var(--primary-dark, #2563eb) !important;
}

.modal.new-exercise-modal .btn-secondary {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.modal.new-exercise-modal .btn-secondary:hover {
  background: var(--border) !important;
}

.modal.new-exercise-modal .exercise-type-selection {
  text-align: center !important;
  margin-bottom: 2rem !important;
}

.modal.new-exercise-modal .exercise-type-selection h3 {
  margin-bottom: 1.5rem !important;
  color: var(--text) !important;
}

.modal.new-exercise-modal .exercise-type-buttons {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
}

.modal.new-exercise-modal .exercise-type-btn {
  padding: 1rem 2rem !important;
  border: 2px solid var(--primary) !important;
  background: transparent !important;
  color: var(--primary) !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.modal.new-exercise-modal .exercise-type-btn:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.modal.new-exercise-modal .horizontal-fields {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 1rem !important;
  margin-bottom: 1rem !important;
}

.modal.new-exercise-modal .catalogus-single-row {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 1rem !important;
  margin-bottom: 1rem !important;
}

.modal.new-exercise-modal .form-field {
  display: flex !important;
  flex-direction: column !important;
}

.modal.new-exercise-modal .form-field label {
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
  color: var(--text) !important;
}

.modal.new-exercise-modal .form-field input,
.modal.new-exercise-modal .form-field select,
.modal.new-exercise-modal .form-field textarea {
  padding: 0.75rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  font-size: var(--fs-sm) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* ====== NIEUWE EXERCISE CARDS ====== */
.exercise-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.exercise-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border-color: #4f46e5;
  background: #fafbfc;
}

.exercise-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: space-between;
}

.oefening-header-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oefening-main-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oefening-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oefening-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-base-rem);
  color: #6b7280;
}

.oefening-meta-icon {
  font-size: 1rem;
}

.oefening-theme-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--fs-sm-rem);
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
}

.oefening-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.oefening-date-time {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-base-rem);
  color: #6b7280;
}

.oefening-instructor {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-base-rem);
  color: #6b7280;
}

.oefening-materials-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.materials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.material-item {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
}

.material-requested {
  background: #fef3c7;
  color: #92400e;
}

.material-approved {
  background: #d1fae5;
  color: #065f46;
}

.material-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.no-requests {
  background: #f3f4f6;
  color: #6b7280;
}

/* ====== CSS Opgeruimd - Alle stacked functionaliteit verwijderd ====== */

/* Database Inspectie Styling */
.database-inspection {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.inspection-actions {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.inspection-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.info-card {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.info-card h4 {
  color: #2c3e50;
  margin: 0 0 15px 0;
  font-size: var(--fs-lg-rem);
  font-weight: 600;
}

.info-card p {
  color: #6c757d;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.info-card ul {
  margin: 0;
  padding-left: 20px;
}

.info-card li {
  color: #495057;
  margin: 8px 0;
  line-height: 1.4;
}

.quick-check-results,
.database-stats {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.loading {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 20px;
}

.check-results,
.stats-overview {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
}

.check-results.error,
.stats-overview.error {
  border-color: #dc3545;
  background: #fff5f5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.stat-label {
  font-weight: 500;
  color: #495057;
}

.stat-value {
  font-weight: 600;
  color: #2c3e50;
}

.stat-value.success {
  color: #28a745;
}

.check-actions,
.stats-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  margin: 10px 0;
  font-family: monospace;
  font-size: var(--fs-base-rem);
}

/* Responsive database inspectie */
@media (max-width: 768px) {
  .inspection-actions {
    flex-direction: column;
  }
  
  .inspection-info {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .check-actions,
  .stats-actions {
    flex-direction: column;
  }
}

/* ====== Posten Overzicht (gebruikt budget styling) ====== */

/* Posten specifieke aanpassingen aan budget styling */
.budget-card.assigned {
  border-left: 4px solid #48bb78;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.assigned-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #48bb78;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  font-weight: 500;
  color: #4a5568;
  font-size: var(--fs-base-rem);
}

.detail-value {
  color: #2d3748;
  font-weight: 600;
  font-size: var(--fs-base-rem);
}

.detail-value.status-active {
  color: #48bb78;
}

.detail-value.status-inactive {
  color: #e53e3e;
}

.budget-actions {
  margin-top: 15px;
}

.budget-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Responsive posten overzicht */
@media (max-width: 768px) {
  .budget-overview {
    padding: 10px;
  }
  
  .budget-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
  
  .budget-header h2 {
    font-size: 1.5rem;
  }
  
  .budget-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .budget-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* ALLES in 1 kolom */
  .budget-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
  }
  
  .budget-stats {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
  }
  
  .budget-filters {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
    padding: 15px;
  }
  
  /* Budget cards in kolom */
  .budget-card {
    border-radius: 8px;
    width: 100%;
  }
  
  .budget-card-header {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .budget-card-title {
    font-size: 1.1rem;
  }
  
  .budget-card-body {
    padding: 12px;
  }
  
  .budget-details {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
  }
  
  .budget-actions-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .budget-actions-row .btn {
    width: 100%;
  }
  
  .assigned-badge {
    position: static;
    margin-top: 10px;
    align-self: flex-start;
  }
  
  /* Stat cards in kolom */
  .stat-card {
    padding: 15px;
    width: 100%;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  /* Post cards lijst */
  .posts-list,
  .posten-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
  }
  
  /* Info grids in kolom */
  .info-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
  }
  
  /* Post details in kolom */
  .post-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
  }
  
  .detail-item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  
  .detail-item:last-child {
    border-bottom: none;
  }
  
  .detail-label {
    font-weight: 600;
    font-size: 0.85rem;
  }
  
  .detail-value {
    font-size: 0.9rem;
    text-align: right;
  }
  
  /* Filters in kolom */
  .filter-group {
    width: 100%;
  }
  
  .filter-group label {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }
  
  .filter-group select,
  .filter-group input {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px;
  }
  
  /* Forceer ALLES op posten pagina in 1 kolom */
  .budget-overview * {
    max-width: 100% !important;
  }
  
  .budget-overview .grid,
  .budget-overview [class*="grid"] {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Post card buttons full width */
  .budget-card .budget-actions {
    width: 100%;
  }
  
  .budget-card .budget-actions .btn {
    width: 100%;
    margin: 5px 0;
  }
}

/* Pending Users Styling */
.pending-users-header {
  margin-bottom: 15px;
  text-align: center;
}


.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.filter-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--fs-base);
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.filter-tab.active {
  color: #007bff;
  border-bottom-color: #007bff;
  font-weight: bold;
}

.filter-tab:hover {
  color: #007bff;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.user-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 5px solid #e0e0e0;
  transition: all 0.3s ease;
}

.user-card.pending {
  border-left-color: #ffc107;
}

.user-card.approved {
  border-left-color: #28a745;
}

.user-card.rejected {
  border-left-color: #dc3545;
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
}

.user-details h3 {
  margin: 0 0 5px 0;
  color: #333;
}

.user-details p {
  margin: 2px 0;
  color: #666;
  font-size: 0.9em;
}

.user-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-badge {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.approved {
  background: #d4edda;
  color: #155724;
}

.status-badge.rejected {
  background: #f8d7da;
  color: #721c24;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state h3 {
  margin-bottom: 10px;
  color: #999;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  z-index: 10000;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.error-notification {
  background: #dc3545;
}

.success-notification {
  background: #28a745;
}

/* ===== JAARPLANNING WIZARD STYLES ===== */
.wizard-container {
  max-width: 800px;
  margin: 0 auto;
}

.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-header {
  text-align: center;
  margin-bottom: 30px;
}

.wizard-header h2 {
  color: #2d3748;
  margin-bottom: 10px;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: #3b82f6;
  transform: scale(1.3);
}

.progress-dot.completed {
  background: #10b981;
}

.option-cards {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

.option-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.option-card:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
  transform: translateX(5px);
}

.option-card.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.option-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.option-content h3 {
  margin: 0 0 5px 0;
  color: #2d3748;
  font-size: 18px;
}

.option-content p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.weekday-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.weekday-btn {
  padding: 15px 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #4a5568;
}

.weekday-btn:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.weekday-btn.selected {
  border-color: #3b82f6;
  background: #3b82f6;
  color: white;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.calendar-header {
  text-align: center;
  font-weight: 600;
  padding: 10px 5px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 12px;
  color: #64748b;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  background: white;
}

.calendar-day:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.calendar-day.selected {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.calendar-day.disabled {
  background: #f1f5f9;
  color: #cbd5e1;
  cursor: not-allowed;
}

.calendar-day.disabled:hover {
  border-color: #e2e8f0;
  background: #f1f5f9;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 10px;
}

.summary-section {
  background: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.summary-section h4 {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  color: #64748b;
  font-size: 14px;
}

.summary-value {
  color: #1e293b;
  font-weight: 500;
  font-size: 14px;
}

@media (max-width: 768px) {
  .option-cards {
    gap: 12px;
  }
  
  .option-card {
    padding: 15px;
  }
  
  .option-icon {
    font-size: 30px;
  }
  
  .weekday-selector {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ====== Oefenmaterialen Catalogus Styling ====== */
.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

/* Welcome card styling - breed over volledige breedte */
.catalogus-welcome-card {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
  color: white;
  text-align: center;
}

.welcome-content {
  max-width: 1200px;
  margin: 0 auto;
}

.welcome-icon {
  font-size: 64px;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.catalogus-welcome-card h2 {
  margin: 0 0 28px 0;
  color: white;
  font-size: 34px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.catalogus-welcome-card p {
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  font-size: 16px;
  text-align: left;
}

.spelregels-box {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px;
  margin-top: 30px;
  backdrop-filter: blur(10px);
  text-align: left;
}

.spelregels-box h3 {
  margin: 0 0 24px 0;
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.spelregels-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spelregel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.spelregel-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.spelregel-text {
  flex: 1;
  color: #1e40af;
  line-height: 1.8;
  font-size: 16px;
}

.spelregel-text strong {
  color: #0c4a6e;
  font-weight: 700;
}

.catalogus-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-group {
  flex: 1;
  min-width: 250px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

.search-input, .filter-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.search-input:focus, .filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Grid met maximaal 3 kolommen voor bredere cards */
.catalogus-grid,
.catalogus-grid-max4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
  padding-bottom: 40px;
}

.catalogus-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.catalogus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

/* Grote zichtbare foto bovenaan */
.card-image-large {
  position: relative;
  width: 100%;
  height: 380px;
  background: #f8fafc;
  overflow: hidden;
}

.card-image-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  background: white;
}

.image-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
}

.thema-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Inhoud onder foto */
.card-content-below {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title-large {
  margin: 0 0 12px 0;
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.card-description {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1;
}

/* Volledige inventaris lijst in card */
.card-inventory-full {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  flex: 1;
}

.card-inventory-full h4 {
  margin: 0 0 12px 0;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.card-inventory-full ul {
  margin: 0;
  padding-left: 20px;
  color: #475569;
  column-count: 2;
  column-gap: 16px;
}

.card-inventory-full li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 14px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.btn-view-details-large {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-view-details-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Detail Modal Styling - Extra groot voor catalogus items (1920x1080 verhouding) */
.modal-large {
  max-width: 1920px;
  width: 96vw;
  max-height: calc(100vh - 40px);
  height: auto;
  overflow-y: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

.modal-large .modal-content {
  padding: 0;
  max-width: none;
}

.modal-large .modal-header {
  padding: 24px 32px;
  border-bottom: 3px solid #e2e8f0;
}

.modal-large .modal-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.modal-large .modal-close {
  font-size: 32px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-large .modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.item-detail-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding: 36px;
  align-items: start;
}

.detail-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
}

.detail-image-wrapper {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 3px solid #e2e8f0;
  transition: all 0.3s ease;
}

.detail-image-wrapper:hover {
  border-color: #3b82f6;
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.detail-image {
  width: 100%;
  height: 600px;
  object-fit: contain;
  border-radius: 12px;
}

.no-images {
  grid-column: 1 / -1;
  text-align: center;
  color: #94a3b8;
  padding: 40px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-thema {
  padding: 16px 20px;
  background: #eff6ff;
  border-radius: 12px;
  color: #1e40af;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.detail-description h4,
.detail-inventory h4,
.detail-info-box h4 {
  margin: 0 0 16px 0;
  color: #1e293b;
  font-size: 20px;
  font-weight: 700;
}

.detail-description p {
  color: #475569;
  line-height: 1.8;
  margin: 0;
  font-size: 16px;
}

.inventory-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inventory-list li {
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 8px;
  color: #1e293b;
  font-size: 16px;
  font-weight: 500;
}

.inventory-list li:nth-child(even) {
  background: #f1f5f9;
}

.detail-info-box {
  background: #fef3c7;
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  padding: 20px 24px;
}

.detail-info-box ul {
  margin: 0;
  padding-left: 24px;
  color: #92400e;
}

.detail-info-box li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  gap: 16px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 3px solid #e2e8f0;
}

.detail-actions button {
  flex: 1;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.no-results h3 {
  color: #1e293b;
  margin-bottom: 12px;
}

/* Responsive voor catalogus */
/* Kleinere desktop: 2 kolommen */
@media (max-width: 1400px) {
  .catalogus-grid,
  .catalogus-grid-max4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* Tablet: 2 kolommen (wat smaller) */
@media (max-width: 1200px) {
  .catalogus-grid,
  .catalogus-grid-max4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .catalogus-welcome-card {
    padding: 30px;
  }
  
  .welcome-icon {
    font-size: 48px;
  }
  
  .catalogus-welcome-card h2 {
    font-size: 26px;
  }
  
  .spelregel-text {
    font-size: 15px;
  }
}

/* Mobiel: 1 kolom */
@media (max-width: 768px) {
  .catalogus-grid,
  .catalogus-grid-max4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .catalogus-welcome-card {
    padding: 24px;
    border-radius: 16px;
  }
  
  .welcome-icon {
    font-size: 40px;
  }
  
  .catalogus-welcome-card h2 {
    font-size: 22px;
  }
  
  .catalogus-welcome-card p {
    font-size: 14px;
  }
  
  .spelregels-box {
    padding: 20px;
  }
  
  .spelregels-box h3 {
    font-size: 20px;
  }
  
  .spelregel {
    padding: 16px 20px;
    gap: 12px;
  }
  
  .spelregel-icon {
    font-size: 22px;
  }
  
  .spelregel-text {
    font-size: 14px;
  }
  
  .catalogus-filters {
    flex-direction: column;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .card-image-large {
    height: 320px;
  }
  
  .card-content-below {
    padding: 20px;
  }
  
  .card-title-large {
    font-size: 19px;
  }
  
  .card-description {
    font-size: 14px;
  }
  
  .card-inventory-full {
    padding: 14px 16px;
  }
  
  .card-inventory-full ul {
    column-count: 1;
  }
  
  .card-inventory-full li {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .item-detail-content {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  
  .detail-images {
    grid-template-columns: 1fr;
  }
  
  .modal-large {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .modal-large .modal-header {
    padding: 20px 24px;
  }
  
  .modal-large .modal-header h2 {
    font-size: 22px;
  }
  
  .detail-image {
    height: 400px;
  }
  
  .detail-description h4,
  .detail-inventory h4,
  .detail-info-box h4 {
    font-size: 18px;
  }
  
  .inventory-list li {
    font-size: 15px;
    padding: 10px 14px;
  }
  
  .detail-actions button {
    font-size: 15px;
    padding: 14px 20px;
  }
}


/* Extra kleine schermen */
@media (max-width: 480px) {
  .catalogus-grid,
  .catalogus-grid-max4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .catalogus-welcome-card {
    padding: 20px;
  }
  
  .welcome-icon {
    font-size: 32px;
  }
  
  .catalogus-welcome-card h2 {
    font-size: 20px;
  }
  
  .catalogus-welcome-card p {
    font-size: 13px;
  }
  
  .card-image-large {
    height: 260px;
  }
  
  .card-description {
    font-size: 13px;
  }
  
  .thema-badge-overlay {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ===== MOBIEL LOGOUT KNOP FIX - MOET LAATSTE ZIJN ===== */
@media (max-width: 768px) {
  /* Verberg logout knop in header op mobiel */
  header #logout,
  header .logout-btn {
    display: none !important;
  }
  
  /* Footer styling voor logout knop */
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px !important;
  }
  
  /* Logout knop in footer (wordt via JavaScript toegevoegd) */
  footer #logout,
  footer .logout-btn {
    display: block !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
    border-width: 1px !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    order: -1; /* Zet de knop bovenaan */
  }
  
  footer p {
    order: 1; /* Zet de tekst onderaan */
  }
}


/* ====== Dashboard Postcards Selector (Rol Instellingen) ====== */
.dashboard-postcards-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.dashboard-postcards-section .section-title {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  color: #333;
  font-weight: 600;
}

.dashboard-postcards-section .section-description {
  color: #6c757d;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.dashboard-preview {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.dashboard-preview .preview-title {
  font-size: 1rem;
  margin: 0 0 15px 0;
  color: #495057;
  font-weight: 600;
}

.postcards-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.postcard-option {
  background: #fff;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.postcard-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #adb5bd;
}

.postcard-option.selected {
  border-color: #28a745;
  background: #f1f8f4;
  box-shadow: 0 2px 8px rgba(40,167,69,0.2);
}

.postcard-option .postcard-checkbox {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.postcard-mini {
  margin-top: 5px;
}

.postcard-mini-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.postcard-mini-icon {
  font-size: 1.5rem;
}

.postcard-mini-title {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.postcard-mini-description {
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 5px;
}

.postcard-option-status {
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: #e9ecef;
  color: #495057;
}

.postcard-option.selected .postcard-option-status {
  background: #28a745;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .postcards-grid-preview {
    grid-template-columns: 1fr;
  }
  
  .dashboard-postcards-section {
    padding: 15px;
  }
  
  .dashboard-preview {
    padding: 15px;
  }
}



/* ====== Rol Edit Modal Responsive ====== */
@media (max-width: 900px) {
  /* Maak rol modals responsive op tablets */
  .modal .modal-content[style*="max-width: 1400px"] {
    width: 95vw !important;
    max-width: 95vw !important;
    height: auto !important;
    max-height: 95vh !important;
  }
}

@media (max-width: 768px) {
  /* Maak rol modals fullscreen op mobiel */
  .modal .modal-content[style*="max-width: 1400px"] {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 1rem !important;
  }
  
  /* Postcard grid in rol modal - 1 kolom op mobiel */
  .postcards-grid-preview {
    grid-template-columns: 1fr !important;
  }
  
  /* Rol modal secties compacter */
  .dashboard-postcards-section {
    padding: 12px !important;
  }
  
  .dashboard-preview {
    padding: 12px !important;
  }
}

/* ===== MATERIAAL AANVRAGEN - MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .material-overview,
  .materiaal-container {
    padding: 10px;
  }
  
  .material-header,
  .materiaal-header {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .material-header h2,
  .materiaal-header h2 {
    font-size: 1.5rem;
  }
  
  .material-actions,
  .materiaal-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .material-actions .btn,
  .materiaal-actions .btn {
    width: 100%;
  }
  
  .material-grid,
  .materiaal-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .material-card,
  .materiaal-card {
    padding: 15px;
  }
  
  .material-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .material-request-section {
    padding: 10px;
  }
  
  .material-request-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .material-request-item .btn {
    width: 100%;
  }
  
  .material-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .material-dropdowns select {
    width: 100%;
  }
}

/* ===== INSTELLINGEN - MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .instellingen-dashboard {
    padding: 10px;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .settings-categories {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .category-section {
    padding: 15px 10px;
  }
  
  .category-title {
    font-size: 1.3rem;
  }
  
  .postcards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .management-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
  
  .management-header h2,
  .management-header h3 {
    font-size: 1.4rem;
  }
  
  .header-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .header-actions .btn {
    width: 100%;
  }
  
  .settings-form,
  .management-content {
    padding: 10px;
  }
  
  .form-section {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .form-section h4 {
    font-size: 1.1rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  /* Fix header width on mobile */
  header {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 15px !important;
  }
  
  /* Fix content centering on mobile */
  #content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Fix posten grid mobile */
  .posten-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
    padding: 10px;
    margin: 0;
    max-width: 100%;
  }
  
  .users-grid,
  .roles-grid,
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .user-card,
  .role-card,
  .post-card {
    padding: 15px;
    width: 100%;
    margin: 0;
  }
  
  .user-card-header,
  .role-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .user-actions,
  .role-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  
  .user-actions .btn,
  .role-actions .btn {
    width: 100%;
  }
  
  /* Settings tabs responsive */
  .settings-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 5px;
  }
  
  .tab-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  /* Notifications settings */
  .notifications-settings {
    padding: 10px;
  }
  
  .test-mail-section,
  .help-box {
    padding: 12px;
  }
  
  /* Post mail grid */
  .post-mail-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .post-mail-card {
    padding: 15px;
  }
}

