html {
    font-size: .8em;
}

@media (min-width: 768px) {
    html {
        font-size: .8em;
    }
}

.container{
    width:65%;
}

.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 {
    background: #f2f2f2;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.top-header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.brand-logo {
    width: 20em;
    height:auto;
}

.nav-red {
    background-color: #b3202a;
}

    .nav-red a {
        color: #fff !important;
        padding:inherit;
        padding-left: .8em;
    }

        .nav-red a:hover {
            color: white;
            padding-right: .8em;
            text-decoration:underline;
        }

.navbar.nav-compact {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    min-height: 40px; /* adjust as needed */
}

.content-wrapper {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

.sidebar h6 {
    font-weight: bold;
    margin-top: 20px;
}

.sidebar a {
    display: block;
    padding: 4px 0;
    color: #b3202a;
    text-decoration: underline;
}

    .sidebar a:hover {
        color: #7EA847;
        text-decoration: none
    }

.sidebar a {
    display: block;
    padding: 4px 0;
    color: #b3202a;
    text-decoration: underline;
}

a {
    color: #b3202a;
    text-decoration: underline;
}

    a:hover {
        color: #7EA847;
        text-decoration: none
    }

.form-check-input:checked {
    background-color: #b3202a;
    border-color: #b3202a;
}

.form-check-input:focus {
    border-color: #b3202a;
    box-shadow: 0 0 0 0.25rem rgba(179, 32, 42, 0.25);
}

.form-check-input:hover {
    border-color: #b3202a;
}

.btn-cidb-submit {
    background-color: #b3202a;
    font-weight: bold;
    border-color: #b3202a;
    border-radius: 5px;
    color: #fff;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .btn-cidb-submit:hover {
        background-color: #9d1c24; /* slightly darker */
        border-color: #9d1c24;
        color: #fff;
    }

    .btn-cidb-submit:focus,
    .btn-cidb-submit:active {
        background-color: #8f1a22;
        border-color: #8f1a22;
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(179, 32, 42, 0.25);
    }

.btn-cidb-submit-outline {
    background-color: transparent;
    font-weight: bold;
    border: 1px solid #b3202a;
    border-radius: 5px;
    color: #b3202a;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, color 0.15s ease-in-out;
}
    .btn-cidb-submit-outline:hover {
        background-color: #b3202a;
        border-color: #b3202a;
        color: #fff;
    }
    .btn-cidb-submit-outline:focus,
    .btn-cidb-submit-outline:active {
        background-color: #8f1a22;
        border-color: #8f1a22;
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(179, 32, 42, 0.25);
    }

.btn-secondary {
    background-color: #e9ecef;
    border-color: #e9ecef;
    border-radius: 5px;
    color: #495057;
}
.btn-secondary {
    font-weight: bold;
    background-color: #e9ecef;
    border-color: #e9ecef;
    color: #495057;
}
    .btn-secondary:hover {
        background-color: #dee2e6;
        border-color: #dee2e6;
        color: #495057;
    }
    .btn-secondary:active,
    .btn-secondary:focus {
        background-color: #ced4da !important;
        border-color: #ced4da !important;
        box-shadow: 0 0 0 0.25rem rgba(206, 212, 218, 0.4);
    }

.form-control:active,
.form-select:focus {
    border-color: #f4c3c6;
    background-color: #fff5f6;
    box-shadow: 0 0 0 0.25rem rgba(244, 195, 198, 0.35);
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    border-color: #f4c3c6 !important;
    -webkit-text-fill-color: #212529 !important;
    -webkit-box-shadow: 0 0 0px 1000px #fff5f6 inset !important;
    box-shadow: 0 0 0px 1000px #fff5f6 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.notes-box {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
}

.note-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.note-number {
    color: #0d6efd;
    font-weight: bold;
    min-width: 20px;
}

.notes-line {
    display: inline; /* 🔥 forces single inline flow */
    white-space: nowrap; /* prevents breaking */
}

.note-text {
    flex: 1;
    min-width: 0;
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #666;
}

#globalLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ddd;
    border-top: 6px solid #b3202a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.pagination .page-item.active .page-link {
    background-color: #b3202a !important;
    border-color: #b3202a !important;
    color: #fff !important;
}

/* default state */
.pagination .page-link {
    color: #b3202a !important;
}

    /* hover state (IMPORTANT: target page-link directly) */
    .pagination .page-link:hover {
        background-color: #b3202a !important;
        border-color: #b3202a !important;
        color: #fff !important;
    }

/* prevent Bootstrap override on active hover */
.pagination .page-item.active .page-link:hover {
    background-color: #b3202a !important;
    border-color: #b3202a !important;
    color: #fff !important;
}

/* Fullscreen overlay */
#globalLoader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Blurred transparent background */
.loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Center content */
.loader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 30px 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* Spinner */
.modern-spinner {
    position: relative;
    width: 70px;
    height: 70px;
}

    .modern-spinner span {
        position: absolute;
        inset: 0;
        border: 4px solid transparent;
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: spin 1.2s linear infinite;
    }

        .modern-spinner span:nth-child(1) {
            width: 70px;
            height: 70px;
            opacity: 1;
        }

        .modern-spinner span:nth-child(2) {
            width: 50px;
            height: 50px;
            top: 10px;
            left: 10px;
            animation-direction: reverse;
            animation-duration: 0.9s;
            opacity: 0.7;
        }

        .modern-spinner span:nth-child(3) {
            width: 30px;
            height: 30px;
            top: 20px;
            left: 20px;
            animation-duration: 0.7s;
            opacity: 0.5;
        }

/* Loading text */
.loader-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

.custom-header th {
    background-color: #AAAADD !important;
    color: #0000FF !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}