/*
 * Sadid Premium UI v3
 * Final visual layer for public, authentication and dashboard surfaces.
 */

:root {
    --sp-ink: #10213f;
    --sp-ink-soft: #3d4f6f;
    --sp-muted: #71809b;
    --sp-blue: #2563eb;
    --sp-blue-deep: #1d4ed8;
    --sp-sky: #0ea5e9;
    --sp-blue-soft: #edf5ff;
    --sp-canvas: #f3f7fc;
    --sp-surface: #ffffff;
    --sp-surface-soft: #f8fbff;
    --sp-line: #dfe8f4;
    --sp-line-strong: #cbd9ea;
    --sp-radius-sm: 12px;
    --sp-radius-md: 16px;
    --sp-radius-lg: 22px;
    --sp-radius-xl: 28px;
    --sp-shadow-xs: 0 1px 2px rgba(16, 33, 63, 0.04);
    --sp-shadow-sm: 0 12px 34px rgba(16, 33, 63, 0.07);
    --sp-shadow-md: 0 24px 70px rgba(16, 33, 63, 0.11);
    --sp-focus: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

body.sadid-ui[data-ui-system="sadid-v3"] {
    color: var(--sp-ink);
    font-family: IRANYekanX, sans-serif !important;
    font-size: 16px;
    line-height: 1.8;
    background: var(--sp-canvas);
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(button, input, select, textarea, .btn, .dropdown-menu, .select2-container) {
    font-family: inherit !important;
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(h1, h2, h3, h4, h5, h6) {
    color: var(--sp-ink);
    letter-spacing: -0.018em;
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(.text-muted, .form-text) {
    color: var(--sp-muted) !important;
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(a, button, .btn, .card, .form-control, .form-select, .nav-link) {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 3px;
}

/* Authentication */
body.auth-surface[data-ui-system="sadid-v3"] {
    background:
        radial-gradient(circle at 88% 5%, rgba(37, 99, 235, 0.1), transparent 29rem),
        radial-gradient(circle at 8% 82%, rgba(14, 165, 233, 0.08), transparent 30rem),
        linear-gradient(150deg, #eef5ff 0%, #fbfdff 46%, #f4f8fd 100%);
}

body.auth-surface[data-ui-system="sadid-v3"]::before {
    opacity: 0.33;
    background-size: 44px 44px;
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-global-nav {
    top: 16px;
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-global-nav__inner {
    min-height: 68px;
    padding: 9px 12px 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 50px rgba(26, 54, 93, 0.09);
    backdrop-filter: blur(22px) saturate(140%);
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-brand-mark {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-brand-copy strong {
    font-size: 1.08rem;
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-brand-copy small {
    color: var(--sp-muted);
    font-size: 0.76rem;
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-route-switcher {
    gap: 3px;
    padding: 5px;
    border: 1px solid var(--sp-line);
    border-radius: 15px;
    background: #f3f7fc;
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-route-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding-inline: 16px;
    border-radius: 11px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 800;
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-route-link.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--sp-blue), var(--sp-blue-deep));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-route-link.is-active:is(:hover, :focus-visible) {
    color: #fff !important;
}

body.auth-surface[data-ui-system="sadid-v3"] .auth-home-link {
    min-height: 42px;
    padding-inline: 16px;
    border-color: var(--sp-line);
    border-radius: 13px;
    color: var(--sp-ink-soft);
    font-size: 0.84rem;
    background: #fff;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.login-page-wrapper, .register-page-wrapper, .auth-page-wrapper, #main > .min-vh-100) {
    padding-top: 118px !important;
    padding-bottom: 54px !important;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.login-container, .register-container) {
    width: min(1160px, calc(100% - 40px));
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.login-card-modern, .register-card-modern, .auth-card, #main > .min-vh-100 .card) {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.98) !important;
    border-radius: var(--sp-radius-xl) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: var(--sp-shadow-md) !important;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.login-right-panel, .register-right-panel, .auth-form-panel) {
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.055), transparent 21rem),
        #fff;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.login-form-wrapper, .register-form-wrapper) {
    padding: clamp(30px, 4.5vw, 56px);
}

body.auth-surface[data-ui-system="sadid-v3"] .corrector-page-intro {
    max-width: 720px;
    margin: 4px auto 26px;
}

body.auth-surface[data-ui-system="sadid-v3"] .corrector-page-intro__eyebrow {
    min-height: 36px;
    padding: 6px 13px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    color: var(--sp-blue);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    box-shadow: var(--sp-shadow-xs);
}

body.auth-surface[data-ui-system="sadid-v3"] .corrector-page-intro h1 {
    margin-top: 13px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 950;
}

body.auth-surface[data-ui-system="sadid-v3"] .corrector-page-intro p {
    margin-top: 8px;
    color: var(--sp-muted);
    font-size: 0.98rem;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.form-title, .login-title) {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 950;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.form-subtitle, .login-subtitle) {
    margin-top: 8px;
    color: var(--sp-muted);
    font-size: 0.92rem;
}

body.auth-surface[data-ui-system="sadid-v3"] .form-stepper {
    margin-block: 30px 32px;
    padding: 16px 18px;
    border: 1px solid var(--sp-line);
    border-radius: 18px;
    background: var(--sp-surface-soft);
}

body.auth-surface[data-ui-system="sadid-v3"] .stepper-number {
    width: 34px;
    height: 34px;
    border: 2px solid #d7e3f2;
    color: #71809b;
    background: #fff;
    box-shadow: 0 4px 10px rgba(16, 33, 63, 0.05);
}

body.auth-surface[data-ui-system="sadid-v3"] .stepper-item.active .stepper-number,
body.auth-surface[data-ui-system="sadid-v3"] .stepper-item.completed .stepper-number {
    border-color: var(--sp-blue);
    color: #fff;
    background: var(--sp-blue);
    box-shadow: 0 7px 16px rgba(37, 99, 235, 0.22);
}

body.auth-surface[data-ui-system="sadid-v3"] .stepper-label {
    margin-top: 7px;
    color: var(--sp-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

body.auth-surface[data-ui-system="sadid-v3"] .stepper-item.active .stepper-label {
    color: var(--sp-blue);
}

body.auth-surface[data-ui-system="sadid-v3"] .stepper-line {
    height: 2px;
    background: #dfe8f4;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.form-section-modern, .password-section, .captcha-display-box) {
    border: 1px solid var(--sp-line);
    border-radius: 18px;
    background: #fff;
}

body.auth-surface[data-ui-system="sadid-v3"] .form-section-modern {
    padding: clamp(19px, 3vw, 28px);
    box-shadow: var(--sp-shadow-xs);
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.form-label, .form-label-modern) {
    margin-bottom: 8px;
    color: var(--sp-ink-soft);
    font-size: 0.87rem;
    font-weight: 850;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.form-control, .form-select, .form-input-modern, .select2-selection) {
    min-height: 50px !important;
    border: 1px solid var(--sp-line-strong) !important;
    border-radius: 14px !important;
    color: var(--sp-ink) !important;
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 33, 63, 0.025) !important;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.form-control, .form-select, .form-input-modern):hover {
    border-color: #9db7d7 !important;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.form-control, .form-select, .form-input-modern):focus,
body.auth-surface[data-ui-system="sadid-v3"] .select2-container--open .select2-selection {
    border-color: var(--sp-blue) !important;
    box-shadow: var(--sp-focus) !important;
}

body.auth-surface[data-ui-system="sadid-v3"] .step-navigation {
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sp-line);
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.step-btn, .login-submit-btn, .btn-primary) {
    min-height: 48px;
    border-radius: 14px !important;
    font-size: 0.9rem;
    font-weight: 850;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.step-btn-next, .step-btn-submit, .login-submit-btn, .btn-primary) {
    border-color: var(--sp-blue) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6, var(--sp-blue-deep)) !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2) !important;
}

body.auth-surface[data-ui-system="sadid-v3"] :is(.step-btn-next, .step-btn-submit, .login-submit-btn, .btn-primary):hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25) !important;
}

body.auth-surface[data-ui-system="sadid-v3"] .register-login-link {
    margin-top: 26px;
    padding-top: 21px;
    border-top: 1px solid var(--sp-line);
}

/* Dashboard shell */
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] {
    background:
        radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.065), transparent 26rem),
        var(--sp-canvas);
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] #main-wrapper {
    gap: 18px;
    padding: 14px;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.16), transparent 17rem),
        linear-gradient(180deg, #12254a 0%, #0b1831 100%);
    box-shadow: 0 22px 58px rgba(10, 24, 49, 0.2);
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .sidebar-nav ul .sidebar-item > .sidebar-link {
    min-height: 46px;
    margin-block: 2px;
    border-radius: 13px;
    color: rgba(226, 237, 255, 0.74);
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .sidebar-nav ul .sidebar-item > .sidebar-link.active {
    color: #fff;
    background: linear-gradient(120deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 24px rgba(7, 25, 52, 0.3);
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .page-wrapper {
    min-width: 0;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .body-wrapper > .container-fluid {
    max-width: 1640px;
    padding-inline: 0;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .app-topbar {
    min-height: 70px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.91) !important;
    box-shadow: var(--sp-shadow-sm);
    backdrop-filter: blur(18px);
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .app-page-hero {
    min-height: 118px;
    margin-bottom: 20px;
    padding: clamp(20px, 2.6vw, 30px);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius-lg);
    background:
        radial-gradient(circle at 95% 0%, rgba(37, 99, 235, 0.09), transparent 19rem),
        linear-gradient(135deg, #fff, #f7faff) !important;
    box-shadow: var(--sp-shadow-sm);
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .app-page-heading__icon {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 18px;
    color: var(--sp-blue);
    background: var(--sp-blue-soft);
    box-shadow: none;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .app-page-hero h1 {
    margin-block: 4px 5px;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 950;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .app-page-hero p {
    color: var(--sp-muted);
    font-size: 0.88rem;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] #admin-content-area .card {
    overflow: hidden;
    border: 1px solid var(--sp-line) !important;
    border-radius: 19px !important;
    background: #fff !important;
    box-shadow: var(--sp-shadow-sm) !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] #admin-content-area .card:hover {
    border-color: #c6d7eb !important;
    box-shadow: 0 17px 42px rgba(16, 33, 63, 0.095) !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] #admin-content-area .card-header {
    min-height: 62px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sp-line);
    color: var(--sp-ink);
    background: #f9fbfe !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] #admin-content-area .card-body {
    padding: clamp(18px, 2.3vw, 26px);
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(.form-control, .form-select, .select2-selection) {
    min-height: 46px;
    border: 1px solid var(--sp-line-strong) !important;
    border-radius: 13px !important;
    color: var(--sp-ink);
    background: #fff !important;
    box-shadow: var(--sp-shadow-xs);
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(.form-control, .form-select):focus,
body.sadid-ui[data-ui-system="sadid-v3"] .select2-container--open .select2-selection {
    border-color: var(--sp-blue) !important;
    box-shadow: var(--sp-focus) !important;
}

body.sadid-ui[data-ui-system="sadid-v3"] .btn {
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 12px !important;
    font-size: 0.86rem;
    font-weight: 850;
}

body.sadid-ui[data-ui-system="sadid-v3"] .btn-primary {
    border-color: var(--sp-blue) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6, var(--sp-blue-deep)) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

body.sadid-ui[data-ui-system="sadid-v3"] .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(37, 99, 235, 0.24);
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(.table-responsive, .app-table-scroll) {
    overflow: auto;
    border: 1px solid var(--sp-line);
    border-radius: 16px;
    background: #fff;
}

body.sadid-ui[data-ui-system="sadid-v3"] table.table > thead > tr > th {
    padding: 13px 15px;
    border-bottom: 1px solid var(--sp-line-strong);
    color: #65748e;
    background: #f7faff !important;
    font-size: 0.8rem;
}

body.sadid-ui[data-ui-system="sadid-v3"] table.table > tbody > tr > td {
    padding: 14px 15px;
    border-color: #e8eef6;
    color: var(--sp-ink-soft);
    background: #fff !important;
    font-size: 0.84rem;
}

body.sadid-ui[data-ui-system="sadid-v3"] table.table > tbody > tr:hover > td {
    background: #f5f9ff !important;
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(.nav-tabs, .app-tabs) {
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--sp-line);
    border-radius: 15px;
    background: #f5f8fc;
}

body.sadid-ui[data-ui-system="sadid-v3"] .nav-tabs .nav-link {
    min-height: 40px;
    padding: 8px 14px;
    border: 0 !important;
    border-radius: 10px;
    color: var(--sp-muted);
    font-size: 0.83rem;
    font-weight: 850;
}

body.sadid-ui[data-ui-system="sadid-v3"] .nav-tabs .nav-link.active {
    color: var(--sp-blue);
    background: #fff;
    box-shadow: 0 4px 12px rgba(16, 33, 63, 0.07);
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(.modal-content, .dropdown-menu, .select2-dropdown) {
    border: 1px solid var(--sp-line) !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: var(--sp-shadow-md);
}

/* Active workflow normalization */
body.sadid-ui[data-ui-system="sadid-v3"] :is(.corrector-hero, .grading-header, .upload-header, .workflow-header),
body.sadid-ui[data-ui-system="sadid-v3"] .mobile-header {
    border-color: rgba(37, 99, 235, 0.14) !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 13px 30px rgba(37, 99, 235, 0.2) !important;
}

body.sadid-ui[data-ui-system="sadid-v3"] .ead-btn-generate {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 8px 19px rgba(37, 99, 235, 0.2) !important;
}

@media (max-width: 1199.98px) {
    body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] #main-wrapper {
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 767.98px) {
    body.auth-surface[data-ui-system="sadid-v3"] .auth-global-nav {
        position: relative;
        top: 0;
        padding: 10px 12px 0;
    }

    body.auth-surface[data-ui-system="sadid-v3"] .auth-global-nav__inner {
        grid-template-columns: 1fr auto;
        min-height: 60px;
        border-radius: 18px;
    }

    body.auth-surface[data-ui-system="sadid-v3"] .auth-route-switcher {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 8px;
        overflow-x: auto;
    }

    body.auth-surface[data-ui-system="sadid-v3"] .auth-route-link {
        flex: 1 0 auto;
        justify-content: center;
        padding-inline: 12px;
    }

    body.auth-surface[data-ui-system="sadid-v3"] :is(.login-page-wrapper, .register-page-wrapper, .auth-page-wrapper, #main > .min-vh-100) {
        padding-top: 24px !important;
        padding-bottom: 28px !important;
    }

    body.auth-surface[data-ui-system="sadid-v3"] :is(.login-container, .register-container) {
        width: min(100% - 24px, 1160px);
    }

    body.auth-surface[data-ui-system="sadid-v3"] :is(.login-card-modern, .register-card-modern, .auth-card, #main > .min-vh-100 .card) {
        border-radius: 21px !important;
    }

    body.auth-surface[data-ui-system="sadid-v3"] :is(.login-form-wrapper, .register-form-wrapper) {
        padding: 24px 18px;
    }

    body.auth-surface[data-ui-system="sadid-v3"] .form-stepper {
        padding: 13px 10px;
        overflow-x: auto;
    }

    body.auth-surface[data-ui-system="sadid-v3"] .stepper-label {
        max-width: 70px;
        font-size: 0.68rem;
    }

    body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] #main-wrapper {
        padding: 8px;
    }

    body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .app-topbar,
    body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .app-page-hero,
    body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] #admin-content-area .card {
        border-radius: 17px !important;
    }

    body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .app-page-hero {
        min-height: auto;
        padding: 18px;
    }

    body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] #admin-content-area .card-body {
        padding: 16px;
    }

    body.sadid-ui[data-ui-system="sadid-v3"] .btn {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sadid-ui[data-ui-system="sadid-v3"] *,
    body.sadid-ui[data-ui-system="sadid-v3"] *::before,
    body.sadid-ui[data-ui-system="sadid-v3"] *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Keep navigation and light actions readable in every interaction state. */
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav .sidebar-link.active,
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav .sidebar-link.active :is(.hide-menu, .aside-icon, iconify-icon) {
    color: #fff !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav ul .sidebar-item > .sidebar-link.active {
    background: linear-gradient(120deg, #2563eb, #1e40af) !important;
    border-color: rgba(191, 219, 254, 0.42) !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav ul .sidebar-item > .sidebar-link.active:is(:hover, :focus-visible),
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav ul .sidebar-item > .sidebar-link.is-current:is(:hover, :focus-visible) {
    color: #fff !important;
    background: linear-gradient(120deg, #1d4ed8, #1e3a8a) !important;
    border-color: #bfdbfe !important;
    box-shadow:
        0 0 0 3px rgba(191, 219, 254, 0.2),
        0 12px 26px rgba(7, 25, 52, 0.36) !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav .sidebar-link.active:is(:hover, :focus-visible) :is(.hide-menu, .aside-icon, .sidebar-icon, i, svg, iconify-icon),
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav .sidebar-link.is-current:is(:hover, :focus-visible) :is(.hide-menu, .aside-icon, .sidebar-icon, i, svg, iconify-icon) {
    color: #fff !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav .sidebar-link.active:is(:hover, :focus-visible) .aside-icon,
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav .sidebar-link.is-current:is(:hover, :focus-visible) .aside-icon {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav .has-arrow.active:is(:hover, :focus-visible)::after,
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .sidebar-nav .sidebar-item.active > .has-arrow:is(:hover, :focus-visible)::after {
    border-color: #fff !important;
}

/* Keep the signed-in user's identity and logout action readable on the dark sidebar. */
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile .card {
    color: #fff;
    background: #172a4d !important;
    border-color: #3b5279 !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile__row,
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile__user,
body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile__identity {
    min-width: 0;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile__user {
    flex: 1 1 auto;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile__name {
    max-width: 112px;
    overflow: hidden;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile__role {
    color: #cbd5e1 !important;
    font-size: 0.62rem;
    font-weight: 650;
    line-height: 1.45;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile img {
    border-color: #bfdbfe !important;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile__logout {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #fff !important;
    background: #b91c1c !important;
    border: 1px solid #fca5a5;
    box-shadow: 0 6px 16px rgba(69, 10, 10, 0.3);
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile__logout .ti {
    color: inherit !important;
    font-size: 1.15rem;
    line-height: 1;
}

body.sadid-ui[data-ui-system="sadid-v3"][data-dashboard-ui="modern"] .left-sidebar .app-sidebar-profile__logout:is(:hover, :focus-visible) {
    color: #fff !important;
    background: #991b1b !important;
    border-color: #fecaca;
    box-shadow:
        0 0 0 3px rgba(254, 202, 202, 0.22),
        0 8px 18px rgba(69, 10, 10, 0.38);
    transform: translateY(-1px);
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(.btn-light, .btn-white) {
    color: #334155 !important;
    background: #fff !important;
    border-color: #cbd5e1 !important;
}

body.sadid-ui[data-ui-system="sadid-v3"] :is(.btn-light, .btn-white):is(:hover, :focus-visible) {
    color: #1d4ed8 !important;
    background: #eff6ff !important;
    border-color: #93c5fd !important;
}

[data-bs-theme="dark"] body.sadid-ui[data-ui-system="sadid-v3"] :is(.btn-light, .btn-white) {
    color: #e2e8f0 !important;
    background: #1e293b !important;
    border-color: #475569 !important;
}

[data-bs-theme="dark"] body.sadid-ui[data-ui-system="sadid-v3"] :is(.btn-light, .btn-white):is(:hover, :focus-visible) {
    color: #bfdbfe !important;
    background: #172554 !important;
    border-color: #3b82f6 !important;
}

body.sadid-ui .question-bank-info-card .card-body {
    max-width: 100%;
    overflow-x: clip;
}

body.sadid-ui .question-bank-info-card table {
    width: 100%;
    table-layout: fixed;
}

body.sadid-ui .question-bank-info-card td {
    min-width: 0 !important;
    padding-inline: 0.4rem !important;
    text-align: start !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
}

body.sadid-ui .question-bank-info-card td:first-child {
    width: 38%;
}
