/**
 * Burak CMS v2 - Design System
 * ============================
 * 
 * Een modern, professioneel design systeem met:
 * - Bordeaux (#8B1A1A) & Gold (#C8A882) kleurenpalet
 * - Dark mode ondersteuning
 * - Mobile-first responsive design
 * - Consistente componenten
 * 
 * Font: Plus Jakarta Sans (display) + DM Sans (body)
 */

/* =====================================================
   CSS CUSTOM PROPERTIES (Variables)
   ===================================================== */
:root {
    /* Primary Colors - Bordeaux */
    --primary: #8B1A1A;
    --primary-light: #A52A2A;
    --primary-lighter: #C44D4D;
    --primary-dark: #6B1414;
    --primary-darker: #4A0E0E;
    --primary-rgb: 139, 26, 26;
    
    /* Accent Colors - Gold */
    --accent: #C8A882;
    --accent-light: #D4BC9A;
    --accent-lighter: #E5D5C0;
    --accent-dark: #B8956A;
    --accent-darker: #9A7B52;
    --accent-rgb: 200, 168, 130;
    
    /* Semantic Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --success-dark: #059669;
    
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --warning-dark: #D97706;
    
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --danger-dark: #DC2626;
    
    --info: #3B82F6;
    --info-light: #DBEAFE;
    --info-dark: #2563EB;
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Background & Surface - Light Mode */
    --bg-body: #F8F9FC;
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F3F4F6;
    --bg-elevated: #FFFFFF;
    --bg-muted: #F3F4F6;
    
    /* Text Colors - Light Mode */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --text-inverse: #FFFFFF;
    
    /* Borders */
    --border-color: #E5E7EB;
    --border-color-light: #F3F4F6;
    --border-color-dark: #D1D5DB;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 14px rgba(139, 26, 26, 0.25);
    --shadow-accent: 0 4px 14px rgba(200, 168, 130, 0.25);
    
    /* Typography */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Legacy Spacing Aliases */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 64px;
    --content-max-width: 1400px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-body: #0F172A;
    --bg-surface: #1E293B;
    --bg-surface-hover: #334155;
    --bg-elevated: #1E293B;
    --bg-muted: #334155;
    
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --border-color: #334155;
    --border-color-light: #1E293B;
    --border-color-dark: #475569;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    
    --primary-light: #C44D4D;
    --accent-light: #E5D5C0;
}

/* =====================================================
   BASE STYLES
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-body);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-4);
    color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin: 0 0 var(--space-4);
}

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

a:hover {
    color: var(--primary-dark);
}

/* Selection */
::selection {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-dark);
}

/* =====================================================
   LAYOUT - Admin Dashboard
   ===================================================== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    z-index: var(--z-fixed);
    transition: width var(--transition-slow), transform var(--transition-slow);
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand-logo {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    color: var(--primary-dark);
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--transition-base);
}

.sidebar.collapsed .sidebar-brand-text {
    opacity: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) 0;
}

.nav-section {
    margin-bottom: var(--space-4);
}

.nav-section-title {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    padding: var(--space-2) var(--space-5);
    margin-bottom: var(--space-2);
    white-space: nowrap;
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-inverse);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-item-text {
    flex: 1;
    opacity: 1;
    transition: opacity var(--transition-base);
}

.sidebar.collapsed .nav-item-text {
    opacity: 0;
}

.nav-item-badge {
    background: var(--danger);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    color: var(--primary-dark);
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    overflow: hidden;
}

.sidebar-user-name {
    font-weight: var(--font-semibold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-slow);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 var(--space-6);
    gap: var(--space-4);
    z-index: var(--z-sticky);
}

.header-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.header-toggle:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.header-search-input {
    width: 100%;
    height: 40px;
    padding: 0 var(--space-4) 0 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-muted);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    position: relative;
    transition: all var(--transition-fast);
}

.header-action-btn:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.header-action-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Mode Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--bg-muted);
    border-radius: var(--radius-full);
}

.theme-toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle-btn.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Content Area */
.content {
    flex: 1;
    padding: var(--space-6);
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    gap: var(--space-4);
    flex-wrap: wrap;
}

.page-header-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin: 0;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--text-secondary);
}

.page-breadcrumb a:hover {
    color: var(--primary);
}

.page-breadcrumb-separator {
    color: var(--text-muted);
}

.page-header-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* =====================================================
   STATS CARDS
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color-light);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon svg {
    width: 28px;
    height: 28px;
}

.stat-card-icon.primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

.stat-card-icon.accent {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--primary-dark);
    box-shadow: var(--shadow-accent);
}

.stat-card-icon.success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
}

.stat-card-icon.warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
    color: white;
}

.stat-card-icon.danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
}

.stat-card-icon.info {
    background: linear-gradient(135deg, var(--info) 0%, var(--info-dark) 100%);
    color: white;
}

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

.stat-card-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.stat-card-change {
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.stat-card-change.positive {
    color: var(--success);
}

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

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color-light);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-4);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-title-icon {
    color: var(--primary);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-body {
    padding: var(--space-5);
}

.card-body.no-padding {
    padding: 0;
}

.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-color);
    background: var(--bg-muted);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 var(--space-4);
    height: 40px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

/* Button Sizes */
.btn-sm {
    height: 32px;
    padding: 0 var(--space-3);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
}

.btn-lg {
    height: 48px;
    padding: 0 var(--space-6);
    font-size: var(--text-base);
}

.btn-icon {
    width: 40px;
    padding: 0;
}

.btn-icon.btn-sm {
    width: 32px;
}

.btn-icon.btn-lg {
    width: 48px;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--primary-dark);
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
}

.btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
}

.btn-danger:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 0;
    height: auto;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--border-color-dark);
}

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

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-hint {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--text-sm);
    color: var(--danger);
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.form-check-input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check-label {
    font-size: var(--text-base);
    color: var(--text-primary);
    cursor: pointer;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-input {
    border-radius: 0;
    flex: 1;
}

.input-group .form-input:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group .form-input:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    background: var(--bg-muted);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.input-group-text:first-child {
    border-right: 0;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group-text:last-child {
    border-left: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.input-group .btn:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group .btn:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* =====================================================
   TABLES
   ===================================================== */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    background: var(--bg-muted);
    white-space: nowrap;
}

.table th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.table th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-surface-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table td {
    font-size: var(--text-sm);
    color: var(--text-primary);
    vertical-align: middle;
}

/* Table Row Actions */
.table-actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.table tbody tr:hover .table-actions {
    opacity: 1;
}

/* Clickable Row */
.table-clickable tbody tr {
    cursor: pointer;
}

.table-clickable tbody tr:active {
    background: var(--bg-muted);
}

/* Table with Avatar */
.table-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.table-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--bg-muted);
}

.table-user-info {
    min-width: 0;
}

.table-user-name {
    font-weight: var(--font-medium);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-user-email {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.badge-success {
    background: var(--success-light);
    color: var(--success-dark);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger-dark);
}

.badge-info {
    background: var(--info-light);
    color: var(--info-dark);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Status Badges with Dot */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.status-badge.voldaan {
    background: var(--success-light);
    color: var(--success-dark);
}

.status-badge.voldaan::before {
    background: var(--success);
}

.status-badge.gedeeltelijk {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.status-badge.gedeeltelijk::before {
    background: var(--warning);
}

.status-badge.openstaand {
    background: var(--danger-light);
    color: var(--danger-dark);
}

.status-badge.openstaand::before {
    background: var(--danger);
}

.status-badge.actief {
    background: var(--success-light);
    color: var(--success-dark);
}

.status-badge.actief::before {
    background: var(--success);
}

.status-badge.inactief {
    background: var(--gray-100);
    color: var(--gray-600);
}

.status-badge.inactief::before {
    background: var(--gray-400);
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1140px;
}

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

.modal-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-5);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-color);
    background: var(--bg-muted);
}

/* =====================================================
   FILTER BAR
   ===================================================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    border: 1px solid var(--border-color-light);
}

.filter-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.filter-search-input {
    width: 100%;
    height: 40px;
    padding: 0 var(--space-4) 0 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-surface);
}

.filter-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-select {
    height: 40px;
    min-width: 150px;
    padding: 0 var(--space-4);
    padding-right: 36px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-view-toggle {
    display: flex;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: 4px;
    border: 2px solid var(--border-color);
}

.filter-view-btn {
    width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.filter-view-btn.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-4) 0;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 var(--space-2);
    color: var(--text-muted);
}

/* =====================================================
   ALERTS / TOASTS
   ===================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.alert-icon {
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-1);
}

.alert-message {
    font-size: var(--text-sm);
}

.alert-success {
    background: var(--success-light);
    color: var(--success-dark);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-dark);
}

.alert-info {
    background: var(--info-light);
    color: var(--info-dark);
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: var(--space-4);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    animation: slideIn var(--transition-slow) ease;
}

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

/* =====================================================
   TABS
   ===================================================== */
.tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--space-5);
}

.tab {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =====================================================
   PROGRESS
   ===================================================== */
.progress {
    height: 8px;
    background: var(--bg-muted);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-bar.success {
    background: linear-gradient(90deg, var(--success) 0%, var(--success-dark) 100%);
}

.progress-bar.warning {
    background: linear-gradient(90deg, var(--warning) 0%, var(--warning-dark) 100%);
}

.progress-bar.danger {
    background: linear-gradient(90deg, var(--danger) 0%, var(--danger-dark) 100%);
}

/* Progress with Label */
.progress-labeled {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.progress-labeled .progress {
    flex: 1;
}

.progress-labeled .progress-value {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    min-width: 48px;
    text-align: right;
}

/* =====================================================
   AVATAR
   ===================================================== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-weight: var(--font-semibold);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-xs { width: 24px; height: 24px; font-size: var(--text-xs); }
.avatar-sm { width: 32px; height: 32px; font-size: var(--text-sm); }
.avatar-md { width: 40px; height: 40px; font-size: var(--text-base); }
.avatar-lg { width: 56px; height: 56px; font-size: var(--text-lg); }
.avatar-xl { width: 80px; height: 80px; font-size: var(--text-2xl); }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    border: 2px solid var(--bg-surface);
    margin-left: -8px;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* =====================================================
   DROPDOWN
   ===================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: var(--space-2);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.dropdown.open .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-muted);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: var(--danger-light);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-2) 0;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-6);
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-4);
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: var(--space-6);
}

/* =====================================================
   LOADING STATES
   ===================================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-surface-hover) 50%, var(--bg-muted) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

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

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: var(--space-3);
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }

/* =====================================================
   UTILITIES
   ===================================================== */
/* Text */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

.text-xs { font-size: var(--text-xs) !important; }
.text-sm { font-size: var(--text-sm) !important; }
.text-base { font-size: var(--text-base) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-xl { font-size: var(--text-xl) !important; }
.text-2xl { font-size: var(--text-2xl) !important; }

.font-normal { font-weight: var(--font-normal) !important; }
.font-medium { font-weight: var(--font-medium) !important; }
.font-semibold { font-weight: var(--font-semibold) !important; }
.font-bold { font-weight: var(--font-bold) !important; }

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.text-nowrap { white-space: nowrap !important; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Spacing */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-5 { margin: var(--space-5) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-5 { padding: var(--space-5) !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Flexbox */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-1 { flex: 1 !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }

.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.items-end { align-items: flex-end !important; }
.items-stretch { align-items: stretch !important; }

.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }
.gap-4 { gap: var(--space-4) !important; }
.gap-5 { gap: var(--space-5) !important; }

/* Width / Height */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.h-full { height: 100% !important; }
.h-auto { height: auto !important; }
.min-w-0 { min-width: 0 !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }

/* Border */
.border { border: 1px solid var(--border-color) !important; }
.border-0 { border: 0 !important; }
.border-t { border-top: 1px solid var(--border-color) !important; }
.border-b { border-bottom: 1px solid var(--border-color) !important; }
.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Background */
.bg-surface { background-color: var(--bg-surface) !important; }
.bg-muted { background-color: var(--bg-muted) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-100 { opacity: 1 !important; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    .content {
        padding: var(--space-4);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-actions {
        width: 100%;
    }
    
    .page-header-actions .btn {
        flex: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search {
        min-width: 100%;
    }
    
    .table-responsive {
        margin: 0 calc(var(--space-4) * -1);
    }
    
    .modal {
        max-width: calc(100% - var(--space-4) * 2);
        max-height: calc(100% - var(--space-4) * 2);
    }
}

@media (max-width: 480px) {
    .header-search {
        display: none;
    }
    
    .btn {
        padding: 0 var(--space-3);
    }
    
    .page-title {
        font-size: var(--text-xl);
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .sidebar,
    .header,
    .filter-bar,
    .pagination,
    .btn,
    .page-header-actions {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .content {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* =====================================================
   MISSING UTILITY CLASSES FIX
   ===================================================== */

/* Flexbox Utilities */
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-stretch { align-items: stretch !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-start { justify-content: flex-start !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}
.row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Background Colors */
.bg-primary-light { background-color: rgba(139, 26, 26, 0.1) !important; }
.bg-success-light { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-warning-light { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-danger-light { background-color: rgba(239, 68, 68, 0.1) !important; }
.bg-info-light { background-color: rgba(59, 130, 246, 0.1) !important; }
.bg-secondary { background-color: var(--gray-100) !important; }
.bg-info { background-color: var(--info) !important; }
.bg-purple { background-color: #8B5CF6 !important; }
.bg-element { position: absolute; border-radius: 50%; opacity: 0.1; }
.bg-element-1 { width: 300px; height: 300px; top: -100px; right: -100px; background: var(--primary); }
.bg-element-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; background: var(--accent); }
.bg-element-3 { width: 150px; height: 150px; top: 50%; left: 50%; background: var(--primary); }

/* Badge Variants */
.badge-secondary {
    background-color: var(--gray-100);
    color: var(--gray-700);
}
.badge-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}
.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Button Variants */
.btn-secondary {
    background-color: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-700);
}
.btn-secondary:hover {
    background-color: var(--gray-200);
    border-color: var(--gray-300);
}
.btn-info {
    background-color: var(--info);
    border-color: var(--info);
    color: white;
}
.btn-info:hover {
    background-color: var(--info-dark);
    border-color: var(--info-dark);
}
.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}
.btn-outline-secondary:hover {
    background-color: var(--gray-100);
}
.btn-outline-danger {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}
.btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
}
.btn-block {
    display: block;
    width: 100%;
}
.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}
.btn-close:hover {
    opacity: 1;
}
.btn-remove {
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Alert Variants */
.alert-error {
    background-color: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger-dark);
}
.alert-heading {
    font-weight: var(--font-semibold);
    margin-bottom: 0.5rem;
}

/* Auth Page Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 2rem;
}
.auth-container {
    width: 100%;
    max-width: 420px;
}
.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-header h1 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.auth-header p {
    color: var(--text-secondary);
}
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Card Variants */
.card-hover {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Table Actions Column */
.actions {
    white-space: nowrap;
    text-align: right;
}
.actions .btn {
    margin-left: 0.25rem;
}

/* Booking Summary */
.booking-summary {
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* Begeleiders Grid */
.begeleiders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.begeleider-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-fast);
}
.begeleider-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* Required Field Indicator */
.required {
    color: var(--danger);
}

/* Form Enhancements */
.form-label .required,
label .required {
    color: var(--danger);
    margin-left: 2px;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Text Utilities */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-wrap { white-space: normal !important; }
.text-nowrap { white-space: nowrap !important; }
.text-break { word-wrap: break-word !important; word-break: break-word !important; }

/* Width Utilities */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.mw-100 { max-width: 100% !important; }
.min-vw-100 { min-width: 100vw !important; }

/* Height Utilities */
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }
.vh-100 { height: 100vh !important; }

/* Position Utilities */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0, .left-0 { left: 0 !important; }
.end-0, .right-0 { right: 0 !important; }

/* Overflow Utilities */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

/* Border Utilities */
.border { border: 1px solid var(--border-color) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.border-start, .border-left { border-left: 1px solid var(--border-color) !important; }
.border-end, .border-right { border-right: 1px solid var(--border-color) !important; }
.rounded { border-radius: var(--radius-md) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

/* Shadow Utilities */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Cursor Utilities */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* User Select */
.user-select-none { user-select: none !important; }
.user-select-all { user-select: all !important; }

/* Opacity Utilities */
.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* Transition */
.transition { transition: all var(--transition-base) !important; }

/* =====================================================
   ADDITIONAL MISSING CLASSES
   ===================================================== */

/* Container */
.container {
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Data Table */
.data-table {
    width: 100%;
    overflow-x: auto;
}
.data-table table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.data-table th {
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    background: var(--bg-muted);
}
.data-table tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

/* Company Info */
.company-info { display: flex; gap: 1rem; align-items: center; }
.company-logo { width: 60px; height: 60px; object-fit: contain; }
.company-name { font-size: 1.25rem; font-weight: var(--font-semibold); }
.company-details { color: var(--text-secondary); font-size: var(--text-sm); }

/* Customer Info */
.customer-details { display: flex; flex-direction: column; gap: 0.25rem; }
.customer-name { font-weight: var(--font-medium); }
.customer-label { color: var(--text-muted); font-size: var(--text-sm); }

/* Detail Groups */
.detail-group { margin-bottom: 1rem; }
.detail-group label { display: block; color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: 0.25rem; }
.detail-value { font-weight: var(--font-medium); }

/* Deelnemer List */
.deelnemer-list { display: flex; flex-direction: column; gap: 0.5rem; }
.deelnemer-item { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    padding: 0.75rem; 
    background: var(--bg-muted); 
    border-radius: var(--radius-md); 
}
.deelnemer-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: var(--primary-light); 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: var(--font-semibold);
}
.deelnemer-info { flex: 1; }
.deelnemer-name { font-weight: var(--font-medium); }
.deelnemer-meta { font-size: var(--text-sm); color: var(--text-muted); }
.deelnemer-check { color: var(--success); }

/* Photo Upload */
.current-photo { 
    width: 120px; 
    height: 120px; 
    object-fit: cover; 
    border-radius: var(--radius-md); 
    border: 2px solid var(--border-color);
}

/* Empty State */
.empty-state-text { color: var(--text-muted); margin-bottom: 1rem; }
.empty-rooms { text-align: center; padding: 2rem; color: var(--text-muted); }

/* Error Pages */
.error-code { font-size: 6rem; font-weight: var(--font-bold); color: var(--primary); line-height: 1; }
.error-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.error-message { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Discount */
.discount { color: var(--success); font-weight: var(--font-medium); }

/* Dropdown */
.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 0.5rem;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}
.dropdown-menu-end { right: 0; left: auto; }

/* Editable */
.editable { cursor: pointer; border-bottom: 1px dashed var(--border-color); }
.editable:hover { border-color: var(--primary); }

/* Stat Change Direction */
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Fade Animation */
.fade { opacity: 0; transition: opacity var(--transition-base); }
.fade.show { opacity: 1; }

/* Invoice Styling */
.invoice-box { max-width: 800px; margin: auto; padding: 2rem; }
.invoice-header { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.invoice-title { font-size: 2rem; color: var(--primary); font-weight: var(--font-bold); }
.invoice-meta { text-align: right; }
.invoice-table { width: 100%; margin: 2rem 0; }
.invoice-table th { background: var(--primary); color: white; }
.invoice-table th, .invoice-table td { padding: 0.75rem; border: 1px solid var(--border-color); }
.invoice-total { font-size: 1.25rem; font-weight: var(--font-bold); }

/* Kamer Indeling */
.kamer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.kamer-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1rem; }
.kamer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }
.kamer-nummer { font-weight: var(--font-semibold); font-size: 1.1rem; }
.kamer-type { color: var(--text-secondary); font-size: var(--text-sm); }
.kamer-occupants { display: flex; flex-direction: column; gap: 0.5rem; }
.kamer-empty { color: var(--text-muted); font-style: italic; text-align: center; padding: 1rem; }

/* Nusuk */
.nusuk-status { display: inline-flex; align-items: center; gap: 0.5rem; }
.nusuk-badge { padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: var(--font-medium); }

/* Offerte */
.offerte-preview { background: var(--bg-muted); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1rem; }
.offerte-header { border-bottom: 2px solid var(--primary); padding-bottom: 1rem; margin-bottom: 1rem; }

/* Portal Styling */
.portal-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 2rem; }
.portal-nav { background: var(--bg-surface); border-bottom: 1px solid var(--border-color); }
.portal-content { padding: 2rem; }
.portal-card { background: var(--bg-surface); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }

/* Profile */
.profile-header { text-align: center; padding: 2rem; background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); color: white; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; border: 4px solid white; margin-bottom: 1rem; }
.profile-name { font-size: 1.5rem; font-weight: var(--font-semibold); }
.profile-value { font-weight: var(--font-medium); }

/* Progress Variants */
.progress-sm { height: 6px; }
.progress-lg { height: 12px; }

/* Quick Actions */
.quick-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.quick-action { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none; transition: all var(--transition-fast); }
.quick-action:hover { background: var(--bg-muted); color: var(--primary); }
.quick-action svg { color: var(--primary); }

/* Receipt */
.receipt { background: white; border: 1px dashed var(--border-color); padding: 1.5rem; font-family: var(--font-mono); }
.receipt-header { text-align: center; border-bottom: 1px dashed var(--border-color); padding-bottom: 1rem; margin-bottom: 1rem; }

/* Report */
.report-filters { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem; background: var(--bg-muted); border-radius: var(--radius-md); margin-bottom: 1.5rem; }
.report-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }

/* Sidebar enhancements */
.sidebar-divider { height: 1px; background: var(--border-color); margin: 1rem 0; }

/* Stat Card Variants */
.stat-card.success .stat-icon { background: var(--success-light); color: var(--success); }
.stat-card.warning .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-card.danger .stat-icon { background: var(--danger-light); color: var(--danger); }
.stat-card.info .stat-icon { background: var(--info-light); color: var(--info); }

/* Steps / Wizard */
.steps { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.step { flex: 1; text-align: center; position: relative; }
.step::after { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--border-color); z-index: 0; }
.step:last-child::after { display: none; }
.step-number { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-muted); display: inline-flex; align-items: center; justify-content: center; font-weight: var(--font-semibold); position: relative; z-index: 1; }
.step.active .step-number { background: var(--primary); color: white; }
.step.completed .step-number { background: var(--success); color: white; }
.step.completed::after { background: var(--success); }
.step-label { display: block; margin-top: 0.5rem; font-size: var(--text-sm); color: var(--text-secondary); }

/* Summary */
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.summary-row:last-child { border-bottom: none; font-weight: var(--font-semibold); }
.summary-label { color: var(--text-secondary); }
.summary-value { font-weight: var(--font-medium); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -2rem; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid white; }
.timeline-date { font-size: var(--text-sm); color: var(--text-muted); }
.timeline-content { margin-top: 0.25rem; }

/* Tooltip (basic) */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--gray-800);
    color: white;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    white-space: nowrap;
    z-index: var(--z-tooltip);
}

/* Wizard */
.wizard-content { min-height: 300px; }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }

/* =====================================================
   FINAL MISSING CLASSES BATCH
   ===================================================== */

/* Form Controls */
.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled, .form-control[readonly] { background-color: var(--bg-muted); opacity: 1; }
.form-control-sm { padding: 0.375rem 0.625rem; font-size: var(--text-sm); }
.form-control-lg { padding: 0.875rem 1rem; font-size: var(--text-lg); }

/* Filter */
.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-label { font-size: var(--text-sm); color: var(--text-secondary); white-space: nowrap; }

/* Font Utilities */
.font-monospace { font-family: var(--font-mono) !important; }
.fs-sm { font-size: var(--text-sm) !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fw-bold { font-weight: var(--font-bold) !important; }
.fw-semibold { font-weight: var(--font-semibold) !important; }
.fw-medium { font-weight: var(--font-medium) !important; }
.fw-normal { font-weight: var(--font-normal) !important; }

/* Headings */
h5, .h5 { font-size: 1.25rem; font-weight: var(--font-semibold); margin-bottom: 0.5rem; }
h6, .h6 { font-size: 1rem; font-weight: var(--font-semibold); margin-bottom: 0.5rem; }

/* Gap Utilities */
.g-0 { gap: 0 !important; }
.g-1 { gap: var(--space-1) !important; }
.g-2 { gap: var(--space-2) !important; }
.g-3 { gap: var(--space-3) !important; }
.g-4 { gap: var(--space-4) !important; }
.g-5 { gap: var(--space-5) !important; }

/* Icon */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Info Item */
.info-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.info-item:last-child { border-bottom: none; }

/* Input Group */
.input-group { display: flex; width: 100%; }
.input-group .form-control { flex: 1; }
.input-group-sm .form-control { padding: 0.25rem 0.5rem; font-size: var(--text-sm); }
.input-group-text { display: flex; align-items: center; padding: 0.625rem 0.875rem; background: var(--bg-muted); border: 1px solid var(--border-color); }

/* Invalid Feedback */
.invalid-feedback { display: none; color: var(--danger); font-size: var(--text-sm); margin-top: 0.25rem; }
.is-invalid ~ .invalid-feedback, .was-validated :invalid ~ .invalid-feedback { display: block; }
.is-invalid { border-color: var(--danger) !important; }

/* Invoice */
.invoice-card { background: white; border-radius: var(--radius-lg); overflow: hidden; }
.invoice-customer { background: var(--bg-muted); padding: 1.5rem; }
.invoice-preview { border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.invoice-preview-mini { max-height: 200px; overflow: hidden; position: relative; }
.invoice-preview-mini::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px; background: linear-gradient(transparent, white); }
.invoice-reference { font-family: var(--font-mono); font-size: var(--text-lg); }
.invoice-stamp { position: absolute; transform: rotate(-15deg); border: 3px solid; padding: 0.5rem 1rem; font-weight: var(--font-bold); opacity: 0.6; }
.invoice-totals { background: var(--bg-muted); padding: 1rem; border-radius: var(--radius-md); }
.invoice-footer { border-top: 1px solid var(--border-color); padding-top: 1.5rem; margin-top: 1.5rem; }
.footer-note { font-size: var(--text-sm); color: var(--text-muted); }

/* Klant Summary */
.klant-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding: 1rem; background: var(--bg-muted); border-radius: var(--radius-md); }

/* List Group */
.list-group { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; border-radius: var(--radius-md); overflow: hidden; }
.list-group-item { position: relative; display: block; padding: 0.75rem 1rem; background-color: var(--bg-surface); border: 1px solid var(--border-color); border-width: 0 0 1px; }
.list-group-item:first-child { border-top-width: 1px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.list-group-item:last-child { border-bottom-width: 1px; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.list-group-item-action { color: var(--text-primary); text-decoration: none; }
.list-group-item-action:hover { background-color: var(--bg-surface-hover); }
.list-group-flush .list-group-item { border-left: 0; border-right: 0; border-radius: 0; }
.list-group-flush .list-group-item:first-child { border-top: 0; }
.list-group-flush .list-group-item:last-child { border-bottom: 0; }

/* Login Page */
.login-container { min-height: 100vh; display: flex; }
.login-left { flex: 1; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); display: flex; flex-direction: column; justify-content: center; padding: 3rem; color: white; }
.login-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.login-brand-logo { width: 50px; height: 50px; background: white; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: var(--font-bold); font-size: 1.5rem; }
.login-brand-text { font-size: 1.5rem; font-weight: var(--font-bold); }
.login-header { margin-bottom: 2rem; }
.login-header h1 { font-size: 2.5rem; font-weight: var(--font-bold); margin-bottom: 0.5rem; }
.login-features { display: flex; flex-direction: column; gap: 1.5rem; }
.login-feature { display: flex; align-items: flex-start; gap: 1rem; }
.login-feature-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-card { flex: 1; max-width: 480px; display: flex; align-items: center; justify-content: center; padding: 3rem; background: var(--bg-body); }
.login-card-header { margin-bottom: 2rem; }
.login-card-title { font-size: 1.75rem; font-weight: var(--font-bold); margin-bottom: 0.5rem; }
.login-card-subtitle { color: var(--text-secondary); }
.login-form { width: 100%; }
.login-forgot { text-align: right; margin-bottom: 1.5rem; }
.login-forgot a { color: var(--primary); font-size: var(--text-sm); text-decoration: none; }
.login-extras { margin-top: 1.5rem; text-align: center; color: var(--text-secondary); font-size: var(--text-sm); }
.login-footer { margin-top: 3rem; text-align: center; color: var(--text-muted); font-size: var(--text-sm); }
.login-help { margin-top: 1rem; }
.login-help a { color: var(--primary); text-decoration: none; }

/* Menu/Nav */
.menu-toggle { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; }
.menu-header { padding: 1rem; border-bottom: 1px solid var(--border-color); }
.menu-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: var(--text-primary); text-decoration: none; transition: all var(--transition-fast); }
.menu-item:hover { background: var(--bg-muted); }
.menu-item.active { background: var(--primary-light); color: var(--primary); }
.menu-icon { width: 20px; text-align: center; }
.menu-text { flex: 1; }
.menu-badge { background: var(--primary); color: white; padding: 0.125rem 0.5rem; border-radius: var(--radius-full); font-size: var(--text-xs); }

/* Modal Enhancements */
.modal-xl { max-width: 1140px; }
.modal-fullscreen { width: 100vw; max-width: none; height: 100%; margin: 0; border-radius: 0; }

/* Note */
.note { background: var(--warning-light); border-left: 4px solid var(--warning); padding: 1rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 1rem 0; }
.note-title { font-weight: var(--font-semibold); margin-bottom: 0.25rem; }

/* Opties */
.optie-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; background: var(--bg-muted); border-radius: var(--radius-md); margin-bottom: 0.5rem; }
.optie-naam { font-weight: var(--font-medium); }
.optie-prijs { color: var(--text-secondary); }

/* Page Subtitle */
.page-subtitle { color: var(--text-secondary); font-size: var(--text-sm); margin-top: 0.25rem; }

/* Preview */
.preview-container { background: var(--bg-muted); border-radius: var(--radius-lg); padding: 1.5rem; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.preview-title { font-weight: var(--font-semibold); }

/* Print Styles */
@media print {
    .no-print, .sidebar, .page-header-actions, .btn { display: none !important; }
    .main-content { margin: 0 !important; padding: 0 !important; }
    body { background: white !important; }
}

/* Responsive helpers */
@media (max-width: 768px) {
    .login-container { flex-direction: column; }
    .login-left { display: none; }
    .login-card { max-width: 100%; }
    .hide-mobile { display: none !important; }
    .col-12-mobile { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}
