/* Custom styles for RaceLab */

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form enhancements */
.form-floating > label {
    padding: 1rem 0.75rem;
}

.input-group-text {
    background-color: #f8f9fa;
}

/* Card enhancements */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Status badges */
.badge {
    font-size: 0.75em;
}

/* Progress indicators */
.progress {
    height: 6px;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 10px;
}

/* Button enhancements */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.03);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block !important;
    }
}

/* Event creation wizard */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.wizard-step-indicator {
    flex: 1;
    height: 4px;
    background-color: #e9ecef;
    margin: 0 5px;
    border-radius: 2px;
}

.wizard-step-indicator.completed {
    background-color: #28a745;
}

.wizard-step-indicator.active {
    background-color: #007bff;
}

/* Registration form */
.registration-form .form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Participant management */
.participant-card {
    transition: all 0.3s ease;
}

.participant-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Dashboard cards */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.stats-card .card-body {
    padding: 2rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stats-card p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* Print styles */
@media print {
    .sidebar,
    .btn,
    .alert,
    .navbar {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}