body {
    background-image: url("../img/Tanzania_Bkg.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-color: #f5f5f5;
    font-size: 14px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.form-check-input {
    scale: 0.5;
}

input {
    width: 100%;
    padding: 10px 10px;
    margin: 4px 0;
    box-sizing: border-box;
    border: 0px;
    outline: 0px;
    font-size: 14px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    /* border-bottom: 2px solid #204d59; */
}

.b-example-divider {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.1);
    border: solid rgba(0, 0, 0, 0.15);
    border-width: 1px 0;
    box-shadow:
        inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
        inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.bi {
    vertical-align: -0.125em;
    pointer-events: none;
    fill: currentColor;
}

.dropdown-toggle {
    outline: 0;
}

.nav-flush .nav-link {
    border-radius: 0;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.65);
    background-color: transparent;
    border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(0, 0, 0, 0.85);
    background-color: #d2f4ea;
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform 0.35s ease;
    transform-origin: 0.5em 50%;
}

.btn-toggle[aria-expanded="true"] {
    color: rgba(0, 0, 0, 0.85);
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: 0.1875rem 0.5rem;
    margin-top: 0.125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: #f5f5f5;
}

.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 14px;
    transition: 0.4s;
}

.accordion-body {
    padding: 0px;
    width: 100%;
}

.accordion-button {
    font-size: 14px;
}

.active,
.accordion:hover {
    background-color: #036d94;
}
.widget {
    display: block;
    border-radius: 5px;
    padding: 15px 20px;
    margin: 10px 0;
    box-shadow:
        0 4px 20px 0 rgba(0, 0, 0, 0.14),
        0 7px 10px -5px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease; /* smooth hover animation */
}

/* Titles inside widgets */
.widget h2,
.widget h3 {
    margin-top: 5px;
    margin-bottom: 0;
}

/* Optional: smaller style variant */
.widget.style1 h2 {
    font-size: 30px;
}

/* Hover effect */
.widget:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px) scale(1.03);
    cursor: pointer;
}

.widget.tableQ1:hover {
    box-shadow: 0 0 25px #de3163;
}
.widget.tableQ2:hover {
    box-shadow: 0 0 25px #088f8f;
}
.widget.tableQ3:hover {
    box-shadow: 0 0 25px #d37506;
}
.widget.tableQ4:hover {
    box-shadow: 0 0 25px #008000;
}
.widget.tableQ5:hover {
    box-shadow: 0 0 25px #6abbbb;
}

.toggle-sidebar-btn {
    font-size: 25px;
    padding-left: 5px;
    cursor: pointer;
    color: #32a1ce;
}

.banner-img img {
    max-width: 100%;
    float: right;
}
.card-header {
    background-color: #036d94;
    color: #fff;
}
@media (max-width: 991.98px) {
    #menu {
        position: fixed;
        width: 250px;
        z-index: 1055;
    }
}
/* Quarter themes (apply to the .table element together with .tableQ*) */
.table.tableQ1 {
    --bs-table-bg: #de3163 !important;
    --bs-table-color: #fff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.25);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.08);
    --bs-table-striped-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.18);
    --bs-table-hover-color: #fff;
}

.table.tableQ2 {
    --bs-table-bg: #088f8f !important;
    --bs-table-color: #fff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.25);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.08);
    --bs-table-striped-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.18);
    --bs-table-hover-color: #fff;
}

.table.tableQ3 {
    --bs-table-bg: #d37506 !important;
    --bs-table-color: #fff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.25);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.08);
    --bs-table-striped-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.18);
    --bs-table-hover-color: #fff;
}

.table.tableQ4 {
    --bs-table-bg: #008000 !important;
    --bs-table-color: #fff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.25);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.08);
    --bs-table-striped-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.18);
    --bs-table-hover-color: #fff;
}

.table.tableQ5 {
    --bs-table-bg: #6abbbb !important;
    --bs-table-color: #fff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.25);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.08);
    --bs-table-striped-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.18);
    --bs-table-hover-color: #fff;
}

/* Smooth hover motion (optional) */
.table.tableQ1 tbody tr,
.table.tableQ2 tbody tr,
.table.tableQ3 tbody tr,
.table.tableQ4 tbody tr,
.table.tableQ5 tbody tr {
    transition:
        background-color 0.2s ease,
        transform 0.06s ease;
}

.table.tableQ1 tbody tr:hover,
.table.tableQ2 tbody tr:hover,
.table.tableQ3 tbody tr:hover,
.table.tableQ4 tbody tr:hover,
.table.tableQ5 tbody tr:hover {
    transform: translateX(2px);
}
.accordion-button::after {
    display: none !important;
}
.rotate-icon {
    transition: transform 0.3s ease;
    transform: rotate(180deg);
    /* left */
}
.accordion-button:not(.collapsed) .rotate-icon {
    transform: rotate(90deg);
    /* down */
}
.dropdown-item:hover {
    background-color: #f1f3f5;
    transition: 0.18s ease-in-out;
}
#loading .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    opacity: 0.75;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading.fade-out .loader-overlay {
    opacity: 0;
}

/*!
    * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
    */
.la-ball-beat,
.la-ball-beat > div {
    position: relative;
    box-sizing: border-box;
}
.la-ball-beat {
    display: block;
    font-size: 0;
    color: #fff;
}
.la-ball-beat.la-dark {
    color: #333;
}
.la-ball-beat > div {
    display: inline-block;
    float: none;
    background-color: currentColor;
    border: 0 solid currentColor;
}
.la-ball-beat {
    width: 54px;
    height: 18px;
}
.la-ball-beat > div {
    width: 10px;
    height: 10px;
    margin: 4px;
    border-radius: 100%;
    animation: ball-beat 0.7s -0.15s infinite linear;
}
.la-ball-beat > div:nth-child(2n-1) {
    animation-delay: -0.5s;
}
.la-ball-beat.la-sm {
    width: 26px;
    height: 8px;
}
.la-ball-beat.la-sm > div {
    width: 4px;
    height: 4px;
    margin: 2px;
}
.la-ball-beat.la-2x {
    width: 108px;
    height: 36px;
}
.la-ball-beat.la-2x > div {
    width: 20px;
    height: 20px;
    margin: 8px;
}
.la-ball-beat.la-3x {
    width: 162px;
    height: 54px;
}
.la-ball-beat.la-3x > div {
    width: 40px;
    height: 40px;
    margin: 5px;
}

/* Animation */
@keyframes ball-beat {
    50% {
        opacity: 0.2;
        transform: scale(0.75);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 🔹 FULL PAGE OVERLAY STYLES (missing in your snippet) */
#loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading .loader-overlay {
    position: absolute;
    inset: 0;
    background-color: #f5f5f5;
    opacity: 0.75;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fade-out effect */
#loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.dropdown {
    position: relative !important;
    z-index: 20000 !important;
}
.table-responsive {
    overflow: visible !important;
}

/* Apply dropstart behavior to all dropdowns in tables
   (or target a specific area using a custom class if needed) */
.dropdown {
    position: relative;
}

.dropdown .dropdown-menu {
    top: -100% !important; /* center vertically on button */
    left: auto !important; /* disable default */
    right: 100% !important; /* move menu to left of the button */
    transform: translateY(-50%); /* center */
    margin-right: 8px !important; /* spacing */
    z-index: 9999;
}

/* Make Select2 look like Bootstrap 5 */
.select2-container .select2-selection--single {
    height: 38px !important;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-selection__rendered {
    line-height: 28px !important;
}

.select2-selection__arrow {
    height: 36px !important;
    right: 8px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: #6c757d transparent transparent transparent !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Focus style to match Bootstrap */
.select2-container--default.select2-container--focus
    .select2-selection--single {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Dropdown */
.select2-dropdown {
    border-radius: 0.375rem !important;
    border-color: #ced4da !important;
}
.university-name {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Fully transparent card */
.card.transparent {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.btn {
    position: relative;
    animation: pulseBlue 1.5s infinite;
}

@keyframes pulseBlue {
    0% {
        box-shadow: 0 0 0 0 rgba(3, 109, 148, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Override Bootstrap btn-outline-primary */
.btn-outline-primary {
    --bs-btn-color: #036d94;
    --bs-btn-border-color: #036d94;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #036d94;
    --bs-btn-hover-border-color: #036d94;

    --bs-btn-focus-shadow-rgb: 3, 109, 148;

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #036d94;
    --bs-btn-active-border-color: #036d94;
}
