/**
 * Stili personalizzati per le modali
 */

/* Effetti di transizione per le modali */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.modal-backdrop.show {
    opacity: 0.7;
}

/* Stile per i campi di input */
.modal .form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.modal .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Stile per le etichette */
.modal .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Stile per i checkbox */
.modal .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
}

.modal .form-check-label {
    margin-left: 0.5rem;
}

/* Stile per le anteprime delle immagini */
.modal .img-preview {
    max-height: 150px;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid #dee2e6;
    padding: 0.25rem;
    background-color: #fff;
}

/* Stile per gli indicatori di caricamento */
.modal .loading-indicator {
    color: #007bff;
    font-size: 1.1rem;
}

/* Stile per il footer della modale */
.modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

/* Stile per il corpo della modale */
.modal .modal-body {
    padding: 1.5rem;
}

/* Effetto hover sui pulsanti */
.modal .btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
    transform: translateY(-2px);
}

/* Transizione per i pulsanti */
.modal .btn {
    transition: all 0.3s ease;
}

/* Stile per i messaggi di errore */
.modal .invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Stile per i campi obbligatori */
.modal .form-label.required:after {
    content: " *";
    color: #dc3545;
}
