/* Dropzone Custom Styles */
.dz-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dz-preview:hover {
    background: #f0f2f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dz-preview .dz-image {
    display: none;
}

.dz-preview .dz-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #e7f1ff;
    border-radius: 6px;
    flex-shrink: 0;
}

.dz-preview .dz-image-preview::before {
    content: '📄';
    font-size: 20px;
}

.dz-preview .dz-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-preview .dz-filename {
    margin: 0;
}

.dz-preview .dz-filename span {
    background: none;
    padding: 0;
    font-weight: 500;
    color: #212529;
}

.dz-preview .dz-size {
    color: #6c757d;
    font-size: 13px;
    white-space: nowrap;
}

.dz-preview .dz-progress {
    display: none;
}

.dz-preview.dz-success .dz-success-mark,
.dz-preview.dz-error .dz-error-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
}

.dz-preview.dz-success .dz-success-mark svg {
    width: 20px;
    height: 20px;
    color: #28a745;
}

.dz-preview.dz-error .dz-error-mark svg {
    width: 20px;
    height: 20px;
    color: #dc3545;
}

.dz-preview .dz-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 14px;
    padding: 6px 8px;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.dz-preview .dz-remove::before {
    content: '✕';
    font-weight: bold;
    font-size: 16px;
}

.dz-preview .dz-remove:hover {
    background: #ffe5e5;
    color: #c82333;
}

/* Container del dropzone */
#dropzone-csf {
    border-color: #dee2e6 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

#dropzone-csf.disabled {
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
}

#dropzone-csf .dz-message {
    margin: 0;
}

.dz-message p {
    margin: 0;
}

/* Ocultar elementos por defecto del dropzone */
.dz-preview .dz-error-message {
    display: none;
}

.dz-message .dz-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.dz-message .dz-button:hover {
    background: #0056b3;
}
