﻿/* :root {
    --primary-color: #931133;
    --primary-color-solid: #931133;
    --primary-color-rgb: 147, 17, 51;
} */
:root {
    --primary-color: #1e3a8a;
    --primary-color-solid: #1e3a8a;
    --primary-color-rgb: 30, 58, 138;
}

.theme-male {
    --primary-color: #1e3a8a;
    --primary-color-solid: #1e3a8a;
    --primary-color-rgb: 30, 58, 138;
}

.theme-female {
    --primary-color: #6a0dad;
    --primary-color-solid: #6a0dad;
    --primary-color-rgb: 106, 13, 173;
}

.theme-other {
    --primary-color: linear-gradient(135deg, #1e3a8a 0%, #6a0dad 100%);
    --primary-color-solid: #1e3a8a;
    --primary-color-rgb: 30, 58, 138;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--primary-color-solid);
}

#layout-a .main .body {
    background-color: #fff;
}

.form-check-input:checked {
    background-color: var(--primary-color-solid);
    border-color: var(--primary-color-solid);
}

.card-custom {
    background-color: #f0f0f0;
}

.btn.btn-dark {
    background: var(--primary-color) !important;
    border-color: var(--primary-color-solid) !important;
    color: #fff !important;
}

.text-muted {
    color: #000 !important;
}

.text-center {
    text-align: center;
}

.hyper-link {
    color: var(--primary-color);
    text-decoration: none !important;
}

.hyper-link:hover {
    color: var(--primary-color);
    text-decoration: underline !important;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1rem;
    padding-left: 0.5rem;
}

#layout-d .header .nav-link.active {
    color: var(--primary-color);
}

h4 {
    color: var(--primary-color);
}

.h4 {
    color: var(--primary-color);
}

.nav-tabs.tab-card .nav-link {
    color: var(--primary-color);
}

.btn.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color-solid);
}

.btn-next {
    margin-top: 15px;
    margin-bottom: 15px;
}

.custom {
    width: 100% !important;
    height: 32px !important;
}

.question-option-l {
    /* padding-top: 20px;  */
    text-align: left;
}

.question-option-r {
    /* padding-top: 20px;  */
    padding-bottom: 10px;
    text-align: left;
}
@media only screen and (max-width: 992px) {
    .question-option-l {
        text-align: center !important;
    }
    .question-option-r {
        text-align: center !important;
    }
    .card-body .btn-next {
        margin-bottom: 0px;
    }
    .final-report-button {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
    .final-report-button button {
        margin-top: 0px !important;
    }
}
@media only screen and (max-width: 600px) {
    .cutom-margin {
        margin-top: 20px;
    }

    .custom-margin-button {
        margin-bottom: 20px;
    }

    div.dataTables_wrapper div.dataTables_filter label {
        float: left !important;
        margin-top: 5px !important;
    }

    div.dataTables_wrapper div.dataTables_length label {
        float: left !important;
        margin-top: 5px !important;
    }

    .custom {
        width: 30px !important;
    }

    .final-report-button {
        flex-direction: column;
    }
}

label {
    font-weight: 600;
}

.print_invoice .meta {
    width: 350px !important;
}

.assessment-ex-question {
    height: 230px;
    border: 2px solid #ccc;
    margin: 0;
    border-radius: 8px;
    -webkit-box-shadow: 5px 5px 5px 0px rgb(0 0 0 / 75%);
    -moz-box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 5px 5px 5px 0px rgb(0 0 0 / 75%);
}

.page-item.active .page-link {
    background: var(--primary-color) !important;
    border-color: var(--primary-color-solid) !important;
}

.page-item.previous .page-item.disabled .page-link:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color-solid) !important;
    color: #fff !important;
}

.page-item.disabled .page-link:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color-solid) !important;
    color: #fff !important;
}

.page-item.disabled .page-link {
    color: #000;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.justify-content-end {
    justify-content: center !important;
}

.page-item .page-link:hover {
    background-color: #000 !important;
}

.agree-cognofile img {
    max-height: 150px;
    object-fit: contain;
    width: 100%;
    margin-bottom: 20px;
}

.login-logo {
    width: 150px;
}

/* Ensure the loader overlay is always centered and full-screen */
.vld-overlay {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    align-items: center;
    display: none;
    justify-content: center;
    overflow: hidden;
    z-index: 9999;
}

.vld-overlay.is-active {
    display: flex;
}

.vld-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Initial Loader fallback styles */
.initial-loader-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif !important;
}

.initial-loader-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
}

.initial-loader-spinner {
    width: 55px !important;
    height: 55px !important;
    border: 4px solid rgba(30, 58, 138, 0.1) !important;
    border-top: 4px solid #1e3a8a !important;
    border-radius: 50% !important;
    animation: initial-spin 1s linear infinite !important;
    margin-bottom: 24px !important;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.05) !important;
}

.initial-loader-text {
    color: #1e3a8a !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    animation: initial-pulse 1.6s ease-in-out infinite !important;
}

@keyframes initial-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes initial-pulse {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}