@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ===================== Root Variables ===================== */
:root {
    --brand-black: #181818;
    --bg-color: #FBFBFB;
    --bg-black: #111111;
    --bg-light-blue: #F9FAFC;
    --border: #c6c6c6;
    --bg-blue: #2A23B0;
    --bg-hover: #2319db;
    --bg-gray-light: #AAAAAA;
    --bg-gray: #575757;
    --bg-gray-2: #f5f6f8;
    --bg-gray-3: #F5F5F5;
    --bg-gray-text: #676767;
}

/* ===================== Global Styles ===================== */
body { background-color: var(--bg-color); font-family: "Poppins", sans-serif; }

.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1920px;
    margin: 0 auto;
}

button { cursor: pointer; border-radius: 8px !important; }

::placeholder { font-size: 14px; color: #919191; }

/* ===================== Typography ===================== */
.label-title { color: var(--bg-black); font-size: 16px; }
.label-time, .label-month, .label-style, .forgot-btn, .f-13, .f-14, .create-account, .btn-timer, .comp-text, .event-support-text, .event-support-text.event-label { font-size: 14px; }
.label-month { font-weight: 500; }
.label-style { color: var(--bg-gray); }
.question { font-size: 16px; }
.qs-count { font-size: 14px; color: var(--bg-black); }
.comp-text { font-size: 16px; }
.event-support-text.highlight { font-weight: 600; font-size: 13px; }
.event-highlights-text { font-size: 12px; font-weight: 500; }
.event-heading { font-weight: 600; }
.f-500 { font-weight: 500; }

/* ===================== Buttons ===================== */
.lang-button { padding: 12px 14px; border-radius: 8px; border: 3px solid var(--brand-black); background-color: #fff; }
.lang-button:hover { background-color: var(--bg-black); color: #fff; }

.ans-button { padding: 12px 20px; border-radius: 8px; border-style: none; font-size: 16px; font-weight: 400; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ans-button.next { background-color: var(--bg-blue); color: #fff; }
.ans-button.next:hover { background-color: var(--bg-hover); }
.ans-button.prev { background-color: #fff; }
.ans-button.prev:hover { background-color: #efefef; }
.btn-brand { background-color: var(--bg-blue); color: var(--bg-light-blue); border-radius: 8px; font-weight: 400 !important; }
.btn-brand:hover { background-color: var(--bg-hover); color: var(--bg-light-blue); }
.forgot-btn { background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.forgot-btn:hover { text-decoration-line: underline; }

/* ===================== Navbar ===================== */
#navbar { position: sticky; top: 0; z-index: 1030; }
.navbar { background-color: #fff !important; position: sticky; top: 0; z-index: 1050; width: 100%; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.navbar.login { background-color: var(--bg-color) !important; }
.nav-link.active { color: #0d6efd !important; font-weight: bold; border-bottom: 2px solid #0d6efd; }
.navbar-brand img { vertical-align: middle; }

/* ===================== Layout & Components ===================== */
.qs-header { padding: 14px 20px; }
.timer { padding: 6px 8px; border-radius: 8px; }
.ans-handle { padding: 14px 16px; }
.radio-style { padding: 20px 8px; border-color: var(--border); border-radius: 12px; margin-bottom: 14px; }
.ans-box { border-color: #e9e9e9 !important; width: 100px; }
.ans-box.active { border-color: var(--bg-gray) !important; background-color: beige !important; }
.ans-box.completed { background-color: #93e6b2 !important; border-color: #e9e9e9 !important; }
.count-section { height: 470px; }
.c-info { height: 24px; width: 24px; border-radius: 4px; }
.c-info.completed { background-color: #93e6b2; border-color: #e9e9e9 !important; }
.c-info.active { border-color: var(--bg-gray) !important; background-color: beige !important; }
.c-info.pending { border-color: var(--border) !important; }
.ans-button.submit { background-color: #198754 !important; color: white; }
.stop-watch { color: white !important; }

/* ===================== Modals ===================== */
#studentDetailModal .modal-content { max-height: 95vh; }
#studentDetailModal .modal-body { overflow-y: auto; max-height: 75vh; }
#answerKeyModal .modal-content { max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; }
#answerKeyModal .modal-body { overflow-y: auto; padding: 1rem 1.5rem; }
#answerKeyModal .modal-body > div:last-child { padding-bottom: 2rem; }

/* ===================== Cards & Events ===================== */
.event-highlights { background-color: #EEF2F5; }
.event-container { position: relative; }
.event-cards { background-color: #fff; }
.assessment-img { height: 100px; background-color: #EEF2F5; }
.event-custom-p { padding: 28px 26px; }
.event-id-badge, .language-badge, .remaining-days-badge { background-color: #fff; color: var(--bg-black); font-weight: 500; }
.event-id-badge { background-color: #f8f575; }

/* ===================== Progress Bars ===================== */
.prog-bar { height: 8px; width: 34px; background: var(--bg-black); }
.progress-bar-custom { width: 24px; height: 8px; background-color: var(--bg-black); border-radius: 4px; }
.progress-bar-custom.incomplete { opacity: 14%; }

/* ===================== Utility & Misc Classes ===================== */
.border, .border-bottom, .border-end { border-color: var(--border) !important; }
.border-r-14 { border-radius: 14px; }
.shadow-2 { box-shadow: 0px 0px 2px 0px rgba(18, 18, 18, 0.12); }
.s-top { box-shadow: 0px -2px 2px 0px rgba(0,0,0,0.06); }
.custom-shadow-top { box-shadow: 0 -6px 5px rgba(0,0,0,0.1); }
.remove-border-r { border-right: 0px !important; }
.text-gray { color: var(--bg-gray); }
.line-style { color: var(--bg-gray-light); }
.icon-bg { background-color: var(--bg-light-blue); border-top-right-radius: 0px; border-bottom-right-radius: 0px; }
.date-style { background-color: #fff !important; border-radius: 8px; }
.info { background-color: var(--bg-gray-2); border-radius: 12px; padding: 24px 20px; }
.page-nations { background-color: var(--bg-black) !important; align-items: center; justify-content: center; }
.page-nations .active-page-nation { color: #fff !important; }

/* ===================== Sizes & Spacing ===================== */
.m-t-64 { margin-top: 64px; }
.m-t-40 { margin-top: 40px; }
.m-t-32 { margin-top: 32px; }
.m-t-20 { margin-top: 20px; }
.h-44 { height: 44px; }
.h-72 { height: 72px; }
.h-74 { height: 74px; }
.p-20 { padding: 20px; }
.padding-s-2-5 { padding-left: 2.5rem !important; }
.rounded-8 { border-radius: 8px; }
.logo-size { height: 48px; }
.completed-icon { height: 64px; }

/* ===================== Filters ===================== */
.filter-section { position: sticky; top: 74px; height: calc(100vh - 74px); overflow-y: auto; }
@media (max-width: 991.98px) { .filter-section { position: static; height: auto; overflow-y: visible; } }

/* ===================== Media Queries ===================== */
@media (min-width: 1920px) {
    .container, .container-lg, .container-xl { max-width: 1920px; }
    .qs-section { height: 500px !important; }
}
@media (min-width: 1400px) and (max-width:1919.98px) {
    .container { max-width: 1515px; }
    .qs-section { height: 450px !important; }
}
@media (max-width: 1399.98px) {
    .qs-section { height: 400px !important; padding: 1rem; }
    .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 991.98px) {
    .qs-section { height: 380px !important; }
    .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 575.98px) {
    .qs-count { font-size: 13px; }
    .question { font-size: 14px; }
    .ans-button { font-size: 13px; padding: 8px 12px; }
    .radio-style { padding: 12px 8px; font-size: 13px; }
}