




.file-upload-wrapper {
    margin-top: 1rem;
}


.file-upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.file-upload-zone:hover {
    border-color: var(--primary);
    background-color: var(--bg);
}

.file-upload-zone.drag-over {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: scale(1.02);
}

.file-upload-zone.has-files {
    padding: 1.5rem;
}

.file-upload-zone.is-full {
    opacity: 0.7;
    cursor: not-allowed;
}


.drop-zone__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.5;
    color: var(--text-muted);
}

.drop-zone__text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.drop-zone__hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}


.file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: var(--bg);
    box-shadow: var(--shadow-sm);
}

.file-item__preview {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.file-item__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-item__icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.file-item__info {
    flex: 1;
    min-width: 0;
}

.file-item__name {
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item__size {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.file-item__remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background-color: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.file-item__remove:hover {
    background-color: var(--danger-light);
    color: var(--danger);
}


.file-upload-error {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background-color: var(--danger-light);
    color: var(--danger);
    border-radius: var(--radius);
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


@media (max-width: 768px) {
    .file-upload-zone {
        padding: 1.5rem;
    }
    
    .drop-zone__text {
        font-size: 1rem;
    }
    
    .file-item {
        padding: 0.5rem;
    }
    
    .file-item__preview {
        width: 40px;
        height: 40px;
    }
}