/* Custom styles for IQ Test Platform */

/* Progress bar enhancements */
.progress {
    height: 8px;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Timer styling */
#timer {
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
    min-width: 60px;
    text-align: center;
}

/* Question card styling */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Answer option styling */
.form-check-label {
    cursor: pointer;
    user-select: none;
}

.form-check-input:checked + .form-check-label {
    font-weight: 500;
}

/* Image option styling */
.btn-check:checked + .btn {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Results page styling */
.display-1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Leaderboard styling */
.table th {
    border-top: none;
    font-weight: 600;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Medal and crown icons */
.fa-crown {
    color: #ffd700;
}

.fa-medal {
    color: #c0c0c0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-1 {
        font-size: 3rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Dark theme specific adjustments */
[data-bs-theme="dark"] .border {
    border-color: rgba(255, 255, 255, 0.125) !important;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(255, 255, 255, 0.025);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

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

.slide-in {
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Button hover effects */
.btn {
    transition: all 0.2s ease;
}

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

.btn:active {
    transform: translateY(0);
}
