/**
 * Modernes, stilvolles, technisches Design
 * Glassmorphism & Neumorphism inspiriert
 */

:root {
    /* Primärfarben - Modern Cyan/Blue */
    --primary-color: #00d9ff;
    --primary-dark: #00a8cc;
    --primary-light: #33e0ff;
    --primary-glow: rgba(0, 217, 255, 0.4);
    --primary-gradient: linear-gradient(135deg, #00d9ff 0%, #0080ff 100%);
    
    /* Sekundärfarben */
    --secondary-color: #8b5cf6;
    --secondary-dark: #6d28d9;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    
    /* Status-Farben */
    --success-color: #10b981;
    --success-light: #34d399;
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* Hintergrund-Farben - Tiefere, modernere Töne */
    --bg-color: #0a0a0f;
    --bg-secondary: #0f1115;
    --bg-tertiary: #151820;
    --bg-elevated: #1a1d26;
    
    /* Card & Surface - Glassmorphism */
    --card-bg: rgba(26, 29, 38, 0.7);
    --card-bg-solid: #1a1d26;
    --card-border: rgba(51, 65, 85, 0.5);
    --card-border-hover: rgba(0, 217, 255, 0.3);
    --glass-bg: rgba(26, 29, 38, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Text-Farben */
    --text-color: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-disabled: #64748b;
    
    /* Border & Divider */
    --border-color: rgba(51, 65, 85, 0.6);
    --border-light: rgba(148, 163, 184, 0.2);
    --border-glow: rgba(0, 217, 255, 0.3);
    
    /* Schatten - Modern & Subtle */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 24px -6px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 24px 32px -8px rgba(0, 0, 0, 0.8);
    
    /* Glow-Effekte */
    --glow-sm: 0 0 10px rgba(0, 217, 255, 0.2);
    --glow: 0 0 20px rgba(0, 217, 255, 0.3);
    --glow-md: 0 0 30px rgba(0, 217, 255, 0.4);
    --glow-lg: 0 0 40px rgba(0, 217, 255, 0.5);
    --glow-strong: 0 0 50px rgba(0, 217, 255, 0.6);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 0.9375rem; /* 15px */
    --font-size-md: 1rem;        /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: -0.01em;
    --letter-spacing-wide: 0.01em;
    --letter-spacing-wider: 0.05em;
    
    /* Spacing System (8px Grid) */
    --spacing-1: 0.25rem;  /* 4px */
    --spacing-2: 0.5rem;   /* 8px */
    --spacing-3: 0.75rem;  /* 12px */
    --spacing-4: 1rem;     /* 16px */
    --spacing-5: 1.25rem;  /* 20px */
    --spacing-6: 1.5rem;   /* 24px */
    --spacing-8: 2rem;     /* 32px */
    --spacing-10: 2.5rem;  /* 40px */
    --spacing-12: 3rem;    /* 48px */
    --spacing-16: 4rem;    /* 64px */
}

/* Light Mode Variablen */
[data-theme="light"] {
    /* Hintergrund-Farben - Helle Töne */
    --bg-color: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --bg-elevated: #ffffff;
    
    /* Card & Surface - Light Glassmorphism */
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-bg-solid: #ffffff;
    --card-border: rgba(0, 0, 0, 0.1);
    --card-border-hover: rgba(0, 217, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.15);
    
    /* Text-Farben */
    --text-color: #1a1d26;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-disabled: #a0aec0;
    
    /* Border & Divider */
    --border-color: rgba(0, 0, 0, 0.15);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(0, 217, 255, 0.4);
    
    /* Schatten - Lighter für Light Mode */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 16px 24px -6px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 24px 32px -8px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: var(--line-height-normal);
    min-height: 100vh;
    font-size: var(--font-size-base);
    letter-spacing: -0.01em;
}

/* Improved Typography */
h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-6);
    color: var(--text-color);
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-5);
    color: var(--text-color);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-4);
    color: var(--text-color);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Improved Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improved Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Body Background für Light Mode anpassen */
[data-theme="light"] body {
    background: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

/* Scrollbar Styling - Modern & Sleek */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
    transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    box-shadow: var(--glow-sm);
}

/* Scrollbar für Light Mode */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border: 2px solid var(--bg-secondary);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: 
        linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1)),
        var(--bg-color);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    top: -250px;
    left: -250px;
    animation: pulse 4s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation: pulse 5s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-glow-strong);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 1px;
}

/* Navigation - Modern Glassmorphism */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color) 50%, 
        transparent
    );
    opacity: 0.3;
    pointer-events: none;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px var(--primary-glow);
    letter-spacing: 0.02em;
    margin: 0;
    position: relative;
    display: inline-block;
}

.nav-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.5;
    transform: scaleX(0);
    transition: transform var(--transition-base);
    pointer-events: none;
}

.nav-title:hover::after {
    transform: scaleX(1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 8px;
    transition: all var(--transition-base);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary-color);
}

.mobile-menu-toggle:hover span {
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Login Page für Light Mode */
[data-theme="light"] .login-page {
    background: 
        linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05)),
        var(--bg-color);
}

/* Navbar für Light Mode */
[data-theme="light"] .navbar {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Cards für Light Mode */
[data-theme="light"] .card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg), var(--glow);
}

/* Tables für Light Mode */
[data-theme="light"] .table-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .data-table th {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

[data-theme="light"] .data-table tr:hover {
    background: rgba(0, 217, 255, 0.08);
}

/* Modal für Light Mode */
[data-theme="light"] .modal {
    background-color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl), var(--glow-md), inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-6) var(--spacing-4);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

/* Dashboard - Volle Breite für Karten */
.dashboard-grid .card {
    width: 100%;
}

/* Container für Dashboard - Volle Breite */
.container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
}

/* Cards - Glassmorphism Design */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card > * {
    position: relative;
    z-index: 2;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all var(--transition-base);
    pointer-events: none;
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(0, 217, 255, 0.1), 
        rgba(139, 92, 246, 0.1)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-lg), var(--glow);
    transform: translateY(-2px);
    background: rgba(26, 29, 38, 0.85);
}

.card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.card:hover::after {
    opacity: 1;
}

.card h2 {
    margin-bottom: var(--spacing-5);
    color: var(--text-color);
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

/* Forms - Modern Input Design */
.form-group {
    margin-bottom: var(--spacing-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-2);
    font-weight: 600;
    color: var(--text-color);
    font-size: var(--font-size-sm);
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    transition: all var(--transition-base);
    font-family: inherit;
    letter-spacing: 0.01em;
}

/* Form Error States */
.form-control.error,
.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.form-control.success,
.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.form-error {
    display: block;
    margin-top: var(--spacing-2);
    font-size: var(--font-size-sm);
    color: var(--danger-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.form-error::before {
    content: '⚠';
    font-size: var(--font-size-base);
}

.form-control:hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-glow), var(--glow-sm);
    background: var(--bg-tertiary);
}

.form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Buttons - Modern & Interactive */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.01em;
    white-space: nowrap;
    z-index: 1;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--font-size-sm);
    min-height: 36px;
}

.btn-md {
    padding: var(--spacing-3) var(--spacing-5);
    font-size: var(--font-size-base);
    min-height: 44px;
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-6);
    font-size: var(--font-size-lg);
    min-height: 52px;
}

/* Improved Focus States */
.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #000;
    box-shadow: var(--shadow-sm), var(--glow-sm);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: var(--shadow-md), var(--glow);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 15px rgba(239, 68, 68, 0.3);
    font-weight: 700;
}

.btn-danger:hover {
    box-shadow: var(--shadow-md), 0 0 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-link {
    background: transparent;
    color: var(--primary-color);
    padding: 8px 16px;
    box-shadow: none;
    border: 1px solid transparent;
}

.btn-link:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Tables - Modern Design */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: var(--spacing-3) var(--spacing-4);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    padding: var(--spacing-4);
}

/* Zebra Striping */
.data-table tbody tr:nth-child(even) {
    background: rgba(0, 217, 255, 0.02);
}

[data-theme="light"] .data-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.data-table th {
    background: var(--bg-elevated);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Orbitron', sans-serif;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tr {
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.data-table tr:hover {
    background: rgba(0, 217, 255, 0.08) !important;
    border-left-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--primary-color);
}

[data-theme="light"] .data-table tr:hover {
    background: rgba(0, 217, 255, 0.1) !important;
}

.data-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.data-table a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
    pointer-events: none;
}

.data-table a:hover {
    text-decoration: none;
    text-shadow: 0 0 8px var(--primary-glow);
}

.data-table a:hover::after {
    width: 100%;
}

/* Status Badges - Modern Design */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
    z-index: 0;
}

.status-badge:hover::before {
    opacity: 1;
}

.status-angebot {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.status-freigegeben {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    border-color: rgba(0, 212, 255, 0.3);
}

.status-in_produktion {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-fertig {
    background: rgba(124, 58, 237, 0.2);
    color: var(--secondary-color);
    border-color: rgba(124, 58, 237, 0.3);
}

.status-abgerechnet {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    border-color: rgba(148, 163, 184, 0.3);
}

/* Neue Status-Werte */
.status-angebot_vorbereiten {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
}

.status-angebot_erstellt {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.status-warte_auf_annahme {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.3);
}

.status-angebot_angenommen {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    border-color: rgba(0, 212, 255, 0.3);
}

.status-ware_bestellen {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.3);
}

.status-alles_da {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-produktion_abgeschlossen {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-ausgeliefert {
    background: rgba(124, 58, 237, 0.2);
    color: var(--secondary-color);
    border-color: rgba(124, 58, 237, 0.3);
}

.status-rechnung_erstellt {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    border-color: rgba(148, 163, 184, 0.3);
}

.status-rechnung_bezahlt {
    background: rgba(16, 185, 129, 0.3);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.5);
}

.status-bezahlt {
    background: rgba(16, 185, 129, 0.3);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.5);
}

/* Alerts - Modern Design */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1.5px solid;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: currentColor;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: var(--shadow-sm), 0 0 15px rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: var(--shadow-sm), 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Time Tracking */
.time-tracking-active,
.time-tracking-inactive {
    text-align: center;
}

.time-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px var(--primary-glow);
    letter-spacing: 2px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-6);
    gap: var(--spacing-4);
}

.page-header h1 {
    color: var(--text-color);
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: 0;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters .form-control {
    flex: 1;
    min-width: 200px;
}

/* Modal - Glassmorphism */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 36px;
    border-radius: var(--radius-xl);
    max-width: 640px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl), var(--glow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid transparent;
}

.modal-close:hover {
    color: var(--text-color);
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.2);
    transform: rotate(90deg);
}

/* ============================================
   NAV BRAND & LOGO
   ============================================ */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-logo-dark  { display: block; }
.nav-logo-light { display: none; }
[data-theme="light"] .nav-logo-dark  { display: none; }
[data-theme="light"] .nav-logo-light { display: block; }

/* ============================================
   NAV LINKS & DROPDOWNS
   ============================================ */
.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    background: rgba(0, 217, 255, 0.08);
    color: var(--primary-color);
    border-color: rgba(0, 217, 255, 0.15);
    text-decoration: none;
}

.nav-link:hover svg {
    opacity: 1;
}

.nav-link.active {
    background: rgba(0, 217, 255, 0.12);
    color: var(--primary-color);
    border-color: rgba(0, 217, 255, 0.2);
    font-weight: 600;
}

.nav-link.active svg {
    opacity: 1;
}

/* Dropdown Arrow */
.dropdown-arrow {
    width: 14px !important;
    height: 14px !important;
    margin-left: auto;
    transition: transform var(--transition-fast) !important;
    opacity: 0.5 !important;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Container */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--card-bg-solid);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), var(--glow-sm);
    padding: 6px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all var(--transition-base);
    pointer-events: none;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--card-bg-solid);
    border-left: 1px solid var(--card-border);
    border-top: 1px solid var(--card-border);
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-dropdown-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.nav-dropdown-item:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(3px);
}

.nav-dropdown-item:hover svg {
    opacity: 1;
}

.nav-dropdown-item.active {
    background: rgba(0, 217, 255, 0.12);
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   AVATAR & USER AREA
   ============================================ */
.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    box-shadow: var(--glow-sm);
    cursor: default;
}

.nav-username {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ============================================
   ICON BUTTON
   ============================================ */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    padding: 0;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-icon:active {
    transform: scale(0.95);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-icon:hover svg {
    transform: rotate(15deg);
}

/* ============================================
   OUTLINE BUTTON
   ============================================ */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
}

.btn-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger-color);
    transform: translateY(-1px);
}

/* Project Grid - 3 Spalten */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Projekt-Detail Karten im Querformat - größer */
.project-grid .card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    padding: 20px;
    overflow: visible;
}

/* Projekt-Info Karte - alles sichtbar ohne Scrollen */
.project-grid .card:first-child {
    min-height: auto;
    max-height: none;
    height: auto;
    overflow: visible;
}

/* Card Header - für Karten mit direktem h2 */
.project-grid .card > h2:first-child {
    margin-bottom: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Card Header mit Button - für Karten mit Header-Div */
.project-grid .card > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.project-grid .card > div:first-child > h2 {
    margin-bottom: 0;
    font-size: 1.2rem;
    flex: 1;
}

.project-grid .card > div:first-child > button {
    flex-shrink: 0;
    margin-left: 15px;
}

/* Card Content */
.project-grid .card > div:not(:first-child),
.project-grid .card > div#project-info-edit {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Projekt-Info View - keine Scrollbar, alles sichtbar */
.project-grid .card > div#project-info-view {
    flex: 1;
    overflow: visible;
    min-height: 0;
}

.project-grid .card .table-container {
    max-height: 100%;
    overflow-y: auto;
    flex: 1;
}

/* Projekt-Info Tabelle - keine Scrollbar, alles sichtbar */
.project-grid .card:first-child .table-container {
    max-height: none;
    overflow: visible;
}

.project-grid .card:first-child .info-table {
    max-height: none;
    overflow: visible;
}

.project-grid .card .info-table {
    font-size: 0.95rem;
    width: 100%;
}

.project-grid .card .info-table td {
    padding: 8px 12px;
    white-space: nowrap;
    vertical-align: top;
}

.project-grid .card .info-table td:last-child {
    white-space: normal;
    word-break: break-word;
    max-width: none;
}

/* Projekt-Info: Beschreibung und andere Felder volle Breite */
.project-grid .card:first-child .info-table td:last-child {
    max-width: none;
    width: auto;
}

/* Buttons in Projekt-Info Tabelle besser positionieren */
.project-grid .card .info-table td button,
.project-grid .card .info-table td a.btn {
    margin: 2px 4px 2px 0;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

/* Kompaktere Tabellenzeilen für Projekt-Info */
.project-grid .card:first-child .info-table td {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Erste Zeile etwas mehr Abstand */
.project-grid .card:first-child .info-table tr:first-child td {
    padding-top: 4px;
}

/* Beschreibung-Text besser lesbar */
.project-grid .card:first-child .info-table td#project-description-view {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
    max-width: none;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Beschreibung-Zeile: mehr Platz für Text - direkter Selektor */
.project-grid .card:first-child .info-table tr:nth-child(10) td {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Projekt löschen Button außerhalb der Tabelle */
.project-grid .card > div[style*="margin-top: 20px"] {
    margin-top: 15px !important;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Responsive: Bei kleineren Bildschirmen weniger Spalten */
@media (max-width: 1400px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.info-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--text-muted);
    vertical-align: top;
    padding-top: 12px;
}

/* Beschreibung in Projekt-Info besser lesbar */
.project-grid .card:first-child .info-table td#project-description-view {
    white-space: normal;
    word-wrap: break-word;
    max-width: none;
    line-height: 1.6;
    padding-top: 12px;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
    .nav-container {
        padding: 14px 20px;
    }
    
    .nav-title {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 6px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        overflow-x: hidden; /* Verhindert horizontales Scrollen */
    }
    
    body.mobile-menu-active {
        overflow: hidden; /* Verhindert Scrollen wenn Menü offen ist */
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Mobile Menu Toggle anzeigen */
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    
    .nav-container {
        flex-wrap: nowrap;
        gap: 12px;
        padding: 12px 16px;
        position: relative;
    }

    .nav-title {
        font-size: 1.1rem;
        flex: 1;
        text-align: left;
        order: 2;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        z-index: 999;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
    }
    
    .nav-links.mobile-menu-open {
        max-height: 80vh;
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        overflow-y: auto;
    }
    
    .nav-link {
        padding: 14px 16px;
        font-size: 0.95rem;
        width: 100%;
        text-align: left;
        border-radius: var(--radius);
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        margin: 0;
    }
    
    .nav-link:hover {
        background: rgba(0, 217, 255, 0.15);
        transform: translateX(4px);
    }
    
    .nav-user {
        order: 3;
        width: auto;
        justify-content: flex-end;
        font-size: 0.85rem;
        gap: 12px;
    }
    
    .nav-user span {
        display: none; /* Benutzername auf mobilen Geräten ausblenden */
    }
    
    .nav-user .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .filters {
        flex-direction: column;
        gap: 12px;
    }

    .filters .form-control {
        width: 100%;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .card {
        padding: 18px;
        border-radius: var(--radius-md);
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 16px;
        max-width: 100%;
        overflow-x: hidden; /* Verhindert horizontales Scrollen */
    }
    
    /* Tabellen auf mobilen Geräten - Card-basierte Ansicht */
    .table-container {
        overflow-x: visible; /* Kein horizontales Scrollen */
        width: 100%;
        max-width: 100%;
    }
    
    .data-table {
        width: 100%;
        border-collapse: collapse;
        display: block; /* Ermöglicht bessere Kontrolle */
    }
    
    .data-table thead {
        display: none; /* Header auf mobilen Geräten ausblenden */
    }
    
    .data-table tbody {
        display: block;
        width: 100%;
    }
    
    .data-table tr {
        display: block;
        width: 100%;
        margin-bottom: 16px;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: var(--radius);
        padding: 12px;
        box-shadow: var(--shadow-sm);
    }
    
    .data-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        text-align: left;
        border: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .data-table td:last-child {
        border-bottom: none;
    }
    
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        display: block;
        margin-bottom: 4px;
        font-size: 0.85rem;
    }
    
    /* Projekt-Detail-Grid auf mobilen Geräten */
    .project-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .project-detail-grid .card {
        min-height: auto;
    }
    
    /* Info-Tabellen auf mobilen Geräten */
    .info-table {
        display: block;
        width: 100%;
    }
    
    .info-table tr {
        display: block;
        width: 100%;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-light);
    }
    
    .info-table td {
        display: block;
        width: 100%;
        padding: 4px 0;
    }
    
    .info-table td:first-child {
        width: 100%;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    /* Buttons in Tabellen auf mobilen Geräten */
    .data-table .btn,
    .info-table .btn {
        width: 100%;
        margin-top: 8px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .table-actions .btn {
        width: 100%;
    }
    
    /* Modal auf mobilen Geräten */
    .modal {
        padding: 16px;
        align-items: flex-end;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    
    /* Cards auf mobilen Geräten */
    .card {
        margin-bottom: 16px;
    }
    
    /* Page Header auf mobilen Geräten */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* Filters auf mobilen Geräten */
    .filters {
        flex-direction: column;
    }
    
    .filters .form-control {
        width: 100%;
        min-width: auto;
    }
    
    /* Time Display auf mobilen Geräten */
    .time-display {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
        overflow-x: hidden;
    }
    
    .nav-container {
        padding: 10px 12px;
    }
    
    .nav-title {
        font-size: 0.95rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .nav-links {
        top: 56px;
        padding: 12px;
    }
    
    .nav-link {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .card {
        padding: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px; /* Touch-freundliche Mindestgröße */
        width: 100%;
        touch-action: manipulation; /* Verhindert Doppel-Tap-Zoom */
    }
    
    /* Touch-freundliche Inputs */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
        padding: 12px 16px;
    }
    
    /* Touch-freundliche Buttons in Forms */
    form .btn {
        min-height: 44px;
    }
    
    .container {
        padding: 12px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Tabellen auf sehr kleinen Bildschirmen */
    .data-table tr {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .data-table td {
        padding: 6px 0;
        font-size: 0.85rem;
    }
    
    .data-table td::before {
        font-size: 0.8rem;
    }
    
    /* Projekt-Detail-Grid */
    .project-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Info-Tabellen */
    .info-table tr {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .info-table td {
        font-size: 0.85rem;
    }
    
    /* Modal auf sehr kleinen Bildschirmen */
    .modal-content {
        max-height: 95vh;
        padding: 16px;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .time-display {
        font-size: 1.75rem;
    }
    
    /* Touch-freundliche Checkboxen und Radio-Buttons */
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
    
    /* Touch-freundliche Select-Elemente */
    select.form-control {
        min-height: 44px;
        font-size: 16px;
        padding: 12px 16px;
    }
    
    /* Touch-freundliche Textareas */
    textarea.form-control {
        min-height: 100px;
        font-size: 16px;
        padding: 12px 16px;
    }
    
    /* Scrollbar auf mobilen Geräten dünner */
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
    
    /* Verhindere Text-Selektion auf Buttons (bessere Touch-Performance) */
    .btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Touch-Optimierungen für alle Geräte */
@media (hover: none) and (pointer: coarse) {
    /* Touch-Geräte spezifische Styles */
    .btn:hover {
        transform: none; /* Keine Hover-Transforms auf Touch-Geräten */
    }
    
    .nav-link:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    /* Größere Touch-Targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ============================================================
   MOBILE NAVBAR DROPDOWN FIX
   ============================================================ */
@media (max-width: 768px) {
    .nav-brand {
        flex: 1;
        order: 2;
    }
    .nav-user {
        order: 3;
    }
    .mobile-menu-toggle {
        order: 1;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border: none;
        background: rgba(0, 217, 255, 0.04);
        border-radius: var(--radius-sm);
        margin-top: 4px;
        display: none;
        padding: 4px 0 4px 12px;
    }
    .nav-dropdown-menu::before { display: none; }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown-item {
        padding: 10px 12px;
        border-radius: var(--radius-sm);
    }
    .nav-username { display: none; }
    .nav-avatar { width: 30px; height: 30px; font-size: 0.7rem; }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg), var(--glow-sm);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 280px;
    max-width: 420px;
    pointer-events: all;
    animation: toastIn var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.toast-exit {
    animation: toastOut var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to   { opacity: 0; transform: translateX(100%) scale(0.95); }
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-body { flex: 1; }
.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 2px;
}
.toast-message {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-success { border-left: 3px solid var(--success-color); }
.toast-success .toast-icon { color: var(--success-color); }
.toast-error   { border-left: 3px solid var(--danger-color); }
.toast-error .toast-icon   { color: var(--danger-color); }
.toast-warning { border-left: 3px solid var(--warning-color); }
.toast-warning .toast-icon { color: var(--warning-color); }
.toast-info    { border-left: 3px solid var(--info-color); }
.toast-info .toast-icon    { color: var(--info-color); }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.toast-close:hover { color: var(--text-color); }

/* ============================================================
   SKELETON LOADER
   ============================================================ */
@keyframes shimmerSkeleton {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-elevated) 25%,
        rgba(148, 163, 184, 0.1) 50%,
        var(--bg-elevated) 75%
    );
    background-size: 600px 100%;
    animation: shimmerSkeleton 1.5s infinite linear;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
}

.skeleton-text:last-child { width: 70%; }

.skeleton-title {
    height: 20px;
    width: 50%;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.skeleton-card {
    padding: 20px;
    border-radius: var(--radius-lg);
}

.skeleton-badge {
    height: 24px;
    width: 80px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress {
    width: 100%;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    transition: width var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-sm { height: 4px; }
.progress-lg { height: 12px; }

.progress-success .progress-bar { background: linear-gradient(135deg, var(--success-color), var(--success-light)); }
.progress-danger  .progress-bar { background: linear-gradient(135deg, var(--danger-color), var(--danger-light)); }
.progress-warning .progress-bar { background: linear-gradient(135deg, var(--warning-color), var(--accent-light)); }

/* ============================================================
   STAT CARD
   ============================================================ */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-5) var(--spacing-6);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.5;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-sm);
    border-color: var(--card-border-hover);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4);
    color: var(--primary-color);
}

.stat-icon svg { width: 22px; height: 22px; }

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: var(--spacing-1);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-top: var(--spacing-2);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-change.up {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.down {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================================
   AVATAR COMPONENT
   ============================================================ */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    box-shadow: var(--glow-sm);
    overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs  { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar-sm  { width: 34px; height: 34px; font-size: 0.75rem; }
.avatar-lg  { width: 52px; height: 52px; font-size: 1.1rem; }
.avatar-xl  { width: 72px; height: 72px; font-size: 1.5rem; }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    border: 2px solid var(--bg-color);
    margin-left: -8px;
    transition: transform var(--transition-fast);
}

.avatar-group .avatar:first-child { margin-left: 0; }
.avatar-group .avatar:hover { transform: translateY(-4px); z-index: 1; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-6) 0;
    position: relative;
}

.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-color);
    padding: 0 var(--spacing-3);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ============================================================
   TAG / CHIP
   ============================================================ */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    border-color: rgba(148, 163, 184, 0.2);
}

.tag-primary { background: rgba(0, 217, 255, 0.1);  color: var(--primary-color);  border-color: rgba(0, 217, 255, 0.2); }
.tag-success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); border-color: rgba(16, 185, 129, 0.2); }
.tag-danger  { background: rgba(239, 68, 68, 0.1);  color: var(--danger-color);  border-color: rgba(239, 68, 68, 0.2); }
.tag-warning { background: rgba(245, 158, 11, 0.1); color: var(--accent-color);  border-color: rgba(245, 158, 11, 0.2); }
.tag-purple  { background: rgba(139, 92, 246, 0.1); color: var(--secondary-color); border-color: rgba(139, 92, 246, 0.2); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--spacing-4);
    flex-wrap: wrap;
}

.breadcrumb-item { display: flex; align-items: center; gap: 8px; }

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active { color: var(--text-color); font-weight: 500; }

.breadcrumb-separator {
    color: var(--text-disabled);
    opacity: 0.5;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-16) var(--spacing-8);
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-5);
    color: var(--text-disabled);
}

.empty-state-icon svg { width: 28px; height: 28px; }

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2);
}

.empty-state-description {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    max-width: 360px;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-6);
}

/* ============================================================
   TOOLTIP
   ============================================================ */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-color);
    font-size: var(--font-size-xs);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    transform: translateX(-50%) translateY(4px);
    z-index: 3000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   BADGE (Notification Dot)
   ============================================================ */
.badge-dot {
    position: relative;
    display: inline-flex;
}

.badge-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--danger-color);
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid var(--bg-color);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-5);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.section-title-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.section-title-icon svg { width: 16px; height: 16px; }

/* ============================================================
   TIMELINE / ACTIVITY
   ============================================================ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-5);
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    border: 2px solid var(--bg-color);
    box-shadow: var(--glow-sm);
}

.timeline-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--spacing-3) var(--spacing-4);
    transition: border-color var(--transition-fast);
}

.timeline-content:hover { border-color: var(--card-border-hover); }

.timeline-time {
    font-size: var(--font-size-xs);
    color: var(--text-disabled);
    margin-bottom: 4px;
}

.timeline-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ============================================================
   LIGHT MODE OVERRIDES FOR NEW COMPONENTS
   ============================================================ */
[data-theme="light"] .toast {
    background: var(--card-bg-solid);
    border-color: var(--card-border);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .stat-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

[data-theme="light"] .nav-dropdown-menu {
    background: var(--card-bg-solid);
    border-color: var(--card-border);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .nav-dropdown-menu::before {
    background: var(--card-bg-solid);
    border-color: var(--card-border);
}

[data-theme="light"] .nav-dropdown-item:hover {
    background: rgba(0, 128, 255, 0.08);
}

[data-theme="light"] .tag {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .timeline::before {
    background: var(--border-color);
}

[data-theme="light"] .timeline-content {
    background: var(--bg-elevated);
    border-color: var(--border-color);
}

[data-theme="light"] [data-tooltip]::after {
    background: var(--bg-elevated);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .btn-outline {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
}

[data-theme="light"] .nav-link.active {
    background: rgba(0, 128, 255, 0.1);
    border-color: rgba(0, 128, 255, 0.2);
    color: #0080ff;
}

[data-theme="light"] .nav-link:hover {
    background: rgba(0, 128, 255, 0.07);
    color: #0080ff;
}

/* ============================================================
   GLOBAL JAVASCRIPT TOAST HELPER (injected once)
   ============================================================ */
