/* FileUploadComponent styles */

.file-upload-component {
    margin-bottom: 0.5rem;
}

/* Drop zone */
.fu-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.fu-drop-zone:hover {
    border-color: #adb5bd;
}

.fu-drop-zone.fu-dragover {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.fu-drop-zone.fu-at-limit {
    border-color: #dee2e6;
    background: #e9ecef;
    cursor: default;
}

.fu-drop-zone-inner {
    pointer-events: none;
}

.fu-drop-zone-inner .fu-choose-btn {
    pointer-events: auto;
    min-height: 48px;
    min-width: 160px;
    font-size: 1rem;
}

.fu-drop-hint {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Toast area */
.fu-toast-area {
    margin-top: 0.5rem;
}

.fu-toast {
    font-size: 0.875rem;
}

.fu-toast ul {
    padding-left: 1.25rem;
    font-size: 0.8125rem;
}

/* File list */
.fu-file-list {
    margin-top: 0.5rem;
}

.fu-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fff;
    transition: background 0.2s;
}

.fu-file-item.fu-upload-failed {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Thumbnail */
.fu-file-thumb {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
}

.fu-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* File info */
.fu-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fu-file-name {
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fu-file-size {
    font-size: 0.8125rem;
}

.fu-file-error {
    font-size: 0.8125rem;
}

/* Progress bar */
.fu-progress {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.fu-progress-bar {
    height: 100%;
    background: #0d6efd;
    width: 0;
    transition: width 0.15s ease;
    border-radius: 2px;
}

/* Actions */
.fu-file-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.fu-remove-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fu-retry-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hidden inputs */
.fu-hidden-inputs {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .fu-drop-zone {
        padding: 1rem;
    }

    .fu-file-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .fu-file-thumb {
        width: 40px;
        height: 40px;
    }
}
