html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    background-color: #ffffff;
    flex: 1 0 auto;
}

footer {
    background-color: #E8EDFF;
    flex-shrink: 0;
}

.navText {
    font-size: 16px !important;
}

.card-overlay {
    position: absolute;
    inset: 0; /* fills entire card */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5); /* semi-transparent overlay */
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit; /* follow card’s rounded corners */
}

.card:hover .card-overlay {
    opacity: 1;
}

.card:hover img {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.carousel .card {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal centering */
    justify-content: center; /* vertical centering */
    text-align: center;
}

.resourceLinks {
    color: #001849 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.pageTitle {
    color: #001849;
    font-family: 'Zilla Slab', serif;
}

.btnDarkBlue {
    background: #001849 !important;
    color: white !important;
}

/* Search Results styling */
.topbar {
    background-color: #E9EDF4;
}

thead {
    background-color: #0b64a0;
    color: white;
}

th, td {
    font-size: 13px;
    padding: 0.8rem !important;
}

select, input {
    background-color: #f0f3ff !important;
}

.tableDiv {
    background-color: #fbfcfd;
}

.searchAndResultsDiv {
    background-color: #f8f9fa;
}

.empAgencyTabs {
    background-color: #c8d4e4;
    border-bottom: none;
    padding-left: 0.5rem;
}

.empAgencyTabs .nav-link {
    border: none;
    background: transparent;
    color: #000;
    font-weight: normal;
    font-size: 12px;
    border-radius: 0;
    padding: 0.5rem 1rem;
    margin-right: 0.25rem;
}

.empAgencyTabs .nav-link:hover {
    background-color: #b0bfd2;
    color: #000;
}

.empAgencyTabs .nav-link.active {
    background-color: #e9edf3;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    font-weight: bold;
    color: #000;
    box-shadow: inset 0 -4px 4px -4px rgba(0, 0, 0, 0.4);
}

.empAgencyTabs .nav-link i {
    vertical-align: middle;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 1rem;
    background-color: white;
}

#tblEmpSal, #tblEmpComp {
    table-layout: fixed; /* Ensures the assigned column widths are respected */
    width: 100%;
}

#tblEmpSal td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* Ensures text wraps inside the cell */
}

#tblEmpComp td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* Ensures text wraps inside the cell */
}

.tblSectionName {
    font: normal normal 19px Arial, Helvetica, 'Courier New', 'Times New Roman';
    color: #0b64a0;
}

/* Load styling */
#loadingOverlay {
    position: fixed; /* Keeps it centered on the screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensures it appears above everything */
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.loading-spinner {
    font-size: xx-large;
    text-align: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}