

/* =========================================================
  1. THEME VARIABLES (LIGHT & DARK MODE)
========================================================= */
:root {
    /* COLORS */
    --primary: #0b5cab;
    --primary-dark: #084785;
    --secondary: #ff6b00;
    --success: #1b8f3c;
    --danger: #c62828;
    /* BACKGROUND */
    --bg: #f4f7fb;
    --card: #ffffff;
    /* TEXT */
    --text: #1b1b1b;
    --text-light: #5f6368;
    /* BORDER */
    --border: #d7dce2;
    /* EFFECTS */
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    /* SIDEBAR */
    --sidebar-width: 400px;
}

[data-theme="dark"] {
    --primary: #4d9fff;
    --primary-dark: #2f7edb;
    --secondary: #ff8c42;
    --success: #43c463;
    --danger: #ff5c5c;
    --bg: #0f1720;
    --card: #17212b;
    --text: #f5f7fa;
    --text-light: #b8c2cc;
    --border: #2b3a4b;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   2. GLOBAL RESET & BASE STYLES
========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    font-size: 14px;
}
.app {
    height: 100vh;
    overflow: auto;
}


/* =========================================================
   3. APP LAYOUT
========================================================= */
/*.app {
    display: flex;
    max-height: 100vh;
}

.main {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}*/


#overlay, .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 998;
}

#overlay.active, .overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   4. HEADER SECTION
========================================================= */
/*.header {
    background: var(--card);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.header-top {
    padding: 10px 24px;
    background-color: white;
    box-shadow: var(--shadow);
}

.header-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 24px;
    background: var(--primary);
    box-shadow: var(--shadow);
}

.logos {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-box {
    flex: 1;
    min-width: 180px;
}

.logo-box-right {
    display: flex;
    justify-content: flex-end;
}

.left-logo-box {
    display: flex;
    justify-content: flex-start;
}

.center-logo-box {
    display: flex;
    justify-content: center;
}

.right-logo-box {
    display: flex;
    justify-content: flex-end;
}

.menu-toggle {
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    border: 2px solid #fff;
    border-radius: 100%;

    &:hover {
        background: #fff;
        color: var(--primary);
        cursor: pointer;
        font-size: 20px;
        border: 2px solid #fff;
        border-radius: 100%;
    }
}
*/
/* =========================================================
   5. PORTAL HERO & LOGIN AREA 
========================================================= */
/*.hero-center {
    text-align: center;
}

.portal-title h1 {
    font-size: 22px;*/ /* Thoda bada heading font */
/*margin-bottom: 6px;
    font-weight: 700;
}*/

/*.portal-title p {
    color: var(--text-light);
    font-size: 15px;
}

.warning {
    margin-top: 8px;
    color: var(--danger);
    font-weight: 600;
    font-size: 14px;
}*/

/*.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}*/

/*.login-card {
    width: 600px;*/ /* Screenshot ke chote 560px se badhakar 680px kiya taaki card khula-khula dikhe */
/*background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}*/

/*.login-top {
    background: var(--primary);
    color: #fff;
    padding: 10px 0px;*/ /* Padding badha di taaki login bar solid aur bada lage */
/*display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;*/ /* Login text heading ko thoda bada kiya */
/*}*/

/*.login-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 26px;
}*/



/*.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
}*/

/*.input {
    width: 100%;
    height: 48px; 
    border-radius: 8px; 
    border: 1px solid var(--border);
    background: transparent;
    padding: 0 18px;
    font-size: 16px; 
    color: var(--text);
    outline: none;
    transition: 0.3s ease;
}*/

/*    .input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(11, 92, 171, 0.15);
    }*/

/*.helper {
    margin-top: 8px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
}

.forgot {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.forgot a {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

.submit-btn {
    width: 100%;
    height: 54px;*/ /* Submit button standard bada rakha hai */
/*border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 18px;*/ /* Submit font bada aur crisp kiya */
/*font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}*/

/*.submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.case-sensitive-text {
    color: green;
}*/
/* =========================================================
   6. CAPTCHA COMPONENT
   (Form ke andar validation captcha section)
========================================================= */
.captcha-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-box {
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
}

.refresh-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: var(--success);
    color: #fff;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

    .refresh-btn i {
        font-size: 18px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.4s ease;
    }

    .refresh-btn:hover i {
        transform: rotate(180deg);
    }


/* =========================================================
   7. SIDEBAR COMPONENT (ACCESSIBILITY PANEL CONTAINER)
   (Sliding side drawer jo right side se bahar aata hai)
========================================================= */
#sidebar, .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: #f4f4f4;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #dcdcdc;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    overflow-y: auto !important;
    overflow-x: visible !important;
}

    #sidebar.active, .sidebar.active {
        transform: translateX(0);
    }

    #sidebar.oversized {
        max-width: 550px;
    }

        #sidebar.oversized .acc-card {
            min-height: 170px;
            font-size: 20px;
        }

        #sidebar.oversized .icon {
            font-size: 42px;
        }

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

    .sidebar-logo h2 {
        font-size: 20px;
    }

    .sidebar-logo i {
        font-size: 22px;
        color: var(--bg);
    }

.sidebar-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

    .sidebar-close:hover {
        background: var(--primary-dark);
        transform: rotate(90deg);
    }


/* ==============================
   8. ACCESSIBILITY SIDEBAR
============================== */
.accessibility-panel {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.acc-header {
    background: #003b8f;
    color: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .acc-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
    }

.acc-toggle {
    padding: 18px 20px;
    background: #ececec;
    border-bottom: 1px solid #d8d8d8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acc-toggle span {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.acc-grid {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    overflow-y: auto;
    overflow-x: visible !important;
    position: relative !important;
}

.acc-card {
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 14px;
    min-height: 130px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    text-align: center;
    position: relative !important;
    overflow: visible !important;
}

.acc-card:hover {
        border-color: #003b8f;
        transform: translateY(-2px);
        z-index: 999999 !important;
    }

.acc-card.active {
        background: #e8f0ff;
        border-color: #003b8f;
    }

.acc-card .icon {
        font-size: 30px;
        color: #003b8f;
        line-height: 1;
    }

.acc-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: #f8fafc;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
    width: 100%;
    height: 48px;
}

.acc-btn:hover {
        transform: translateY(-4px);
        background: white;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

.acc-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.acc-label {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
}

.switch {
    position: relative;
    width: 54px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #cfcfcf;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.slider::before {
        content: "";
        position: absolute;
        width: 22px;
        height: 22px;
        left: 3px;
        top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: 0.3s;
    }

.switch input:checked + .slider {
    background: #003b8f;
}

.switch input:checked + .slider::before {
        transform: translateX(26px);
    }

/* LEVEL INDICATOR (STEPS BAR) */
.level-indicator {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

    .level-indicator span {
        width: 18px;
        height: 4px;
        background: #cfcfcf;
        border-radius: 10px;
        transition: 0.3s;
    }

        .level-indicator span.active {
            background: #0b5cab;
        }

/* FOOTER SECTION */
.acc-footer {
    padding: 18px 20px;
    border-top: 1px solid #dcdcdc;
    background: #f4f4f4;
}

.reset-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: #6f8fbd;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

    .reset-btn:hover {
        background: #003b8f;
    }

.acc-grid::-webkit-scrollbar {
    width: 6px;
}

.acc-grid::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 20px;
}


/* =========================================================
   9. ACCESSIBILITY CONTROLS / TRIGGER CLASSES
========================================================= */

/* Test Spacing Accessibility */

body.large-text, .big-text {
    font-size: 120%;
}

body.text-spacing *,
.text-spacing {
    letter-spacing: 2px;
    word-spacing: 5px;
}

body.text-spacing-1 * {
    letter-spacing: 1px;
    word-spacing: 2px;
}

body.text-spacing-2 * {
    letter-spacing: 2px;
    word-spacing: 4px;
}

body.text-spacing-3 * {
    letter-spacing: 3px;
    word-spacing: 6px;
}

/* Line Height Accessibility */

body.line-height-1 * {
    line-height: 1.4;
}

body.line-height-2 * {
    line-height: 1.6;
}

body.line-height-3 * {
    line-height: 1.8;
}

/* Alignment Accessibility */

body.text-align-left * {
    text-align: left;
}

body.text-align-center * {
    text-align: center;
}

body.text-align-right * {
    text-align: right;
}
/*  CONTRAST 1 */

body.high-contrast,
.high-contrast {
    filter: contrast(120%);
}

body.contrast-1 {
    background: #fff;
    color: #000;
}

body.contrast-1 * {
    color: #000;
    box-shadow: none !important;
    background-color: white;
    border-color: #000;
}
    body.contrast-1 a {
        color: #000000 !important;
    }

        body.contrast-1 a:hover {
            color: #333333 !important;
        }

    /*body.contrast-1 .notes-list li,
body.contrast-1 .i-pdf--page tr th b,
body.contrast-1 .i-pdf--page tr td b,
body.contrast-1 #Ip,
body.contrast-1 #Ip b,
body.contrast-1 table tr th,
body.contrast-1 table tr td {
    color: #000000 !important;
}*/

/*body.contrast-1 .card-body {
    border-color: transparent !important;
}*/

/*body.contrast-1 .footer-wrapper-right img,
body.contrast-1 section.footersec img,
body.contrast-1 .footerMob img,
body.contrast-1 img[alt="nicwhitelogo"] {
    filter: brightness(0) !important;
    -webkit-filter: brightness(0) !important;
    background-color: transparent !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}*/
    /*  CONTRAST 2 */

body.contrast-2 .icon img {
    filter: sepia(40%) saturate(130%) brightness(130);
}



/*body.contrast-2 .card-body {
    border-color: transparent !important;
}*/
body.contrast-2 {
    background: #000;
    color: #fff;
}

body.contrast-2 * {
    background: #000;
    color: #fff;
    box-shadow: none !important;
    border-color: #fff;
}

body.contrast-2 a {
    color: #ffffff !important; 
}

body.contrast-2 {
    background: #000;
    color: #fff;
}

body.contrast-2 * {
    background: #000;
    color: #fff;
    box-shadow: none !important;
    border-color: #fff;
}

body.contrast-2 a:hover {
    color: #ffffff !important; 
}

/*  CONTRAST 3 */
body.contrast-3 .Wlccontent h4 {
    color: #ffff00 !important;
}
body.contrast-3 .icon img {
    filter: sepia(100%) saturate(500%) hue-rotate(-20deg) brightness(120%) contrast(110%);
}

body.contrast-3 a {
    color: #ffff00 !important;
}

body.contrast-3 a:hover {
    color: #ffffff !important;
}

body.contrast-3 {
    background: #000;
    color: #ffff00;
}

body.contrast-3 * {
    background: #000;
    color: #ffff00;
    box-shadow: none !important;
    border-color: #ffff00;
}

/*  CONTRAST 4 */

body.contrast-4 {
    filter: invert(100%);
    background: #000;
}
body.contrast-4 .login {
    border:1px solid #333333;
}

body.contrast-3 .level-indicator span.active {
    background: #ffff00!important;
}

/* SATURATION ACCESSIBILITY */

body.saturation-1 {
    filter: saturate(120%);
}

body.saturation-2 {
    filter: saturate(160%);
}

body.saturation-3 {
    filter: saturate(220%);
}

/* FONT FAMILY */

.dyslexia-font {
    font-family: 'Comic Sans MS', sans-serif;
}

/* HIDE IMAGES ACCESSIBILITY */
.hide-images img {
    opacity: 0 !important;
}

/* BIG CURSOR ACCESSIBILITY */

.big-cursor, .big-cursor * {
    cursor: url('../../assets/icons/cursor-large.svg'), auto !important;
}

/* HIGHLIGHT LINKS ACCESSIBILITY */
body.highlight-links a {
    background: yellow !important;
    color: #000 !important;
    padding: 2px 4px;
    border-radius: 4px;
    text-decoration: underline !important;
    font-weight: bold;
}

body.highlight-links a:hover {
    background: orange !important;
}

/* =================================
   10. ADHD READING MASK CONTROL ACCESSIBILITY
================================= */
#adhd-reading-mask {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    clip-path: polygon( 0% 0%, 0% 100%, 100% 100%, 100% 0%, 0% 0%, 0% 45%, 100% 45%, 100% 55%, 0% 55%, 0% 45% );
    transition: clip-path 0.15s linear;
    display: none;
}


/* =========================================================
   11. HIDE TOOLTIPS ACCESSIBILITY 
========================================================= */

.tooltips-enabled [data-tooltip] {
    position: relative !important;
}

.tooltips-enabled [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 999999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltips-enabled [data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

.tooltips-enabled [data-tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
    z-index: 999999999;
    opacity: 0;
    visibility: hidden;
    display: block !important;
    transition: opacity 0.2s ease;
}

.tooltips-enabled [data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* =======================
   12. MEDIA QUERIES 
======================= */


@media (max-width: 1024px) {
    .login-card {
        width: 90%; /* Tablets par pure layout ka 90% space cover karega */
    }
}

@media (max-width: 768px) {
    .header-top, .header-bottom {
        padding-inline: 16px;
    }

    .logos {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .logo-box, .logo-box-right {
        justify-content: center;
        min-width: 100%;
    }

    .accessibility-panel {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 600px) {
    #sidebar {
        max-width: 100%;
    }

    .acc-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
        gap: 10px;
    }

    .acc-card {
        min-height: 110px;
        font-size: 14px;
    }

    .acc-header h3 {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .login-wrapper {
        padding: 2vh 10px; /* Side spacing kam kar di taaki box bada dikhe */
    }

    .login-body {
        padding: 24px 16px; /* Textbox chipkenge nahi aur safe padding bani rahegi */
    }

    .captcha-row {
        flex-direction: column;
        align-items: stretch; /* Captcha image aur refresh button full width fit ho jayenge */
    }

    .captcha-box-wrapper, #capimage {
        width: 100% !important;
        text-align: center;
    }

    .refresh-btn {
        width: 100%; /* Refresh button mobile par easily clickable ho jayega */
        height: 44px;
    }

    .portal-title h1 {
        font-size: 16px;
    }
}

/* LEVEL INDICATOR ACCESSIBILITY */

.level-indicator {
    display: none;
    gap: 4px;
    margin-top: 8px;
    justify-content: center;
}

.level-indicator span {
    width: 18px;
    height: 4px;
    background: #cfcfcf;
    border-radius: 10px;
}

.level-indicator span.active {
    background: #0b5cab;
}

/* Floating Accessibility Button */

.accessibility-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #0056b3;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.accessibility-btn:hover {
    transform: scale(1.05);
}

.footer-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-weight: 600;
}

.main-footer {
    text-align: center;
    padding: 12px;
    background: #f5f5f5;
    font-size: 13px;
    border-top: 1px solid #ccc;
}

/* =================================
   Accessibility Floating Button
================================= */

.accessibility-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 65px;
    height: 65px;
    border: none;
    border-radius: 50%;
    background: #0b5cab;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
}

.accessibility-btn:hover {
    transform: scale(1.05);
}

/* ======================
   MOBILE RESPONSIVE
====================== */

@media (max-width:768px) {

    .wrapper {
        padding: 10px;
        overflow-x: auto;
    }

    .main-table {
        min-width: 900px;
    }

    .photo {
        width: 90px;
        height: 110px;
    }

    .signature {
        width: 90px;
    }

    .center-content h1 {
        font-size: 18px;
    }
}

.notes-list {
    ol {
        padding-left: 20px;
    }
}


.heading-h4 {
    color: #333333;
}

.tbl tr th ol li,
.tbl tr td ol li,
.tbl tr th b,
.tbl tr td b,
.tbl tr th,
.tbl tr td {
    color: #333333;
}

.header-bottom,
.header-bottom .container-fluid {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
}


.header-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    background-color: #0058ab;
}


.home-link {
    display: inline-flex !important;
    align-items: center !important;
    float: left !important;
    color: white;
}

/* Accessibility button */

.menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    float: right !important;
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 8px !important;
    cursor: pointer !important;
}

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 4px !important;
    }
