/**
 * Vee Elementor Addons - File Dropzone Field CSS
 */

/* Stile base del campo dropzone */
.file-dropzone-field {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    cursor: pointer;
    margin-bottom: 15px;
    position: relative;
}

/* Indicatore conteggio file */
.file-count-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f2f2f2;
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.file-count-indicator.counter-full {
    background-color: #ffae00;
    color: white;
    border-color: #e09800;
}

.file-dropzone-field.modern-style .file-count-indicator {
    background-color: #4ac4f3;
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-dropzone-field.modern-style .file-count-indicator.counter-full {
    background-color: #ff6b6b;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* Effetto hover */
.file-dropzone-field:hover {
    border-color: #a4afb7;
    background-color: #f4f4f4;
}

/* Stato durante il trascinamento */
.file-dropzone-field.dropzone-drag {
    border-color: #58d0f5;
    background-color: rgba(88, 208, 245, 0.1);
}

.file-dropzone-field.dropzone-drag .file-count-indicator {
    background-color: #58d0f5;
    color: white;
}

/* Icona */
.file-dropzone-field .dropzone-icon {
    margin-bottom: 15px;
    color: #a4afb7;
}

.file-dropzone-field .dropzone-icon i {
    font-size: 36px;
}

/* Testo */
.file-dropzone-field p {
    margin: 0 0 10px;
    color: #555;
    font-size: 16px;
}

.file-dropzone-field .file-restrictions {
    font-size: 12px;
    color: #777;
}

/* Stile moderno per il dropzone */
.file-dropzone-field.modern-style {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    padding: 35px 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.file-dropzone-field.modern-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.file-dropzone-field.modern-style.dropzone-drag {
    border-color: #4ac4f3;
    background-color: rgba(74, 196, 243, 0.05);
    box-shadow: 0 6px 20px rgba(74, 196, 243, 0.15);
}

.file-dropzone-field.modern-style .dropzone-icon {
    margin-bottom: 20px;
}

.file-dropzone-field.modern-style .dropzone-icon i {
    font-size: 42px;
    color: #4ac4f3;
    transition: transform 0.3s ease;
}

.file-dropzone-field.modern-style:hover .dropzone-icon i {
    transform: scale(1.1);
}

.file-dropzone-field.modern-style p {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.file-dropzone-field.modern-style .file-restrictions {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Lista dei file caricati con stile moderno */
.file-dropzone-field.modern-style + .files-list .file-item {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.file-dropzone-field.modern-style + .files-list .file-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-dropzone-field.modern-style + .files-list .file-item-icon {
    color: #4ac4f3;
}

.file-dropzone-field.modern-style + .files-list .file-item-remove {
    background-color: #f8f8f8;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lista dei file caricati */
.files-list {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #fff;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item-icon {
    margin-right: 10px;
    color: #a4afb7;
    font-size: 24px;
}

.file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-size {
    margin: 0 15px;
    color: #777;
    font-size: 12px;
}

.file-item-remove {
    cursor: pointer;
    color: #d72c2c;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.file-item-remove:hover {
    opacity: 1;
}

/* Messaggio di errore */
.file-error-message {
    color: #d72c2c;
    font-size: 13px;
    margin-top: 5px;
    font-style: italic;
}

/* Barra di progresso */
.file-upload-progress {
    height: 6px;
    background-color: #e5e5e5;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.file-upload-progress-bar {
    height: 100%;
    background-color: #58d0f5;
    width: 0;
    transition: width 0.2s ease;
}

/* Stili per dispositivi mobili */
@media (max-width: 767px) {
    .file-dropzone-field,
    .file-dropzone-field.modern-style {
        padding: 20px 15px;
    }
    
    .file-item {
        flex-wrap: wrap;
    }
    
    .file-item-size {
        margin: 5px 0 0 34px;
        width: 100%;
    }
} 