/* Allgemeine Stile */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

/* Karten */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Formulare */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Tabellen */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

/* Anwesenheitserfassung */
.anwesenheit-card {
    margin-bottom: 1rem;
}

.anwesenheit-card .form-check {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
}

.anwesenheit-card .form-check:last-child {
    border-bottom: none;
}

.anwesenheit-card .form-check-input {
    margin-top: 0.3rem;
}

/* Statistik */
.statistik-chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

.statistik-filter {
    margin-bottom: 1.5rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .statistik-chart-container {
        height: 300px;
    }
    
    .btn-responsive {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Animationen */
.fade-in {
    animation: fadeIn 0.5s;
}

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

/* Toast-Benachrichtigungen */
.toast {
    border-radius: 0.5rem;
}

/* Login-Seite */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 3rem;
    color: #0d6efd;
}

/* Dashboard */
.dashboard-card {
    height: 100%;
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
}

.dashboard-card .btn {
    margin-top: auto;
}

/* Weekly Schedule Table */
.schedule-card {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

.schedule-table {
    min-width: 100%;
    table-layout: fixed;
}

.schedule-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.schedule-cell {
    vertical-align: top;
    padding: 1rem;
    min-height: 200px;
    width: 14.28%; /* 100% / 7 days */
}

/* Weekday Colors */
.wochentag-montag {
    background: linear-gradient(to bottom, #e3f2fd 0%, #f8f9fa 100%);
}
.wochentag-dienstag {
    background: linear-gradient(to bottom, #e8f5e9 0%, #f8f9fa 100%);
}
.wochentag-mittwoch {
    background: linear-gradient(to bottom, #fff3e0 0%, #f8f9fa 100%);
}
.wochentag-donnerstag {
    background: linear-gradient(to bottom, #f3e5f5 0%, #f8f9fa 100%);
}
.wochentag-freitag {
    background: linear-gradient(to bottom, #e1f5fe 0%, #f8f9fa 100%);
}
.wochentag-samstag {
    background: linear-gradient(to bottom, #f1f8e9 0%, #f8f9fa 100%);
}
.wochentag-sonntag {
    background: linear-gradient(to bottom, #ffebee 0%, #f8f9fa 100%);
}

/* Schedule Items */
.schedule-item {
    background: white;
    border-radius: 0.5rem;
    padding: 0.875rem;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.15);
}

.schedule-item:last-child {
    margin-bottom: 0 !important;
}

.schedule-item-header {
    margin-bottom: 0.5rem;
}

.schedule-group-name {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.schedule-group-name:hover {
    color: #667eea;
}

.schedule-item-time,
.schedule-item-trainer {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.schedule-item-time i,
.schedule-item-trainer i {
    width: 18px;
    text-align: center;
    color: #9ca3af;
}

.schedule-item-stats {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.schedule-item-stats .badge {
    font-size: 0.813rem;
    padding: 0.375rem 0.625rem;
}

.schedule-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Quick Action Cards */
.quick-action-card {
    border: none;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.quick-action-card .card-body {
    padding: 2rem 1rem;
}

.quick-action-card h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .schedule-cell {
        padding: 0.75rem;
    }

    .schedule-item {
        padding: 0.75rem;
    }

    .schedule-group-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .schedule-table {
        font-size: 0.875rem;
    }

    .schedule-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.813rem;
    }

    .schedule-cell {
        padding: 0.5rem;
    }

    .schedule-item {
        padding: 0.625rem;
    }

    .schedule-item-actions .btn {
        font-size: 0.813rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .schedule-card {
        border-radius: 0.5rem;
    }

    .schedule-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .schedule-cell {
        min-width: 180px;
    }
}
