/* Stili base drag & drop */
.drop-zone {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}
.drop-zone.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}


/* Spinner di avvio */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Nero semitrasparente */
    z-index: 9999; /* Assicurati che sia sopra tutto */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    /* Stile per centrare spinner e testo */
}


/* Aggiungi questo nello style esistente */
#toast-container-center {
    min-width: 350px;
    max-width: 100%;
}

.toast-center {
    width: 100%;
    opacity: 1;
}

.toast-body {
    padding: 1rem 1.5rem;
}

.form-check-input:disabled ~ .form-check-label {
    opacity: 0.6;
    cursor: not-allowed;
}


/* CONTENITORE (dimensione fissa = altezza bottone Bootstrap) */
#convertContainer {
    position: relative;
    height: 38px; 
    width: 100%;
    margin-bottom: 1rem;
    background-color: rgba(13, 110, 253, 0.33);
}

/* PROGRESS BAR (INIZIALMENTE NASCOSTA) */
#progressBar {
    position: absolute;
    width: 0%;
    height: 100%;
    display: none;
    border-radius: inherit;
}

/* TESTO PERCENTUALE */
#progressText {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    display: none;
}

#abortBtn {
    display: none;
}

/* STATO DI CONVERSIONE */
.converting >  #convertBtn  {
    display: none;
}

#abortBtn.converting,
.converting > #progressBar,
.converting > #progressText {
    display: block;
}

        
