/* Custom CSS for Perse-Time */

body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

/* Modern Navigation Styling */
.navbar {
    backdrop-filter: blur(10px);
    z-index: 1030; /* Bootstrap navbar standard + extra */
    position: relative;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.dropdown-menu {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1040; /* Höher als navbar */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Fix für alle Bootstrap Dropdown-Komponenten */
.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Navigation über allem */
.navbar-nav .dropdown {
    z-index: 1050; /* Noch höher für nested elements */
}

.navbar-nav .dropdown-menu {
    z-index: 1055; /* Maximum für Dropdown-Inhalte */
    border: 1px solid rgba(0,0,0,0.1);
    margin-top: 0.5rem;
}

/* Content-Bereiche niedriger halten */
.container, .container-fluid {
    z-index: 1; /* Basis-Level für Content */
    position: relative;
}

/* Modals und Overlays */
.modal {
    z-index: 1060; /* Bootstrap modal standard */
}

.modal-backdrop {
    z-index: 1055; /* Unter modals, über navigation */
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
    z-index: 2; /* Etwas höher für Cards, aber unter Navigation */
    position: relative;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}

.btn {
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

/* QR Code styling */
#qr-display img {
    border: 3px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
}

/* Status indicators */
.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #6c757d;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .card {
        margin-bottom: 0.5rem;
    }
}

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

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

/* Zusätzliche Z-Index Fixes für Content-Elemente */
.table-responsive {
    z-index: 1; /* Unter Navigation */
    position: relative;
}

.btn-group .dropdown-menu {
    z-index: 1045; /* Für Dropdown-Buttons in Content */
}

/* Fix für Bootstrap-Alerts über Content */
.alert {
    z-index: 10; /* Über normalem Content, unter Navigation */
    position: relative;
}
