/* Test Italiano - Stili personalizzati */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Card delle domande */
.question-card {
    background-color: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.question-card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.question-card.answered {
    border-color: #28a745 !important;
    background-color: #f8fff9;
}

/* Badge numerazione */
.badge {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Form check personalizzato */
.form-check {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    margin: 0.25rem 0;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.form-check:hover {
    background-color: #f0f0f0;
}

.form-check-input:checked + .form-check-label {
    font-weight: 500;
    color: #0d6efd;
}

/* Progress bar sticky */
.sticky-top {
    z-index: 1020;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Risultati */
.table-success {
    --bs-table-bg: #d1e7dd;
}

.table-danger {
    --bs-table-bg: #f8d7da;
}

/* Responsive */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-1 {
        font-size: 3rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

/* Print styles */
@media print {
    .navbar, footer, .sticky-top, .btn {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
