/* File Upload Component Styles */

.file-upload-container {
    position: relative;
    margin-top: 8px;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed #c4c4c4;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
}

.file-upload-label:hover {
    border-color: var(--brand-cyan);
    background: var(--neutral-50);
}

.file-upload-label.dragover {
    border-color: var(--brand-cyan);
    background: var(--cyan-alpha-10);
    transform: scale(1.02);
}

.file-upload-label i {
    font-size: 32px;
    color: var(--brand-cyan);
    margin-bottom: 12px;
}

.file-upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.file-upload-formats {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* File Preview Styles */
.file-preview {
    margin-top: 12px;
    display: none;
}

.file-preview.has-files {
    display: block;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    width: 32px;
    height: 32px;
    background: var(--brand-cyan);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    font-size: 14px;
}

.file-details h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.file-details p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #666;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-remove:hover {
    background: #c82333;
}

/* Image Preview */
.image-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}

/* File Type Icons */
.file-icon.pdf {
    background: #dc3545;
}

.file-icon.doc,
.file-icon.docx {
    background: #0d6efd;
}

.file-icon.jpg,
.file-icon.jpeg,
.file-icon.png {
    background: #198754;
}

/* Upload Progress */
.upload-progress {
    margin-top: 8px;
    background: var(--neutral-200);
    border-radius: 4px;
    overflow: hidden;
    height: 6px;
}

.upload-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Error States */
.file-upload-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-upload-label.error {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Success States */
.file-upload-label.success {
    border-color: #198754;
    background: #f0fff4;
}

.file-upload-success {
    color: #198754;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Multiple Files Container */
.multiple-files {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    background: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-upload-label {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .file-upload-label i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .file-upload-text {
        font-size: 14px;
    }
    
    .file-upload-formats {
        font-size: 11px;
    }
    
    .file-item {
        padding: 10px 12px;
    }
    
    .file-info {
        gap: 8px;
    }
    
    .image-preview {
        width: 40px;
        height: 40px;
    }
}

/* Animation for file drops */
@keyframes fileDropAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.file-upload-label.drop-animation {
    animation: fileDropAnimation 0.3s ease;
}