/* Estilos para a preview do Dropzone */
.upload-preview {
    margin-top: 20px;
    width: 100%;
    display: none; /* Inicialmente oculto */
    min-height: 100px;
    /* border: 2px dashed #e0e0e0; */
    border-radius: 10px;
    /* padding: 15px; */
    background: #fafafa;
}

.dz-preview {
    display: inline-block;
    margin: 8px;
    vertical-align: top;
}

.dz-preview .dz-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: block;
    z-index: 10;
}

.dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dz-preview .dz-details {
    text-align: center;
    margin-top: 8px;
}

.dz-preview .dz-filename {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dz-preview .dz-size {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.dz-preview .dz-error-message {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 4px;
    max-width: 80px;
    text-align: center;
}

.dz-preview .dz-success-mark,
.dz-preview .dz-error-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: none;
}

.dz-preview.dz-success .dz-success-mark {
    display: block;
}

.dz-preview.dz-error .dz-error-mark {
    display: block;
}

.dz-preview .dz-success-mark svg {
    color: #27ae60;
}

.dz-preview .dz-error-mark svg {
    color: #e74c3c;
}

/* Ocultar completamente a mensagem padrão do Dropzone */
.dz-default.dz-message,
.dz-default.dz-message * {
    display: none !important;
}

/* Ocultar o container padrão de previews */
.dz-preview.dz-file-preview:not(.dz-image-preview) {
    display: none !important;
}

/* Estilo para arquivos não-imagem (PDF, DOC, etc.) */
.dz-preview .dz-image:not(:has(img)) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}

.dz-preview .dz-image:not(:has(img))::before {
    content: "📄";
    font-size: 24px;
}

/* Hover effects */
.dz-preview:hover .dz-image {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Responsividade */
@media (max-width: 480px) {
    .dz-preview .dz-image {
        width: 60px;
        height: 60px;
    }
    
    .dz-preview .dz-filename {
        font-size: 11px;
        max-width: 60px;
    }
}

/* Estilos para quando a área de upload é redimensionada */
.upload-area.upload-resize {
    min-height: 200px;
    transition: min-height 0.3s ease;
}

.upload-area.upload-resize .upload-content {
    display: none;
}

/* Ocultar o link "Remove file" do Dropzone */
.dz-remove {
    display: none !important;
}
