/* ================================================================
   DESIGN SYSTEM - CUSTOM OVERRIDES
   ================================================================
   
   UI/UX Verbeteringen voor Verbouwen XL
   Modern Clean Design - Geen glow/gradient/neon/emoji
   Laatste update: 20 december 2024
   
   ================================================================ */

:root {
  
  /* ============================================================
     MODERN CLEAN COLOR PALETTE
     ============================================================ */
  
  /* Primary - Deep Navy Blue */
  --ds-brand-primary: #1E293B;
  --ds-brand-primary-hover: #334155;
  --ds-brand-primary-dark: #0F172A;
  --ds-brand-primary-light: rgba(30, 41, 59, 0.06);
  
  /* Accent - Clean Blue */
  --ds-accent: #3B82F6;
  --ds-accent-hover: #2563EB;
  --ds-accent-light: rgba(59, 130, 246, 0.08);
  
  /* Backgrounds - Clean whites and light grays */
  --ds-bg-main: #F8FAFC;
  --ds-bg-page: #FFFFFF;
  --ds-bg-elevated: #FFFFFF;
  
  /* Cards - Solid, clean */
  --ds-bg-card: #FFFFFF;
  --ds-bg-card-solid: #FFFFFF;
  --ds-bg-card-header: #FAFBFC;
  --ds-bg-card-hover: #F8FAFC;
  
  /* Text - High contrast, readable */
  --ds-text-primary: #0F172A;
  --ds-text-secondary: #64748B;
  --ds-text-tertiary: #94A3B8;
  --ds-text-muted: #CBD5E1;
  
  /* Borders - Subtle, clean */
  --ds-border: #E2E8F0;
  --ds-border-light: #F1F5F9;
  --ds-border-dark: #CBD5E1;
  --ds-border-focus: #3B82F6;
  
  /* Status Colors - Flat, no glow */
  --ds-success: #22C55E;
  --ds-success-light: #F0FDF4;
  --ds-success-dark: #16A34A;
  
  --ds-warning: #F59E0B;
  --ds-warning-light: #FFFBEB;
  --ds-warning-dark: #D97706;
  
  --ds-danger: #EF4444;
  --ds-danger-light: #FEF2F2;
  --ds-danger-dark: #DC2626;
  
  --ds-info: #3B82F6;
  --ds-info-light: #EFF6FF;
  --ds-info-dark: #2563EB;
  
  /* Shadows - Subtle, no glow */
  --ds-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --ds-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --ds-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06);
  --ds-shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
  --ds-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
  
  /* Border Radius - Modern but not too rounded */
  --ds-radius-xs: 4px;
  --ds-radius-sm: 6px;
  --ds-radius-md: 8px;
  --ds-radius-lg: 12px;
  --ds-radius-xl: 16px;
  --ds-radius-full: 9999px;
  
  /* Transitions - Smooth, subtle */
  --ds-transition-fast: 100ms ease;
  --ds-transition-normal: 150ms ease;
  --ds-transition-slow: 250ms ease;
  
  /* Spacing */
  --ds-space-xs: 4px;
  --ds-space-sm: 8px;
  --ds-space-md: 16px;
  --ds-space-lg: 24px;
  --ds-space-xl: 32px;
  --ds-space-2xl: 48px;
  
  /* ============================================================
     COMPONENT TOKENS
     ============================================================ */
  
  /* Sidebar */
  --ds-sidebar-bg: #FFFFFF;
  --ds-sidebar-border: #E2E8F0;
  --ds-sidebar-item-radius: 8px;
  --ds-sidebar-item-padding: 10px 14px;
  --ds-sidebar-item-hover-bg: #F1F5F9;
  --ds-sidebar-item-active-bg: #1E293B;
  --ds-sidebar-item-active-text: #FFFFFF;
  
  /* Cards */
  --ds-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --ds-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  --ds-card-border: 1px solid #E2E8F0;
  --ds-card-radius: 12px;
  --ds-card-padding: 20px;
  
  /* Buttons */
  --ds-btn-height: 40px;
  --ds-btn-height-sm: 32px;
  --ds-btn-height-lg: 48px;
  --ds-btn-padding: 0 16px;
  --ds-btn-radius: 8px;
  --ds-btn-font-weight: 500;
  
  /* Inputs */
  --ds-input-height: 40px;
  --ds-input-radius: 8px;
  --ds-input-border: 1px solid #E2E8F0;
  --ds-input-border-focus: 1px solid #3B82F6;
  --ds-input-shadow-focus: 0 0 0 3px rgba(59, 130, 246, 0.1);
  --ds-input-bg: #FFFFFF;
  
  /* Tables */
  --ds-table-header-bg: #F8FAFC;
  --ds-table-header-color: #64748B;
  --ds-table-row-hover-bg: #F8FAFC;
  --ds-table-border: #E2E8F0;
  
  /* Modal */
  --ds-modal-backdrop-bg: rgba(15, 23, 42, 0.5);
  --ds-modal-radius: 16px;
  --ds-modal-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  
  /* Toast */
  --ds-toast-radius: 8px;
  --ds-toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  
  /* Badge */
  --ds-badge-radius: 4px;
  --ds-badge-padding: 2px 8px;
  --ds-badge-font-size: 12px;
  --ds-badge-font-weight: 500;
  
  /* Charts */
  --ds-chart-bar-radius: 4px;
  --ds-chart-grid-color: rgba(0, 0, 0, 0.06);
}

/* ================================================================
   GLOBAL HEADER BAR (Search + Notifications)
   ================================================================ */

.global-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ds-border);
}

.global-header-left {
  flex: 1;
}

.global-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Global Search Bar */
.global-search {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.global-search-input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 44px;
  background: #F1F5F9;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ds-text-primary);
  transition: var(--ds-transition-normal);
}

.global-search-input:hover {
  background: #E2E8F0;
}

.global-search-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--ds-border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.global-search-input::placeholder {
  color: var(--ds-text-tertiary);
}

.global-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-text-tertiary);
  pointer-events: none;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  box-shadow: var(--ds-shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.global-search-results.active {
  display: block;
}

.search-result-group {
  padding: 8px;
}

.search-result-group-title {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ds-text-tertiary);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--ds-transition-fast);
}

.search-result-item:hover {
  background: var(--ds-bg-card-hover);
}

.search-result-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-bg-card-header);
  border-radius: 8px;
  color: var(--ds-text-secondary);
}

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

.search-result-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-subtitle {
  font-size: 12px;
  color: var(--ds-text-tertiary);
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--ds-text-tertiary);
  font-size: 14px;
}

/* Notification Bell */
.notification-bell {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-bg-card-hover);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ds-text-secondary);
  transition: var(--ds-transition-fast);
  flex-shrink: 0;
}

.notification-bell svg {
  width: 26px;
  height: 26px;
}

.notification-bell:hover {
  background: var(--ds-border);
  color: var(--ds-text-primary);
  border-color: var(--ds-border-dark);
}

.notification-bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--ds-danger);
  border-radius: var(--ds-radius-full);
  font-size: 12px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.notification-bell-badge:empty,
.notification-bell-badge[data-count="0"] {
  display: none;
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  box-shadow: var(--ds-shadow-xl);
  z-index: 1000;
  display: none;
}

.notification-dropdown.active {
  display: block;
}

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

.notification-header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ds-text-primary);
}

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

.notification-mark-read {
  font-size: 13px;
  color: var(--ds-accent);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.notification-mark-read:hover {
  text-decoration: underline;
}

.notification-tabs {
  display: flex;
  border-bottom: 1px solid var(--ds-border);
}

.notification-tab {
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--ds-transition-fast);
}

.notification-tab:hover {
  color: var(--ds-text-primary);
  background: var(--ds-bg-card-hover);
}

.notification-tab.active {
  color: var(--ds-text-primary);
  border-bottom-color: var(--ds-brand-primary);
}

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

.notification-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ds-border-light);
  cursor: pointer;
  transition: var(--ds-transition-fast);
}

.notification-item:hover {
  background: var(--ds-bg-card-hover);
}

.notification-item.unread {
  background: var(--ds-info-light);
}

.notification-item.unread:hover {
  background: #DBEAFE;
}

.notification-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-bg-card-header);
  border-radius: 8px;
  flex-shrink: 0;
}

.notification-item-icon.success {
  background: var(--ds-success-light);
  color: var(--ds-success);
}

.notification-item-icon.warning {
  background: var(--ds-warning-light);
  color: var(--ds-warning);
}

.notification-item-icon.danger {
  background: var(--ds-danger-light);
  color: var(--ds-danger);
}

.notification-item-icon.info {
  background: var(--ds-info-light);
  color: var(--ds-info);
}

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

.notification-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-text-primary);
  margin-bottom: 2px;
}

.notification-item-desc {
  font-size: 13px;
  color: var(--ds-text-secondary);
  line-height: 1.4;
}

.notification-item-time {
  font-size: 12px;
  color: var(--ds-text-tertiary);
  margin-top: 4px;
}

.notification-empty {
  padding: 48px 20px;
  text-align: center;
}

.notification-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--ds-text-muted);
}

.notification-empty-text {
  font-size: 14px;
  color: var(--ds-text-tertiary);
}

.notification-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--ds-border);
  text-align: center;
}

.notification-footer-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-accent);
  text-decoration: none;
}

.notification-footer-link:hover {
  text-decoration: underline;
}

/* ================================================================
   MODERN CLEAN UI - GLOBAL STYLES
   ================================================================ */

/* ============================================================
   BODY & MAIN BACKGROUND - Solid clean color
   ============================================================ */
body {
  background: #F8FAFC !important;
}

body::before {
  display: none !important;
}

.main-content {
  background: #F8FAFC !important;
}

/* ============================================================
   SIDEBAR - Clean modern style with proper scroll
   ============================================================ */
.sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Hide any horizontal scrollbar on sidebar and its children */
.sidebar,
.sidebar * {
  overflow-x: hidden !important;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Ensure credits card stays visible */
.credits-card {
  flex-shrink: 0 !important;
}

/* Navigation can scroll if needed */
.sidebar nav {
  flex: 1 !important;
  overflow-y: auto !important;
  min-height: 0 !important;
}

.sidebar-nav {
  padding-bottom: 20px !important;
}

.sidebar-nav-item {
  border-radius: 8px !important;
  transition: all 150ms ease !important;
  margin-bottom: 2px !important;
}

.sidebar-nav-item:hover {
  background: #F1F5F9 !important;
  transform: none !important;
}

.sidebar-nav-item.active {
  background: #1E293B !important;
  box-shadow: none !important;
}

.sidebar-nav-item.active .sidebar-nav-text,
.sidebar-nav-item.active .sidebar-nav-icon {
  color: #FFFFFF !important;
}

/* ============================================================
   CARDS - Flat, solid, no blur/glass
   ============================================================ */
.card,
.card-static,
.stat-card,
.stats-card,
.admin-card-wrapper,
.chart-card,
.appointments-card,
.stat-card-modern {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: all 150ms ease !important;
}

.card:hover,
.card-static:hover,
.stat-card:hover,
.stat-card-modern:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  transform: none !important;
}

.card-header {
  background: #FAFBFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  border-radius: 12px 12px 0 0 !important;
}

/* ============================================================
   BUTTONS - Solid colors, no gradients
   ============================================================ */
.btn,
button[class*="btn"] {
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: all 150ms ease !important;
  box-shadow: none !important;
}

.btn-primary,
.btn.btn-primary {
  background: #1E293B !important;
  border: none !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: #334155 !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-secondary {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1px solid #E2E8F0 !important;
}

.btn-secondary:hover {
  background: #E2E8F0 !important;
  color: #1E293B !important;
}
  border: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1px solid #E2E8F0 !important;
}

.btn-secondary:hover {
  background: #E2E8F0 !important;
  color: #334155 !important;
}

/* ============================================================
   INPUT & FORM VERBETERINGEN
   ============================================================ */
/* ============================================================
   INPUT & FORM - Clean borders
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select,
.form-control {
  border-radius: 8px !important;
  border: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  transition: all 150ms ease !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: #3B82F6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  outline: none !important;
}

/* ============================================================
   TABLE - Clean, minimal borders
   ============================================================ */
.table,
table {
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #E2E8F0 !important;
}

.table thead th,
table thead th {
  background: #F8FAFC !important;
  color: #64748B !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

.table tbody tr:hover,
table tbody tr:hover {
  background: #F8FAFC !important;
}

/* ============================================================
   BADGES - Flat, solid colors, no gradients
   ============================================================ */
.badge,
.status-badge,
[class*="badge"] {
  border-radius: 4px !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  padding: 4px 8px !important;
}

.badge-success,
.status-badge.success,
[class*="badge"][class*="success"] {
  background: #F0FDF4 !important;
  color: #16A34A !important;
  border: none !important;
}

.badge-error,
.badge-danger,
.status-badge.error,
[class*="badge"][class*="error"],
[class*="badge"][class*="danger"] {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border: none !important;
}

.badge-warning,
.status-badge.warning,
[class*="badge"][class*="warning"] {
  background: #FFFBEB !important;
  color: #D97706 !important;
  border: none !important;
}

.badge-info,
.badge-primary,
.status-badge.info,
[class*="badge"][class*="info"],
[class*="badge"][class*="primary"] {
  background: #EFF6FF !important;
  color: #2563EB !important;
  border: none !important;
}

/* ============================================================
   MODAL - Clean, no blur backdrop
   ============================================================ */
.modal-backdrop,
.modal-overlay,
[class*="modal"][class*="backdrop"],
[class*="modal"][class*="overlay"] {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.modal-content,
.modal-container,
[class*="modal-content"],
[class*="modal-container"] {
  border-radius: 16px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #E2E8F0 !important;
}

/* ============================================================
   TOAST - Clean, solid background
   ============================================================ */
.toast,
[class*="toast"] {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: none !important;
}

/* ============================================================
   DROPDOWN - Clean, dark style (matching reference)
   ============================================================ */
.dropdown-menu,
[class*="dropdown"]:not(.notification-dropdown) {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #E2E8F0 !important;
  padding: 4px !important;
}

.dropdown-item,
[class*="dropdown-item"] {
  border-radius: 6px !important;
  padding: 8px 12px !important;
  transition: all 150ms ease !important;
}

.dropdown-item:hover {
  background: #F1F5F9 !important;
}

/* ============================================================
   SCROLLBAR - Minimal, subtle
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ============================================================
   FOCUS STATES - Accessibility
   ============================================================ */
*:focus-visible {
  outline: 2px solid #3B82F6 !important;
  outline-offset: 2px !important;
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.skeleton,
[class*="skeleton"] {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s infinite !important;
  border-radius: 8px !important;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   PAGE HEADER VERBETERINGEN
   ============================================================ */
.page-header h1,
.main-content > h1:first-child,
[class*="page-title"] {
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  color: #0F172A !important;
}

/* ============================================================
   STATS CARD ICON IMPROVEMENTS
   ============================================================ */
.stats-icon,
[class*="stats-icon"],
.stat-icon {
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================
   LEAD CARDS SPECIFIEKE STYLING
   ============================================================ */
.lead-card {
  border-radius: 16px !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lead-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================
   CHART CONTAINER STYLING
   ============================================================ */
.chart-container,
[class*="chart-container"],
canvas {
  border-radius: 12px !important;
}

/* ============================================================
   FILTER TABS STYLING
   ============================================================ */
.filter-tabs,
[class*="filter-tab"],
.tab-container {
  background: #FFFFFF !important;
  border-radius: 12px !important;
  padding: 6px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.filter-tab,
.tab-item {
  border-radius: 8px !important;
  transition: all 150ms ease !important;
}

.filter-tab.active,
.tab-item.active {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
}

/* ============================================================
   EXPERIENCE 7: ANIMATED (Snellere animaties)
   ============================================================ */
/*
:root {
  --ds-chart-animation-duration: 1200ms;
  --ds-chart-animation-easing: easeOutElastic;
  --ds-chart-hover-animation: 300ms;
}
*/

/* ============================================================
   EXPERIENCE 8: SUBTLE (Langzame, elegante animaties)
   ============================================================ */
/*
:root {
  --ds-chart-animation-duration: 2000ms;
  --ds-chart-animation-easing: easeOutCubic;
  --ds-chart-hover-animation: 400ms;
}
*/

/* ================================================================
   GRAFIEK TOOLTIP STIJLEN
   ================================================================ */

/* ============================================================
   TOOLTIP: LIGHT MODE
   ============================================================ */
/*
:root {
  --ds-chart-tooltip-bg: rgba(255, 255, 255, 0.98);
  --ds-chart-tooltip-color: #111827;
  --ds-chart-tooltip-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
*/

/* ============================================================
   TOOLTIP: BRANDED (Gebruik je brand kleur)
   ============================================================ */
/*
:root {
  --ds-chart-tooltip-bg: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  --ds-chart-tooltip-color: white;
  --ds-chart-tooltip-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}
*/

/* ================================================================
   COMPONENT-SPECIFIEKE OVERRIDES
   ================================================================ */

/* Voorbeeld: Aangepaste Button Styling */
/*
.btn-primary {
  --ds-btn-primary-bg: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  --ds-btn-primary-shadow: 0 4px 14px rgba(236, 72, 153, 0.25);
}
*/

/* Voorbeeld: Aangepaste Card Styling */
/*
.card {
  --ds-card-radius: 20px;
  --ds-card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
*/

/* Voorbeeld: Aangepaste Modal Styling */
/*
.modal-content {
  --ds-modal-radius: 24px;
  --ds-modal-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}
*/

/* ================================================================
   CREDITS CARD - PREMIUM PINPAS STYLE
   ================================================================ */

.credits-card {
  position: relative;
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #334155 100%);
  border-radius: 14px;
  color: white;
  overflow: hidden !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
}

.credits-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.credits-card * {
  overflow: hidden !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.credits-card *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Animated shine effect */
.credits-card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Background pattern */
.credits-card-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36-6V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6-6V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.credits-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.credits-card-chip {
  width: 45px;
  height: 35px;
  background: linear-gradient(135deg, #d4af37 0%, #f5d060 50%, #d4af37 100%);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 4px;
}

.chip-line {
  width: 80%;
  height: 2px;
  background: rgba(0,0,0,0.15);
  border-radius: 1px;
}

.chip-main {
  width: 60%;
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

.credits-card-contactless {
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.6);
}

.credits-card-balance {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.credits-card-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.credits-card-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.credits-card-value {
  font-size: 32px;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.credits-card-currency {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.credits-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.credits-card-holder {
  display: flex;
  flex-direction: column;
}

.credits-card-holder-label {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credits-card-holder-name {
  font-size: 13px;
  color: white;
  font-weight: 600;
}

.credits-card-brand {
  display: flex;
  align-items: center;
}

.brand-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.brand-circle-1 {
  background: #eb001b;
  opacity: 0.9;
}

.brand-circle-2 {
  background: #f79e1b;
  opacity: 0.9;
  margin-left: -10px;
}

.credits-card-btn {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.credits-card-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}

.credits-card-btn svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   END CREDITS CARD
   ======================================== */

/* ================================================================
   ADMIN PANEL - MODERN GLASSMORPHISM DESIGN
   ================================================================ */

/* Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 1200px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 24px -8px rgba(0, 0, 0, 0.12),
    0 4px 8px -4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-icon-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.admin-stat-icon-green {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.admin-stat-icon-orange {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.admin-stat-icon-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.admin-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  letter-spacing: -0.02em;
}

.admin-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
}

/* Admin Section */
.admin-section {
  margin-bottom: 24px;
}

/* Admin Card */
.admin-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}

.admin-card:hover {
  box-shadow: 
    0 8px 16px -4px rgba(0, 0, 0, 0.08),
    0 4px 8px -1px rgba(0, 0, 0, 0.04);
}

.admin-card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid transparent;
}

.admin-card-header:hover {
  background: rgba(249, 250, 251, 0.6);
}

.admin-card-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.admin-card-icon-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.admin-card-icon-green {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.admin-card-icon-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.admin-card-icon-orange {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.admin-card-icon-emerald {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.admin-card-icon-red {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.admin-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.admin-card-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6B7280;
  font-weight: 400;
}

.admin-card-chevron {
  color: #9CA3AF;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card-content {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.admin-card-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.admin-card-content.expanded,
.admin-card-content:not(.collapsed) {
  max-height: 5000px;
  opacity: 1;
}

.admin-card-body {
  padding: 24px;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
  background: rgba(249, 250, 251, 0.3);
}

/* Admin Info Banner */
.admin-info-banner {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.admin-info-banner-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-info-banner-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.admin-info-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-info-banner-success .admin-info-banner-icon {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.admin-info-banner-warning .admin-info-banner-icon {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.admin-info-banner-content h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-info-banner-success .admin-info-banner-content h4 {
  color: #047857;
}

.admin-info-banner-warning .admin-info-banner-content h4 {
  color: #92400E;
}

.admin-info-banner-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.admin-info-banner-success .admin-info-banner-content p {
  color: #059669;
}

.admin-info-banner-warning .admin-info-banner-content p {
  color: #B45309;
}

/* Admin Payout Stats */
.admin-payout-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .admin-payout-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-payout-stat {
  padding: 16px 18px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-payout-stat:hover {
  transform: translateY(-2px);
}

.admin-payout-stat-amber {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.admin-payout-stat-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-payout-stat-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.15) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.admin-payout-stat-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.15) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-payout-stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.admin-payout-stat-amber .admin-payout-stat-value { color: #D97706; }
.admin-payout-stat-blue .admin-payout-stat-value { color: #2563EB; }
.admin-payout-stat-green .admin-payout-stat-value { color: #16A34A; }
.admin-payout-stat-red .admin-payout-stat-value { color: #DC2626; }

.admin-payout-stat-label {
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.admin-payout-stat-amber .admin-payout-stat-label { color: #92400E; }
.admin-payout-stat-blue .admin-payout-stat-label { color: #1E40AF; }
.admin-payout-stat-green .admin-payout-stat-label { color: #166534; }
.admin-payout-stat-red .admin-payout-stat-label { color: #B91C1C; }

/* Admin Payout Section */
.admin-payout-section {
  margin-bottom: 28px;
}

.admin-payout-section:last-child {
  margin-bottom: 0;
}

.admin-payout-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-payout-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.admin-payout-section-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.admin-payout-section-icon-amber {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.admin-payout-section-icon-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.admin-payout-section-icon-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.admin-payout-section-icon-red {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

/* Admin Badge */
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  color: white;
}

.admin-badge-amber { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.admin-badge-blue { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }
.admin-badge-green { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.admin-badge-red { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }

/* Admin Refresh Button */
.admin-btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn-refresh:hover {
  background: white;
  border-color: #D1D5DB;
  color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Admin Payout List */
.admin-payout-list {
  border-radius: 12px;
  padding: 16px;
  min-height: 60px;
}

.admin-payout-list-amber {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.6) 0%, rgba(253, 230, 138, 0.4) 100%);
  border: 1px solid rgba(253, 230, 138, 0.6);
}

.admin-payout-list-blue {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.6) 0%, rgba(191, 219, 254, 0.4) 100%);
  border: 1px solid rgba(191, 219, 254, 0.6);
}

.admin-payout-list-green {
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.6) 0%, rgba(167, 243, 208, 0.4) 100%);
  border: 1px solid rgba(167, 243, 208, 0.6);
}

.admin-payout-list-red {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.6) 0%, rgba(254, 202, 202, 0.4) 100%);
  border: 1px solid rgba(254, 202, 202, 0.6);
}

.admin-payout-empty {
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: #6B7280;
}

.admin-payout-list-amber .admin-payout-empty { color: #92400E; }
.admin-payout-list-blue .admin-payout-empty { color: #1E40AF; }
.admin-payout-list-green .admin-payout-empty { color: #047857; }
.admin-payout-list-red .admin-payout-empty { color: #B91C1C; }

/* Admin Search Input */
.admin-search-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  transition: all 0.2s ease;
}

.admin-search-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

.admin-search-input::placeholder {
  color: #9CA3AF;
}

/* Admin Stat Icon Red */
.admin-stat-icon-red {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Admin Migration Tool */
.admin-migration-tool {
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 12px;
}

.admin-migration-tool h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.admin-migration-tool p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
}

.admin-migration-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-btn-warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.admin-btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.admin-migration-status {
  font-size: 14px;
  color: #6B7280;
}

/* Admin Card Inner Padding */
.admin-card-inner {
  padding: 24px;
}
/* ================================================
   ADMIN TABLE STYLES
   ================================================ */

.admin-table-container {
  max-height: 600px;
  overflow-y: auto;
  border-radius: 12px;
  background: rgba(249, 250, 251, 0.5);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-table th {
  background: #FAFBFC;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6B7280;
  border-bottom: 1px solid #E5E7EB;
}

.admin-table th.text-center-col {
  text-align: center;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.admin-table tbody tr.clickable {
  cursor: pointer;
}

/* Table Cell Styles */
.admin-cell-name {
  font-weight: 600;
  color: #111827;
}

.admin-cell-subtitle {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}

.admin-cell-secondary {
  color: #6B7280;
}

.admin-cell-center {
  text-align: center;
}

.admin-cell-muted {
  color: #9CA3AF;
}

/* Admin Check/Circle Icons */
.admin-icon-check {
  color: #22C55E;
  font-size: 1.2rem;
}

.admin-icon-circle {
  color: #D1D5DB;
  font-size: 1.2rem;
}

/* Admin Filter Bar */
.admin-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-filter-bar .admin-search-input {
  flex: 1;
  min-width: 300px;
}

.admin-filter-bar .admin-select {
  width: 200px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-filter-bar .admin-select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

/* Admin Action Buttons */
.admin-action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn-primary {
  background: #3B82F6;
  color: white;
}

.admin-btn-primary:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

.admin-btn-success {
  background: #22C55E;
  color: white;
}

.admin-btn-success:hover {
  background: #16A34A;
}

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

.admin-btn-danger:hover {
  background: #DC2626;
}

/* Admin Card Body */
.admin-card-body {
  padding: 24px;
}

/* Admin Card Icon (alternative to stat-icon) */
.admin-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.admin-card-icon-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.admin-card-icon-green {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.admin-card-icon-orange {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.admin-card-icon-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.admin-card-icon-red {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* ===== DASHBOARD SPECIFIC STYLES ===== */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card-modern {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

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

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.chart-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.chart-header p {
  font-size: 13px;
  color: #6B7280;
  margin: 4px 0 0 0;
}

.chart-body {
  height: 300px;
  position: relative;
}

.period-selector {
  display: flex;
  gap: 8px;
  background: #F9FAFB;
  padding: 4px;
  border-radius: 8px;
}

.period-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
}

.period-btn.active {
  background: white;
  color: #3B82F6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.period-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

.appointments-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.appointments-card .card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #F0F1F3;
  background: #FAFBFC;
}

.appointments-card .icon-wrapper {
  width: 44px;
  height: 44px;
  background: #EFF6FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appointments-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.appointments-card p {
  font-size: 13px;
  color: #6B7280;
  margin: 4px 0 0 0;
}

.appointment-item {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #F0F1F3;
  cursor: pointer;
  transition: all 0.2s;
}

.appointment-item:hover {
  background: #F9FAFB;
}

.appointment-date {
  width: 60px;
  text-align: center;
  padding: 12px 8px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 10px;
  color: white;
  flex-shrink: 0;
}

.Appointment-date .day-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.Appointment-date .day-num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.Appointment-date .month {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
}

.appointment-info {
  flex: 1;
  min-width: 0;
}

.appointment-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-time {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 6px;
}

.text-center {
  text-align: center;
  padding: 40px 20px;
  color: #9CA3AF;
  font-size: 14px;
}

.text-muted {
  color: #9CA3AF;
}

/* ================================================================
   LEAD MARKETPLACE VIEW TOGGLE & MOBILE OPTIONS BAR
   ================================================================ */

/* View Toggle Container */
.marketplace-view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-toggle-group {
  display: flex !important;
  background: #F3F4F6;
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
  flex-shrink: 0;
}

.view-toggle-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.15s ease;
}

.view-toggle-btn:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.5);
  border-color: #E5E7EB;
}

.view-toggle-btn.active {
  background: white;
  color: #3B82F6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Lead Grid - 4 column view */
.lead-grid.grid-view-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lead-grid.grid-view-4 .lead-card {
  /* Switch to VERTICAL layout for grid view */
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none;
  max-width: none;
  min-height: auto;
  width: 100%;
}

.lead-grid.grid-view-4 .lead-card__photo-section {
  width: 100% !important;
  min-height: 180px;
  max-height: 200px;
  flex-shrink: 0;
}

.lead-grid.grid-view-4 .lead-card__info {
  width: 100% !important;
  padding: 16px;
  flex: 1;
  overflow: visible;
}

.lead-grid.grid-view-4 .lead-card__title {
  font-size: 18px;
}

.lead-grid.grid-view-4 .lead-card__subtitle {
  font-size: 13px;
}

.lead-grid.grid-view-4 .lead-card__price {
  font-size: 24px;
}

.lead-grid.grid-view-4 .lead-card__data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.lead-grid.grid-view-4 .lead-card__data-item {
  min-width: 0;
}

.lead-grid.grid-view-4 .lead-card__data-label {
  font-size: 9px;
}

.lead-grid.grid-view-4 .lead-card__data-value {
  font-size: 13px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.lead-grid.grid-view-4 .lead-card__sidebar {
  display: none;
}

.lead-grid.grid-view-4 .lead-card__avatar-large {
  width: 70px;
  height: 70px;
}

.lead-grid.grid-view-4 .lead-card__actions {
  flex-direction: row;
  gap: 8px;
  margin-top: 12px;
}

/* Lead Grid - Single column (default) */
.lead-grid.grid-view-1,
.lead-grid:not(.grid-view-4) {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap, 24px);
}

/* Mobile Options Bar */
.mobile-options-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #E5E7EB;
  padding: 8px 16px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-options-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  max-width: 100%;
}

.mobile-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #6B7280;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.mobile-option-btn:hover,
.mobile-option-btn.active {
  color: #3B82F6;
  background: #EFF6FF;
}

.mobile-option-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Hide desktop view toggle on mobile - view toggle removed from mobile bar */
.mobile-view-toggle {
  display: none !important;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  /* Show mobile options bar */
  .mobile-options-bar {
    display: block;
  }
  
  /* Hide desktop view toggle on mobile */
  .view-toggle-group {
    display: none !important;
  }
  
  /* Notification bell on mobile - ensure visibility */
  .notification-bell {
    width: 44px;
    height: 44px;
    display: flex !important;
    position: relative;
    z-index: 50;
  }
  
  .notification-bell svg {
    width: 22px;
    height: 22px;
  }
  
  /* Notification dropdown on mobile */
  .notification-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  }
  
  /* Grid view 4 on mobile = 2 columns */
  .lead-grid.grid-view-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .lead-grid.grid-view-4 .lead-card__photo-section {
    min-height: 140px;
  }
  
  .lead-grid.grid-view-4 .lead-card__title {
    font-size: 14px;
  }
  
  .lead-grid.grid-view-4 .lead-card__price {
    font-size: 18px;
  }
  
  /* Add padding at bottom for mobile options bar */
  .main-content {
    padding-bottom: 80px !important;
  }
  
  /* Filter buttons scroll horizontally on mobile */
  .lead-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .lead-filters::-webkit-scrollbar {
    display: none;
  }
  
  .lead-filters__btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ============================================================
   REJECTED LEAD CHAT - FULL MODAL LAYOUT
   ================================================================ */

/* When chat is in a modal, make it fill the entire space */
.modal-content .rejected-chat-container {
  height: calc(100% - 60px);
  max-height: none;
  min-height: 500px;
  margin: -24px;
  margin-top: 0;
  border-radius: 0;
}

.modal-content:has(.rejected-chat-container) {
  padding-bottom: 0;
  overflow: hidden;
}

/* Full height chat modal */
.modal-body:has(.rejected-chat-container) {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-body .rejected-chat-container {
  flex: 1;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0 0 16px 16px;
}

/* Ensure chat messages area expands */
.rejected-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rejected-chat-messages {
  flex: 1;
  min-height: 200px;
}

/* Sidebar Mobile Only - Hide X button on desktop */
.sidebar-mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .sidebar-mobile-only {
    display: flex !important;
  }
}