﻿/* ===== ibsn-file-upload styles ===== */
.ibsn-file-upload .card-body {
    padding: 1.25rem;
}

/* container for the two upload panels – uses flexbox for horizontal layout */
.ibsn-file-upload .ibsn-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* space between columns */
    align-items: flex-start;
}

/* each upload panel takes equal width, but wraps on small screens */
.ibsn-file-upload .ibsn-upload-col {
    flex: 1 1 280px; /* grow, shrink, min-width 280px */
    min-width: 0; /* prevents overflow in flex items */
}

/* optional: subtle card-like panel for each upload zone (matches original mb-1) */
.ibsn-file-upload .ibsn-upload-panel {
    background-color: #f8f9fc;
    border-radius: 0.65rem;
    padding: 1rem 1rem 0.75rem 1rem;
    border: 1px solid #e9ecef;
    transition: border-color 0.15s ease-in-out;
    height: 100%;
}

/* heading style – preserve original h6 look but with a bit more breathing room */
.ibsn-file-upload .ibsn-upload-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

/* file input customisation – keep Bootstrap form-control but fine-tune */
.ibsn-file-upload .ibsn-file-input {
    /* form-control already applied via class, but we add some spacing */
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    background-color: #fff;
    font-size: 0.9rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height:45px;
}

    .ibsn-file-upload .ibsn-file-input:focus {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    }

/* success alert – mimic original but keep it compact and friendly */
.ibsn-file-upload .ibsn-alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

    .ibsn-file-upload .ibsn-alert-success i {
        font-size: 1.1rem;
        line-height: 1;
    }

/* small format hint */
.ibsn-file-upload .ibsn-format-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* if the alert is hidden (when no file loaded), we add a placeholder with same height? 
           But the original shows nothing if not loaded – we keep that behaviour */
.ibsn-file-upload .ibsn-empty-placeholder {
    /* no content, but to keep vertical rhythm we add a tiny empty space */
    min-height: 1px;
}

/* responsive fine-tuning */
@media (max-width: 576px) {
    .ibsn-file-upload .ibsn-upload-row {
        gap: 1rem;
    }

    .ibsn-file-upload .ibsn-upload-panel {
        padding: 0.9rem;
    }
}
