/* Estilos personalizados para Practice Exam */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar-brand strong {
    font-size: 1.3rem;
}

/* Cards */
.card {
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* Question styles */
.question-card {
    transition: box-shadow 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Form checks */
.form-check {
    padding: 10px 10px 10px 40px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.form-check:hover {
    background-color: #f8f9fa;
}

.form-check-input {
    cursor: pointer;
}

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

.form-check-label {
    cursor: pointer;
    display: block;
}

/* Progress bar */
.progress {
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.5s ease;
    font-weight: bold;
}

/* Navigation buttons */
.question-btn {
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0;
    line-height: 1;
}

.question-btn:hover {
    transform: scale(1.1);
}

.question-btn.answered {
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.4);
}

.question-btn.current {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.5);
}

#question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

/* Results page */
.display-4 {
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .question-nav {
        position: relative !important;
        top: auto !important;
    }

    .question-btn {
        min-width: 38px !important;
        min-height: 38px !important;
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* Modal */
.modal-content {
    border-radius: 15px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-card {
    animation: fadeIn 0.3s ease-out;
}

/* Footer */
.footer {
    margin-top: auto;
}

/* Alert styling */
.alert {
    border-radius: 10px;
}

/* Button styling */
.btn {
    border-radius: 8px;
}

.btn-lg {
    padding: 12px 30px;
}

/* Results specific */
.border-success {
    border-width: 2px !important;
}

.border-danger {
    border-width: 2px !important;
}
