/* Mobile-friendly file upload styles */
.file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

.file-upload-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    min-height: 56px;
    background: linear-gradient(135deg, #1c74bc 0%, #1576c5 100%);
    color: #fff;
    border: 2px solid #1c74bc;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(28, 116, 188, 0.2);
    text-align: center;
    width: 100%;
}

.file-upload-label:hover {
    background: linear-gradient(135deg, #1576c5 0%, #1266a8 100%);
    border-color: #1266a8;
    box-shadow: 0 4px 12px rgba(28, 116, 188, 0.3);
    transform: translateY(-1px);
}

.file-upload-label:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(28, 116, 188, 0.2);
}

.file-upload-label i {
    font-size: 1.25rem;
}

.file-upload-label .file-upload-text {
    flex: 1;
}

.file-name-display {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    color: #495057;
    font-size: 0.875rem;
    display: none;
    word-break: break-word;
}

.file-name-display.has-file {
    display: block;
}

.file-name-display i {
    margin-right: 0.5rem;
    color: #1c74bc;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .file-upload-label {
        padding: 1.25rem 1.5rem;
        min-height: 60px;
        font-size: 1.1rem;
    }
    
    .file-upload-label i {
        font-size: 1.5rem;
    }
    
    /* Larger touch target for mobile */
    .file-upload-label::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
}

@media (max-width: 576px) {
    .file-upload-label {
        padding: 1.5rem 1.25rem;
        min-height: 64px;
        font-size: 1.15rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .file-upload-label i {
        font-size: 1.75rem;
    }
}

/* Focus styles for accessibility */
.file-upload-input:focus + .file-upload-label {
    outline: 3px solid rgba(28, 116, 188, 0.5);
    outline-offset: 2px;
}

/* Disabled state */
.file-upload-input:disabled + .file-upload-label {
    background: #e9ecef;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    box-shadow: none;
}

.file-upload-input:disabled + .file-upload-label:hover {
    background: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* Alternative style for secondary uploads */
.file-upload-wrapper.secondary .file-upload-label {
    background: #fff;
    color: #1c74bc;
    border-color: #1c74bc;
}

.file-upload-wrapper.secondary .file-upload-label:hover {
    background: #f8f9fa;
    color: #1266a8;
    border-color: #1266a8;
}

