/**
 * Quiz Anmeldung - Custom Styles
 */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Card Animations */
.quiz-card, .stat-card, .table-card {
    transition: all 0.3s ease;
}

.quiz-card:hover, .stat-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Badge Styles */
.badge-sm {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-section {
    border-left: 4px solid #667eea;
}

/* Progress Bar */
.progress-thin {
    height: 6px;
    border-radius: 3px;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
}

/* Alert Styles */
.alert {
    border: none;
    border-left: 4px solid transparent;
}

.alert-success {
    border-left-color: #28a745;
    background-color: rgba(40, 167, 69, 0.8);
}

.alert-danger {
    border-left-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.8);
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.8);
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.8);
}

/* Event Card Status */
.event-card {
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-3px);
}

.event-card.full {
    position: relative;
}

.event-card.full::after {
    content: "AUSGEBUCHT";
    position: absolute;
    top: 10px;
    right: -10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .quiz-card {
        padding: 20px !important;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .quiz-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Accessibility */
:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Animation for Success Messages */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    animation: fadeInUp 0.5s ease;
}