/* Main Styles mit Bootstrap als Basis */

:root {
    --sidebar-width: 260px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

/* Layout */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: #f8f9fa;
}

.header {
    position: sticky;
    top: 0;
    z-index: 999;
}

.content {
    max-width: 1400px;
}

/* Stat Cards */
.stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Table Styling */
.table-hover tbody tr {
    transition: background-color 0.2s;
}

/* Upload Area Hover Effect */
.card-body[style*="border: 2px dashed"]:hover {
    border-color: #0d6efd !important;
    background-color: #f8f9fa !important;
}

/* Modal Background */
.modal.d-block {
    display: block !important;
}

/* Animation für Admin Menu */
.nav-link .bi-chevron-down {
    transition: transform 0.3s ease;
}

.nav-link .bi-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Button Group */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* List Group */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

/* Form Enhancements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert Enhancements */
.alert {
    border-left: 4px solid;
}

.alert-warning {
    border-left-color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        left: -100%;
        transition: left 0.3s;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 1rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .header {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .btn,
    .badge {
        display: none;
    }
}