/* Shared account actions and section-navigation feedback. */
html body :is(.topbar,.member-header,.faculty-topbar) button.evalsys-logout-button[data-bs-target="#logoutConfirmModal"][data-no-tooltip] {
    --logout-width: 44px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto !important;
    box-sizing: border-box;
    width: var(--logout-width) !important;
    min-width: 44px !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin-inline-start: 0 !important;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--evalsys-border, #24415f) !important;
    border-radius: 999px !important;
    background: var(--evalsys-surface-elevated, #152e4d) !important;
    color: var(--evalsys-text-primary, #f4f8ff) !important;
    box-shadow: 0 3px 12px #0003 !important;
    cursor: pointer;
    transition: width .3s cubic-bezier(.22,.68,0,1.05), margin-inline-start .3s cubic-bezier(.22,.68,0,1.05), background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.evalsys-logout-button > .evalsys-logout-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: inherit;
}
.evalsys-logout-button .evalsys-logout-icon > i { font-size: 17px; color: inherit !important; }
.evalsys-logout-button > .evalsys-logout-label {
    position: absolute;
    left: 44px;
    top: 0;
    display: flex;
    align-items: center;
    height: 42px;
    margin: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .18s ease, transform .28s ease;
}
html body :is(.topbar,.member-header,.faculty-topbar) button.evalsys-logout-button[data-bs-target="#logoutConfirmModal"][data-no-tooltip]:focus-visible {
    --logout-width: 112px;
    background: #16477b !important;
    border-color: var(--evalsys-accent, #22c7f2) !important;
}
.evalsys-logout-button:focus-visible > .evalsys-logout-label { opacity: 1; transform: none; }
@media (max-width: 767.98px) {
    html body :is(.topbar,.member-header,.faculty-topbar) button.evalsys-logout-button[data-bs-target="#logoutConfirmModal"][data-no-tooltip] {
        margin-inline-start: calc(44px - var(--logout-width)) !important;
    }
}
@media (hover: hover) {
    html body :is(.topbar,.member-header,.faculty-topbar) button.evalsys-logout-button[data-bs-target="#logoutConfirmModal"][data-no-tooltip]:hover {
        --logout-width: 112px;
        background: #16477b !important;
        border-color: var(--evalsys-accent, #22c7f2) !important;
        box-shadow: 0 4px 16px #1677ff29 !important;
    }
    .evalsys-logout-button:hover > .evalsys-logout-label { opacity: 1; transform: none; }
}
.evalsys-navigation-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 2147483646;
    height: 4px;
    overflow: hidden;
    background: #071426;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}
.evalsys-navigation-progress[hidden] { display: none !important; }
.evalsys-navigation-progress.is-active { opacity: 1; }
.evalsys-navigation-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #569aff, #22d9ff 65%, #a78bfa);
    box-shadow: 0 0 10px #22d9ff;
    transition: transform .25s ease;
}
.evalsys-navigation-progress.is-error .evalsys-navigation-progress-fill { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
/* One logout confirmation design for every dashboard role. */
#logoutConfirmModal { --bs-modal-width: 560px; }
html body #logoutConfirmModal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 560px !important;
    max-height: none;
    min-height: calc(100% - 32px);
    margin: 16px auto;
    transition: transform .26s ease, opacity .26s ease;
}
#logoutConfirmModal.fade .modal-dialog { transform: translateY(18px) scale(.98); }
#logoutConfirmModal.show .modal-dialog { transform: none; }
#logoutConfirmModal .modal-content {
    position: relative;
    isolation: isolate;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 2px solid transparent !important;
    border-radius: 16px !important;
    background: linear-gradient(125deg, #142c49, #0b1c33 65%, #0c2040) padding-box,
                linear-gradient(120deg, #427dc5, #4dd9ff 35%, #377fef 68%, #4267aa) border-box !important;
    color: #f4f8ff !important;
    box-shadow: 0 24px 80px #0008, 0 0 40px #1677ff12 !important;
}
#logoutConfirmModal .logout-confirm-waves {
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    width: 100%;
    height: 100px;
    pointer-events: none;
}
#logoutConfirmModal .modal-header {
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid #71b6ff26 !important;
    background: transparent !important;
}
#logoutConfirmModal .logout-confirm-header-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    height: 34px;
    border: 1px solid #75b5ff36;
    border-radius: 12px;
    background: linear-gradient(145deg, #334d6c, #143763);
    box-shadow: inset 0 1px 3px #b9ddff1a;
}
#logoutConfirmModal .logout-confirm-header-icon svg { width: 20px; height: 20px; }
#logoutConfirmModal .modal-title {
    margin: 0;
    color: #f4f8ff !important;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.4px;
}
html body #logoutConfirmModal .logout-confirm-close {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0 0 0 auto;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: #93b9f014;
    color: #f4f8ff;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
#logoutConfirmModal .logout-confirm-close svg { width: 20px; height: 20px; }
html body #logoutConfirmModal .logout-confirm-close:hover { background: #93b9f02b; border-color: #8bbdff45; }
#logoutConfirmModal .modal-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px 10px;
    background: transparent !important;
}
#logoutConfirmModal .logout-confirm-art {
    display: grid;
    place-items: center;
    flex: 0 0 68px;
    height: 68px;
    border: 1.5px solid #79aaff65;
    border-radius: 18px;
    background: linear-gradient(145deg, #294363, #102a50 70%, #123c76);
    box-shadow: inset 0 1px 2px #bdd9ff30, 0 10px 24px #0002;
}
#logoutConfirmModal .logout-confirm-art svg { width: 60px; height: 60px; }
#logoutConfirmModal .logout-confirm-copy {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 0 4px 14px;
    border-left: 1px solid #71b6ff40;
}
#logoutConfirmModal .logout-confirm-copy h3 {
    margin: 0 0 8px;
    color: #f4f8ff !important;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.35px;
}
#logoutConfirmModal .logout-confirm-copy p {
    margin: 0;
    color: #afc4df !important;
    font-size: 14px;
    line-height: 1.6;
}
#logoutConfirmModal .modal-footer {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 4px 18px 16px;
    border: 0 !important;
    background: transparent !important;
}
html body #logoutConfirmModal .modal-footer > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 96px;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    border: 1.5px solid;
    border-radius: 13px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#logoutConfirmModal .logout-confirm-submit svg { flex: 0 0 20px; width: 20px; height: 20px; }
html body #logoutConfirmModal .modal-footer > .logout-confirm-cancel {
    border-color: #7f9cc075;
    background: linear-gradient(135deg, #2b405b, #162b47);
    box-shadow: inset 0 1px 2px #fff1;
}
html body #logoutConfirmModal .modal-footer > .logout-confirm-cancel:hover { border-color: #98c6ff; background: #2c4768; }
html body #logoutConfirmModal .modal-footer > .logout-confirm-submit {
    min-width: 112px;
    border-color: #54caff;
    background: linear-gradient(180deg, #299bff, #0964f8);
    box-shadow: inset 0 1px 2px #d4f6ff5c, 0 6px 24px #0055ff33;
}
html body #logoutConfirmModal .modal-footer > .logout-confirm-submit:hover {
    border-color: #a5edff;
    background: linear-gradient(180deg, #43aeff, #1677ff);
    box-shadow: inset 0 1px 2px #d4f6ff5c, 0 6px 28px #1677ff55;
}
#logoutConfirmModal :is(button,a):focus-visible { outline: 3px solid #a1e6ff !important; outline-offset: 3px; }
@media (max-width: 575.98px) {
    html body #logoutConfirmModal .modal-dialog { width: calc(100% - 24px); min-height: calc(100% - 24px); margin: 12px auto; }
    #logoutConfirmModal .modal-content { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 16px !important; }
    #logoutConfirmModal .modal-header { gap: 10px; padding: 10px; }
    #logoutConfirmModal .logout-confirm-header-icon { flex-basis: 34px; height: 34px; border-radius: 10px; }
    #logoutConfirmModal .logout-confirm-header-icon svg { width: 21px; height: 21px; }
    #logoutConfirmModal .modal-title { font-size: 18px; letter-spacing: -.25px; }
    html body #logoutConfirmModal .logout-confirm-close { flex-basis: 34px; width: 34px; height: 34px; padding: 7px; }
    #logoutConfirmModal .modal-body { flex-direction: column; gap: 10px; padding: 14px 16px 12px; }
    #logoutConfirmModal .logout-confirm-art { flex-basis: auto; width: 56px; height: 56px; border-radius: 16px; }
    #logoutConfirmModal .logout-confirm-art svg { width: 50px; height: 50px; }
    #logoutConfirmModal .logout-confirm-copy { flex: 0 0 auto; padding: 0; border: 0; text-align: center; }
    #logoutConfirmModal .logout-confirm-copy h3 { font-size: 18px; margin-bottom: 8px; }
    #logoutConfirmModal .logout-confirm-copy p { font-size: 14px; line-height: 1.6; }
    #logoutConfirmModal .modal-footer { gap: 10px; padding: 4px 16px 14px; }
    html body #logoutConfirmModal .modal-footer > .btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 10px 12px; font-size: 15px; border-radius: 12px; }
    html body #logoutConfirmModal .modal-footer > .logout-confirm-submit { min-width: 0; }
}
@media (max-height: 480px) and (min-width: 576px) {
    #logoutConfirmModal .modal-header { padding: 10px 18px; }
    #logoutConfirmModal .modal-body { padding: 12px 18px; gap: 16px; }
    #logoutConfirmModal .logout-confirm-art { flex-basis: 68px; height: 68px; border-radius: 18px; }
    #logoutConfirmModal .logout-confirm-art svg { width: 60px; height: 60px; }
    #logoutConfirmModal .modal-footer { padding: 0 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    html body :is(.topbar,.member-header,.faculty-topbar) button.evalsys-logout-button[data-bs-target="#logoutConfirmModal"][data-no-tooltip],
    .evalsys-logout-button > .evalsys-logout-label,
    .evalsys-navigation-progress,
    .evalsys-navigation-progress-fill,
    html body #logoutConfirmModal,
    html body #logoutConfirmModal .modal-dialog,
    html body #logoutConfirmModal :is(button,.btn) { transition: none !important; }
    #logoutConfirmModal.fade .modal-dialog { transform: none; }
}
