/* TimePro Solutions - Global Design System */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    /* WCAG 2.1 AA: Glass-BG erhöht für besseren Kontrast (0.35 → 0.50) */
    --glass-bg: rgba(0, 0, 0, 0.50);
    --glass-border: rgba(255, 255, 255, 0.15);
    --dark-gradient: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    /* Bootstrap Body Overrides */
    --bs-body-bg: #121212;
    --bs-body-color: #e9ecef;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    overflow-x: hidden;
    background: var(--dark-gradient);
    min-height: 100vh;
}

/* Skip Links für Barrierefreiheit (WCAG 2.1) */
.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background: #000000;
    color: #ffffff !important;
    padding: 12px 20px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid #4facfe;
    outline-offset: 2px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: -2;
}

/* Glass Morphism Navigation */
.glass-nav {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Content Area */
.main-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin: 2rem;
    padding: 2rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Buttons - Bootstrap Override */
.btn-primary {
    background: #000000 !important;
    border: none !important;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.btn-primary:hover {
    background: #333333 !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.btn-primary:focus-visible {
    outline: 3px solid #4facfe !important;
    outline-offset: 2px !important;
}

.btn-secondary {
    background: #000000 !important;
    color: white !important;
    border: 2px solid #000000 !important;
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-2px);
    color: white !important;
}

.btn-outline-primary {
    background: #000000 !important;
    color: white !important;
    border: 2px solid #000000 !important;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    color: white !important;
}

.btn-outline-primary:focus-visible {
    outline: 3px solid #4facfe !important;
    outline-offset: 2px !important;
}

.btn-outline-secondary {
    background: #000000 !important;
    color: white !important;
    border: 2px solid #000000 !important;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    color: white !important;
}

.btn-outline-secondary:focus-visible {
    outline: 3px solid #4facfe !important;
    outline-offset: 2px !important;
}

.btn-outline-warning {
    background: #000000 !important;
    color: white !important;
    border: 2px solid #000000 !important;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    color: white !important;
}

.btn-outline-success {
    background: #000000 !important;
    color: white !important;
    border: 2px solid #000000 !important;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    color: white !important;
}

/* Tables */
.table-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
}

.table-glass th {
    background: var(--glass-border);
    color: white;
    border: none;
    font-weight: 600;
}

.table-glass td {
    color: white;
    border-color: var(--glass-border);
}

/* Globales Table-Fix: ALLE Tabellen im Dark-Mode */
.table {
    color: var(--bs-body-color) !important;
}

.table th {
    color: white !important;
}

.table td {
    color: var(--bs-body-color) !important;
}

.table a {
    color: #4facfe !important;
}

.table a:hover {
    color: #00f2fe !important;
}

/* Dark Theme Tables */
.table-dark {
    color: white !important;
}

.table-dark th,
.table-dark td {
    color: white !important;
}

/* WCAG 2.1 AA: Text-Muted mindestens 85% Opazität für 4.5:1 Kontrast */
.table .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Forms */
.form-control {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(20px);
    border-radius: 10px;
}

.form-control:focus,
.form-control:focus-visible {
    background: var(--glass-bg);
    border-color: var(--accent-gradient);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.25);
    outline: none;
}

/* WCAG 2.1 AA: Platzhalter mindestens 90% Opazität für 4.5:1 Kontrast */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.9);
}

.form-label {
    color: white;
    font-weight: 600;
}

/* Alerts */
.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: white;
    backdrop-filter: blur(20px);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: white;
    backdrop-filter: blur(20px);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: white;
    backdrop-filter: blur(20px);
}

.alert-info {
    background: rgba(13, 202, 240, 0.2);
    border: 1px solid rgba(13, 202, 240, 0.3);
    color: white;
    backdrop-filter: blur(20px);
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
}

/* Navigation Links - Bootstrap Override */
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* Aktive Navlinks stärker hervorheben */
.navbar .nav-link.active, .dropdown-menu .dropdown-item.active {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* Dropdown Links */
.navbar .dropdown-toggle {
    color: #ffffff !important;
}

.navbar .dropdown-menu .dropdown-item {
    color: #ffffff !important;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: white;
    font-weight: 700;
}

/* Text Colors */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Breadcrumbs */
.breadcrumb {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* Pagination */
.pagination .page-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(20px);
}

.pagination .page-link:hover {
    background: var(--glass-border);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--accent-gradient);
    border-color: var(--accent-gradient);
}

/* Dropdowns */
.dropdown-menu {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

/* Modals */
.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: white;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        margin: 1rem;
        padding: 1rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}


