/*
 * Shared file picker based on C:/Users/KIANI/Desktop/Arka/ChooseFile.html.
 * The native input remains in the form for normal ASP.NET model binding.
 */
.file-upload-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5e9ee;
    border-radius: 12px;
}

.file-input-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.custom-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    color: #fff;
    background: linear-gradient(135deg, #4e90bd 0%, #12a19a 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(45, 125, 157, .2);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
    user-select: none;
}

.custom-file-btn:hover {
    box-shadow: 0 7px 14px rgba(45, 125, 157, .28);
    transform: translateY(-2px);
}

.custom-file-btn:active {
    transform: translateY(0);
}

.custom-file-btn:focus-visible {
    outline: 3px solid rgba(18, 161, 154, .28);
    outline-offset: 2px;
}

.file-name-box {
    display: block;
    flex: 1 1 180px;
    min-width: 0;
    padding: 10px 15px;
    overflow: hidden;
    color: #888;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
    font-size: .82rem;
    text-align: center;
    text-overflow: ellipsis;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}

.file-name-box.has-file {
    color: #333;
    background: #f0f6ff;
    border-color: #2575fc;
}

@media (max-width: 480px) {
    .file-upload-container {
        align-items: stretch;
        flex-direction: column;
    }

    .custom-file-btn,
    .file-name-box {
        width: 100%;
    }
}
