﻿/* === Bootstrap 3 → 5 Compatibility Shim === */

/* 1. Form spacing */
.form-group {
    margin-bottom: 1rem;
}

/* 2. Labels */
.control-label {
    padding-top: 0.375rem;
    margin-bottom: 0;
}

/* 3. Buttons */
/*.btn-default {
    color: #212529;
    background-color: #e9ecef;
    border-color: #ced4da;
}*/

    .btn-default:hover {
        background-color: #dde2e6;
        border-color: #c6ccd2;
    }

/* 4. Input group addon (BS3 → BS5) */
.input-group-addon {
    padding: 0.375rem 0.75rem;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

/* 5. Hide/show utilities */
.hidden-xs {
    display: none !important;
}

@media (min-width: 576px) {
    .hidden-xs {
        display: initial !important;
    }
}

/* 6. Panels → Cards (basic fallback) */
.panel {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.panel-heading {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}

.panel-body {
    padding: 1rem;
}

/* 7. Glyphicons fallback spacing */
.glyphicon {
    margin-right: 0.25rem;
}

/* 8. Fix img responsiveness */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* 9. Fix old pull classes */
.pull-left {
    float: left !important;
}

.pull-right {
    float: right !important;
}


/*========================= KR section - tweaking things. ============================*/
.center-block {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

/* Force textareas to respect the 'rows' attribute and ignore injected heights  - for eDocs like AdmissionsQuestions. */
textarea.form-control {
    height: auto !important;
    /*min-height: calc(1.5em * 18) !important;*/ /* Optional: forces a baseline for 18 rows */
}

.form-control,
.form-select {
    font-size: 12px;
}

/* Put some space between the 'Choose File' button and the 'Upload' button below it. */
.FileUploadClass {
    margin-bottom: 0.75rem;
}


/*========================= AI section below ============================*/


/*Even Better (Clean Layout)*/
.navbar-bottom {
    display: flex;
    align-items: center;
}

/* logo area */
.brand-box {
    flex: 0 0 auto;
}

/* title fills middle */
.pageTitle {
    flex: 1 1 auto;
    margin-left: 15px;
}


/* Push content below fixed header */
.main {
    padding-top: 20px;
}

.top-header .btn {
    white-space: nowrap;
}

.top-header .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; 
}

/* Keep user-signout from wrapping. */
.main-header .top-header .user-signout {
    display: flex !important; /* override core.min.css */
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
