/* ============================
   PROFESSIONAL LIGHT THEME
   IBB Buchungssystem
   ============================ */

:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #0891b2;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --info: #0284c7;
    
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --text-light: #333333;
    
    --bg-primary: #e8e4df;
    --bg-secondary: #dbd6d0;
    --bg-tertiary: #cec9c3;
    
    --border: #c4bfb9;
    --border-light: #d1ccc6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    height: 100%;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* PAGE STRUCTURE */
.page-wrap {
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

/* NAVBAR */
.navbar-modern {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.navbar-modern .navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-modern .nav-link {
    color: #000000 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.navbar-modern .nav-link:hover {
    color: #000000 !important;
}

.navbar-modern .nav-link.active {
    color: var(--primary-light) !important;
    background-color: rgba(59, 130, 246, 0.15);
    border-radius: 6px;
}

/* LOADER */
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(232, 228, 223, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loader-overlay.active {
    display: flex;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* CARDS */
.card-modern {
    background-color: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.card-modern .card-header {
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
}

.card-modern .card-header h5 {
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0;
}

.card-modern .card-body {
    padding: 1.5rem;
    color: #000000;
}

/* BUTTONS */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-modern-primary {
    background-color: var(--primary-light);
    color: white;
}

.btn-modern-primary:hover {
    background-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-secondary:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #15803d;
}

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

.btn-danger:hover {
    background-color: #b91c1c;
}

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

.btn-warning:hover {
    background-color: #b45309;
}

/* FORMS */
.form-control-modern,
.form-control {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #000000;
}

.form-control-modern:focus,
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-label {
    color: #000000;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* TABLES */
.table {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

.table thead th {
    background-color: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000000;
    font-weight: 600;
    padding: 1rem;
    text-transform: none;
    font-size: 0.95rem;
}

.table tbody td {
    border-color: rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: #000000;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.08);
}transparent

/* ALERTS */
.alert {
    border-radius: 6px;
    border: none;
    font-weight: 500;
}

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

.alert-danger {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.alert-warning {
    background-color: #fef3c7;
    color: #78350f;
}

.alert-info {
    background-color: #dbeafe;
    color: #0c2340;
}

/* BADGES & STATUS */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.8rem;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

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

.status-rejected {
    background-color: #fee2e2;
    color: #7f1d1d;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SPACING UTILITIES */
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* TEXT UTILITIES */
.text-white { color: #000000; }
.text-muted-2 { color: #1a1a1a; }
.text-muted { color: #333333; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-decoration-none { text-decoration: none; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.small { font-size: 0.85rem; color: #1a1a1a; }

/* CONTAINERS */
.container-fluid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* EMPTY STATES */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #1a1a1a;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    display: block;
    color: #333333;
}

.empty-state h5 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar-modern .nav-link {
        padding: 0.5rem 0 !important;
    }

    .btn-group {
        flex-direction: column;
    }

    .container-fluid {
        padding: 0 1rem;
    }

    .card-modern .card-body {
        padding: 1rem;
    }
}
