.file-upload-container {
    position: relative;
}

.files-preview-container {
    padding: 0 1rem;
    background: #f5f5f5;
    width: 100%;
    position: absolute;
    left: 0;
    height: 48px;
    top: -80%;
}

.files-preview-list {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    gap: 10px;
    margin-bottom: 10px;
}
.file-preview-item:has(.image-preview) .ant-btn {
    position: absolute;
    left: 50%;
    width: 32px !important;
    height: 32px !important;
    font-size: 20px;
    color: #fff !important;
    margin: 0;
}

.file-preview-item {
    display: flex;
    align-items: center;
    height: 100%;
    background: white;
    border-radius: 8px;
    gap: 8px;
    position: relative;
}

.file-preview-item > button {
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.15s;
    width: 100% !important;
    border: unset !important;
    background: rgba(0, 0, 0, 0.5) !important;
    font-size: 28px;
}

.file-preview-item:hover > button {
    opacity: 1 !important;
}

.file-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.file-icon {
    font-size: 16px !important;
}
.file-preview-item .ant-btn {
    margin: 0;
    height: 32px;
    font-size: 20px;
    width: 100% !important;
    position: absolute;
    color: #fff !important;
}

.file-preview button {
    padding: 2px 6px;
    font-size: 12px;
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.image-preview img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}

.file-icon {
    font-size: 24px;
}

.file-name {
    font-size: 12px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file-btn {
    color: #ff4d4f;
}

.files-preview-actions {
    display: flex;
    justify-content: flex-end;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.file-message {
    padding: 8px;
    background: #f0f0f0;
    border-radius: 8px;
    margin: 4px 0;
}

.file-message a {
    color: #1890ff;
    text-decoration: none;
}

.file-message a:hover {
    text-decoration: underline;
}
