.file-upload-wrapper {
    width: 100%;
}

.file-drop-zone {
    border: 2px dashed var(--gray-300, #dee2e6);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    background: var(--gray-100, #f8f9fa);
    position: relative;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: var(--primary-light, #2563a8);
    background: rgba(37, 99, 168, .04);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 168, .12);
}

.file-drop-zone.has-files {
    border-style: solid;
    border-color: var(--green, #1a5c2e);
    background: rgba(26, 92, 46, .03);
}

.file-drop-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
    display: block;
    transition: transform .25s;
}

.file-drop-zone:hover .file-drop-icon,
.file-drop-zone.drag-over .file-drop-icon {
    transform: translateY(-4px) scale(1.1);
}

.file-drop-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--gray-700, #495057);
    margin-bottom: 4px;
}

.file-drop-sub {
    font-size: .78rem;
    color: var(--gray-500, #adb5bd);
}

.file-drop-sub strong {
    color: var(--primary, #1a3a5c);
}

.file-drop-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white, #fff);
    border: 1.5px solid var(--gray-200, #e9ecef);
    border-radius: 10px;
    padding: 10px 12px;
    transition: all .2s;
    animation: fileIn .25s ease both;
}

@keyframes fileIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.file-item:hover {
    border-color: var(--gray-300, #dee2e6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.file-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--gray-100, #f8f9fa);
}

.file-item-icon.icon-image { background: #e3f2fd; }
.file-item-icon.icon-pdf   { background: #ffebee; }
.file-item-icon.icon-doc   { background: #e8f5e9; }
.file-item-icon.icon-zip   { background: #fff3e0; }

.file-item-info {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    font-size: .83rem;
    font-weight: 600;
    color: var(--gray-900, #212529);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
}

.file-item-size {
    font-size: .72rem;
    color: var(--gray-500, #adb5bd);
    margin-top: 2px;
}

.file-item-progress {
    height: 4px;
    background: var(--gray-200, #e9ecef);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 5px;
}

.file-item-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #1a3a5c), var(--primary-light, #2563a8));
    border-radius: 99px;
    transition: width .3s ease;
    width: 0;
}

.file-item-status {
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

.file-item-status.uploading { background: #e3f2fd; color: #1565c0; }
.file-item-status.done      { background: #e8f5e9; color: #2e7d32; }
.file-item-status.error     { background: #ffebee; color: #c62828; }
.file-item-status.waiting   { background: #f3e5f5; color: #6a1b9a; }

.file-item-remove {
    background: none;
    border: none;
    color: var(--gray-400, #ced4da);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    transition: all .15s;
    flex-shrink: 0;
}

.file-item-remove:hover {
    background: #ffebee;
    color: #c62828;
}

.file-upload-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .73rem;
    color: var(--gray-500, #adb5bd);
    margin-top: 6px;
}

.file-upload-info span {
    background: var(--gray-200, #e9ecef);
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--gray-700, #495057);
}