body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #111827;
}

/* Global Theme-Adaptive Modern Scrollbars (Light Mode by default) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-left: 1px solid #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
    min-height: 50px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

html, body, .app-main.main-content, .employee-portal-shell {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #f1f5f9;
}

/* Dark Mode Scrollbars */
html[data-bs-theme="dark"] ::-webkit-scrollbar-track,
body.theme-dark ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.85);
    border-left: 1px solid rgba(148, 163, 184, 0.15);
}

html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb,
body.theme-dark ::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 6px;
    border: 2px solid rgba(15, 23, 42, 0.85);
}

html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover,
body.theme-dark ::-webkit-scrollbar-thumb:hover {
    background-color: #60a5fa;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

html[data-bs-theme="dark"],
html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] .app-main.main-content,
html[data-bs-theme="dark"] .employee-portal-shell {
    scrollbar-color: #3b82f6 rgba(15, 23, 42, 0.85);
}

:root {
    --brand-color: #2563eb;
    --brand-color-soft: rgba(37, 99, 235, 0.12);
    --brand-color-strong: rgba(37, 99, 235, 0.18);
    --card-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --soft-border: rgba(148, 163, 184, 0.25);
    --table-divider-light: rgba(148, 163, 184, 0.22);
    --table-header-divider-light: rgba(148, 163, 184, 0.32);
    --app-navbar-height: 4.75rem;
    --app-sidebar-width-md: 240px;
    --app-sidebar-width-lg: 260px;

    /* Design tokens — radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Design tokens — transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;

    /* Design tokens — dark mode surfaces */
    --dark-bg-base: #0b1220;
    --dark-bg-surface: #0f172a;
    --dark-bg-elevated: #111c30;
    --dark-bg-raised: #111b2f;
    --dark-text-primary: #f8fafc;
    --dark-text-secondary: #e2e8f0;
    --dark-text-muted: #94a3b8;
    --dark-text-subtle: #cbd5e1;
    --dark-border: rgba(148, 163, 184, 0.15);
    --dark-border-strong: rgba(148, 163, 184, 0.35);
    --dark-highlight: rgba(59, 130, 246, 0.15);
}

.navbar-main-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.75rem;
}

@media (min-width: 992px) {
    .navbar-main-inner {
        flex-wrap: nowrap;
    }
}

.navbar-brand-cluster {
    flex: 1 1 220px;
    min-width: 0;
}

.navbar-actions-collapse {
    flex: 1 1 auto;
}

@media (min-width: 992px) {
    .navbar-actions-collapse {
        flex: 0 0 auto;
    }
}

.brand-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 1rem;
    width: 100%;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo img {
    height: 34px;
    width: auto;
    border-radius: 8px;
}

.brand-logo.sub-brand img {
    height: 55px;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.brand-logo.sub-brand {
    justify-content: flex-end;
    
}

.brand-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-inline: 1.25rem;
    min-width: 0;
}

.brand-title-wrap-full {
    padding-inline: 2rem;
}

.brand-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.auth-page .brand-bar {
    position: relative;
    grid-template-columns: auto 1fr auto;
    min-height: 72px;
}

.auth-page .brand-bar > :nth-child(1) {
    justify-self: start;
    position: relative;
    z-index: 1;
}

.auth-page .brand-bar > :nth-child(2) {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: min(70vw, 720px);
    pointer-events: none;
}

.auth-page .brand-bar > :nth-child(3) {
    justify-self: end;
    position: relative;
    z-index: 1;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.85rem;
}

.theme-toggle input {
    width: 36px;
    height: 20px;
    appearance: none;
    background: #cbd5f5;
    border-radius: 999px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.theme-toggle input::after {
    content: "";
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
}

.theme-toggle input:checked {
    background: #111827;
}

.theme-toggle input:checked::after {
    transform: translateX(16px);
}

.theme-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    color: #475569;
}

.theme-icon {
    font-size: 0.9rem;
}

.theme-fab-wrap {
    position: sticky;
    bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
    margin-top: 2rem;
}

.theme-fab {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.theme-fab:hover {
    background: #e2e8f0;
}

.theme-fab.theme-fab-portal-header {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.theme-fab.theme-fab-portal-header:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.theme-fab.theme-fab-portal-float {
    width: 42px;
    height: 42px;
}

html, body {
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

body.theme-dark {
    background-color: #0b1220;
    color: #e2e8f0;
}

.auth-page {
    min-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand-color) 18%, transparent), transparent 28%),
        radial-gradient(circle at bottom right, rgba(148, 163, 184, 0.18), transparent 30%),
        linear-gradient(180deg, #f6f8fc 0%, #eef2f8 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.auth-stage {
    min-height: 100dvh;
    height: 100dvh;
    background: transparent;
    overflow: hidden;
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 0;
    flex: 1 1 auto;
}

.auth-theme-fab {
    width: 42px;
    height: 42px;
}

.auth-showcase-shell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.auth-showcase {
    width: 100%;
    max-width: 1320px;
    margin: 0 0 0 auto;
}

.auth-showcase-panel {
    position: relative;
    overflow: hidden;
    min-height: min(770px, calc(100vh - 5.4rem));
    border-radius: 24px 0 0 24px;
    padding: clamp(1.35rem, 3vw, 3.05rem) clamp(1.35rem, 4.6vw, 5rem) 7.4rem;
    background: transparent;
    color: #fff;
}

.auth-showcase-panel::before,
.auth-showcase-panel::after {
    content: "";
    position: absolute;
    z-index: 0;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(0.2px);
}

.auth-showcase-panel::before {
    width: 170px;
    left: 15%;
    top: 24%;
}

.auth-showcase-panel::after {
    width: 120px;
    right: 31%;
    top: 39%;
}

.auth-showcase-header,
.auth-showcase-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-showcase-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.auth-showcase-brand:hover {
    color: #fff;
}

.auth-showcase-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* allow natural logo sizing on auth pages */
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.auth-showcase-logo img {
    /* let logos render at their natural aspect ratio while constraining maximums */
    max-width: 280px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-showcase-nav {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.65rem, 2vw, 1.4rem);
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-showcase-nav a,
.auth-showcase-nav button {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-showcase-nav a:hover,
.auth-showcase-nav button:hover {
    color: #fff;
}

.auth-showcase-nav button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.auth-showcase-nav-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
}

.auth-showcase-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
    align-items: center;
    gap: clamp(2rem, 7vw, 6.5rem);
    min-height: 525px;
    padding: clamp(2rem, 4vw, 4.1rem) 0 1.6rem;
}

.auth-visual {
    position: relative;
    min-height: 470px;
}

.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-color) 32%, #ffffff);
    opacity: 0.34;
    filter: blur(1px);
}

.auth-visual::before {
    width: 210px;
    height: 210px;
    left: 12%;
    top: 16%;
}

.auth-visual::after {
    width: 150px;
    height: 150px;
    right: 12%;
    bottom: 18%;
}

.auth-solar {
    position: absolute;
    z-index: 2;
    width: 270px;
    height: 126px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px) 0 0 / 54px 100%,
        linear-gradient(0deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px) 0 0 / 100% 31px,
        linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 74%, #ffffff), color-mix(in srgb, var(--brand-color) 50%, #6d5dfc));
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 58px rgba(2, 6, 23, 0.26);
    transform: skewX(16deg) rotate(1deg);
}

.auth-solar::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -118px;
    width: 12px;
    height: 118px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-color) 68%, #ffffff);
    transform: translateX(-50%) skewX(-16deg);
}

.auth-solar-one {
    left: 8%;
    bottom: 25%;
}

.auth-solar-two {
    left: 26%;
    top: 23%;
    width: 270px;
    height: 140px;
    transform: skewX(16deg) rotate(0deg);
}

.auth-turbine {
    position: absolute;
    z-index: 3;
    width: 24px;
    height: 250px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--brand-color) 48%, #ffffff) 100%);
    box-shadow: 0 28px 45px rgba(2, 6, 23, 0.2);
}

.auth-turbine::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-color) 50%, #ffffff);
    transform: translate(-50%, -50%);
}

.auth-turbine::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 84px;
    height: 18px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.28);
    transform: translateX(-50%);
    filter: blur(2px);
}

.auth-turbine-main {
    right: 23%;
    top: 19%;
}

.auth-turbine-small {
    right: 45%;
    top: 43%;
    width: 18px;
    height: 150px;
    opacity: 0.92;
}

.auth-turbine-blade {
    position: absolute;
    left: 50%;
    top: -10px;
    width: 150px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-color) 62%, #ffffff), #ffffff);
    transform-origin: 0 50%;
}

.auth-turbine-small .auth-turbine-blade {
    width: 96px;
    height: 13px;
}

.auth-turbine-blade:nth-child(1) {
    transform: rotate(-48deg);
}

.auth-turbine-blade:nth-child(2) {
    transform: rotate(72deg);
}

.auth-turbine-blade:nth-child(3) {
    transform: rotate(192deg);
}

.auth-visual-orbit {
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transform: rotate(-22deg);
}

.auth-visual-orbit-one {
    width: 320px;
    height: 180px;
    left: 5%;
    top: 24%;
}

.auth-visual-orbit-two {
    width: 250px;
    height: 135px;
    right: 10%;
    top: 34%;
}

.auth-visual-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(12px);
    color: #fff;
    font-weight: 800;
}

.auth-visual-card i {
    color: #fff;
}

.auth-visual-card-main {
    left: 18%;
    top: 28%;
    min-width: 260px;
    min-height: 150px;
    justify-content: center;
    border-radius: 24px;
    font-size: 1.2rem;
}

.auth-visual-card-main i {
    font-size: 2.8rem;
}

.auth-visual-card-small {
    right: 16%;
    top: 20%;
    padding: 1rem 1.2rem;
    border-radius: 18px;
}

.auth-visual-card-wide {
    left: 28%;
    bottom: 13%;
    padding: 1rem 1.35rem;
    border-radius: 18px;
}

.auth-visual-person {
    position: absolute;
    z-index: 4;
    width: 54px;
    height: 138px;
    border-radius: 999px 999px 18px 18px;
    background:
        linear-gradient(180deg, #ff7a70 0 28%, color-mix(in srgb, var(--brand-color) 52%, #ffffff) 28% 100%);
    box-shadow: 0 22px 38px rgba(2, 6, 23, 0.2);
    opacity: 0.86;
}

.auth-visual-person::before {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    left: 9px;
    top: -22px;
    border-radius: 999px;
    background: #fff;
}

.auth-visual-person-left {
    left: 8%;
    bottom: 10%;
    transform: rotate(-8deg);
}

.auth-visual-person-right {
    right: 6%;
    bottom: 5%;
    transform: rotate(8deg);
}

.auth-admin-page .auth-showcase-panel {
    background: transparent;
}

.auth-admin-visual {
    min-height: 470px;
}

.auth-admin-orbit {
    position: absolute;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.16);
}

.auth-admin-orbit-one {
    width: 430px;
    height: 250px;
    left: 12%;
    top: 24%;
    transform: rotate(-18deg);
}

.auth-admin-orbit-two {
    width: 280px;
    height: 280px;
    right: 17%;
    top: 16%;
}

.auth-admin-shield {
    position: absolute;
    left: 34%;
    top: 20%;
    z-index: 4;
    display: inline-flex;
    width: 190px;
    height: 210px;
    align-items: center;
    justify-content: center;
    border-radius: 48px 48px 72px 72px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(14px);
}

.auth-admin-shield i {
    font-size: 5.7rem;
    color: #fff;
    filter: drop-shadow(0 12px 18px rgba(2, 6, 23, 0.24));
}

.auth-admin-card {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 190px;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.24);
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.auth-admin-card i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
}

.auth-admin-card-users {
    left: 7%;
    top: 21%;
}

.auth-admin-card-lock {
    right: 8%;
    top: 32%;
}

.auth-admin-card-chart {
    left: 24%;
    bottom: 15%;
}

.auth-admin-node {
    position: absolute;
    z-index: 3;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--brand-color) 34%, rgba(255, 255, 255, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.22);
}

.auth-admin-node-one {
    left: 19%;
    bottom: 27%;
}

.auth-admin-node-two {
    right: 24%;
    bottom: 19%;
}

.auth-admin-node-three {
    right: 31%;
    top: 10%;
}

.auth-admin-page .auth-login-title {
    color: color-mix(in srgb, var(--brand-color) 22%, #0f172a);
}

.auth-admin-page .auth-submit-btn {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: #ffffff;
}

.auth-admin-page .auth-submit-btn:hover {
    background: color-mix(in srgb, var(--brand-color) 86%, #0f172a);
    border-color: color-mix(in srgb, var(--brand-color) 86%, #0f172a);
    color: #ffffff;
}

.auth-login-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    color: #111827;
    box-shadow: 0 26px 56px rgba(2, 6, 23, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    max-height: calc(100dvh - 2rem);
    padding: clamp(1.7rem, 3vw, 2.4rem);
}

.auth-login-title {
    margin: 0 0 1.55rem;
    color: color-mix(in srgb, var(--brand-color) 30%, #111827);
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.1;
    white-space: nowrap;
}

.auth-login-subtitle {
    margin: 0.5rem 0 1.55rem;
    color: #475569;
    font-weight: 500;
}

.auth-floating {
    position: relative;
}

.auth-floating > .form-control {
    height: 64px;
    padding-right: 3.1rem;
    border-radius: 16px;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.04);
    background-color: #f1f5f9;
    color: #0f172a;
}

.auth-floating > .form-control:focus {
    background-color: #ffffff;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 4px var(--brand-color-soft);
}

.auth-floating > label {
    color: #475569;
}

.auth-input-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    color: color-mix(in srgb, var(--brand-color) 72%, #64748b);
    pointer-events: none;
}

.auth-form-note {
    margin: 1.2rem 0 1.4rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-submit-btn {
    display: inline-flex;
    min-width: 190px;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: 8px;
    padding-inline: 1.35rem;
    font-weight: 800;
    text-transform: lowercase;
    box-shadow: 0 18px 30px color-mix(in srgb, var(--brand-color) 32%, transparent);
}

.auth-forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.auth-forgot-link i {
    color: var(--brand-color);
}

.auth-card-footer {
    margin: 2rem -2.35rem -2.35rem;
    padding: 1.35rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #475569;
    font-size: 0.9rem;
}

.auth-card-footer a {
    color: var(--brand-color);
    font-weight: 800;
}

.auth-showcase-footer {
    position: absolute;
    left: 50%;
    bottom: 3.15rem;
    z-index: 2;
    justify-content: center;
    transform: translateX(-18%);
    margin-top: auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.auth-chat-strip {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: min(48%, 610px);
    min-height: 112px;
    padding: 1.15rem clamp(1.2rem, 4vw, 3.1rem);
    border-top-right-radius: 110px;
    background: #fff;
    color: #111827;
    box-shadow: 16px -12px 26px rgba(2, 6, 23, 0.05);
}

.auth-chat-avatar {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-color) 22%, #ffffff);
    color: var(--brand-color);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.auth-chat-strip strong,
.auth-chat-strip span {
    position: relative;
    z-index: 1;
    display: block;
}

.auth-chat-strip strong {
    color: color-mix(in srgb, var(--brand-color) 28%, #111827);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.1;
}

.auth-chat-strip span {
    margin-top: 0.45rem;
    color: #8a94a6;
    font-weight: 500;
}

html[data-bs-theme="dark"] .auth-showcase {
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

html[data-bs-theme="dark"] .auth-login-card {
    background: rgba(15, 23, 42, 0.3);
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .auth-login-title {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .auth-login-subtitle,
html[data-bs-theme="dark"] .auth-form-note,
html[data-bs-theme="dark"] .auth-card-footer {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .auth-floating > .form-control {
    background: #111c30;
    border-color: rgba(148, 163, 184, 0.24);
    color: #f8fafc;
}

html[data-bs-theme="dark"] .auth-card-footer {
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="dark"] .auth-chat-strip {
    background: #0f172a;
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .auth-chat-strip strong {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .auth-chat-strip span {
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .auth-showcase-shell {
        align-items: stretch;
    }

    .auth-showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-showcase-content {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 2.5rem;
        padding-bottom: 8rem;
    }

    .auth-visual {
        min-height: 360px;
    }

    .auth-login-card {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
        max-height: calc(100dvh - 2rem);
    }

    .auth-chat-strip {
        width: min(78%, 560px);
    }

    .auth-showcase-footer {
        right: 1.35rem;
        left: auto;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .auth-showcase {
        padding: 0.65rem;
        border-radius: 22px;
    }

    .auth-showcase-panel {
        border-radius: 18px;
        padding: 1rem;
    }

    .auth-showcase-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .auth-visual {
        display: none;
    }

    .auth-showcase-content {
        padding-bottom: 7rem;
    }

    .auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-submit-btn {
        width: 100%;
    }

    .auth-card-footer {
        margin-right: -1.6rem;
        margin-left: -1.6rem;
        margin-bottom: -1.6rem;
    }

    .auth-chat-strip {
        width: 100%;
        min-height: 92px;
        padding: 1rem;
        border-top-right-radius: 34px;
    }

    .auth-chat-avatar {
        width: 48px;
        height: 48px;
    }

    .auth-showcase-footer {
        display: none;
    }
}

html[data-bs-theme="dark"] .auth-page {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand-color) 24%, transparent), transparent 26%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #08111f 0%, #0f172a 58%, #111c30 100%);
}

html[data-bs-theme="dark"] .auth-page .welcome-card {
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .auth-page .brand-bar {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

html[data-bs-theme="light"] .auth-page .brand-bar {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.auth-page .auth-showcase-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Title text glow & contrast shadows */
html[data-bs-theme="light"] .header-text-custom {
    color: #0f172a !important;
    text-shadow: 
        0 0 12px rgba(255, 255, 255, 0.95),
        0 0 24px rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(255, 255, 255, 1);
    font-weight: 800;
}

html[data-bs-theme="dark"] .header-text-custom {
    color: #ffffff !important;
    text-shadow: 
        0 2px 14px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.8);
    font-weight: 800;
}

/* Individual Frosted Glass Navigation Pills */
.auth-page .auth-showcase-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
}

html[data-bs-theme="light"] .auth-page .auth-showcase-nav a:not(.active-tab) {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}

html[data-bs-theme="light"] .auth-page .auth-showcase-nav a:hover {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0284c7 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.16) !important;
}

html[data-bs-theme="dark"] .auth-page .auth-showcase-nav a:not(.active-tab) {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .auth-page .auth-showcase-nav a:hover {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #38bdf8 !important;
    transform: translateY(-1px);
}

/* Auth Card High-Contrast Styles */
html[data-bs-theme="light"] .auth-page .auth-login-card {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #0f172a !important;
}

html[data-bs-theme="light"] .auth-page .auth-login-card .auth-login-title {
    color: #0f172a !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

html[data-bs-theme="light"] .auth-page .auth-login-card .auth-floating > .form-control {
    background-color: rgba(248, 250, 252, 0.9) !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-bs-theme="light"] .auth-page .auth-login-card .auth-floating > .form-control:focus {
    background-color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
}

html[data-bs-theme="light"] .auth-page .auth-login-card .auth-floating > label {
    color: #334155 !important;
    font-weight: 600;
}

html[data-bs-theme="light"] .auth-page .auth-login-card .auth-forgot-link {
    color: #1e293b !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

html[data-bs-theme="light"] .auth-page .auth-login-card .auth-forgot-link:hover {
    color: #0284c7 !important;
}

html[data-bs-theme="light"] .auth-page .auth-login-card .auth-card-footer {
    border-top-color: rgba(203, 213, 225, 0.6) !important;
    color: #334155 !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

html[data-bs-theme="light"] .auth-page .auth-login-card .auth-card-footer a {
    color: #0284c7 !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

html[data-bs-theme="light"] .auth-page .auth-login-card .auth-card-footer a:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

html[data-bs-theme="dark"] .auth-page .auth-login-card {
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    border: 1px solid rgba(51, 65, 85, 0.6) !important;
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .auth-page .auth-login-card .auth-login-title {
    color: #f8fafc !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

html[data-bs-theme="dark"] .auth-page .auth-login-card .auth-floating > .form-control {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(71, 85, 105, 0.6) !important;
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .auth-page .auth-login-card .auth-floating > label {
    color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] .auth-page .auth-login-card .auth-forgot-link {
    color: #e2e8f0 !important;
    font-weight: 700;
}

html[data-bs-theme="dark"] .auth-page .auth-login-card .auth-forgot-link:hover {
    color: #38bdf8 !important;
}

html[data-bs-theme="dark"] .auth-page .auth-login-card .auth-card-footer {
    border-top-color: rgba(51, 65, 85, 0.6) !important;
    color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] .auth-page .auth-login-card .auth-card-footer a {
    color: #38bdf8 !important;
    font-weight: 800 !important;
}

html[data-bs-theme="dark"] .auth-page .auth-login-card .auth-card-footer a:hover {
    color: #7dd3fc !important;
    text-decoration: underline !important;
}

html[data-bs-theme="dark"] .navbar,
html[data-bs-theme="dark"] .sidebar,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .modal-content {
    background-color: #0f172a !important;
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .main-content {
    background-color: #0b1220;
}

html[data-bs-theme="dark"] .sidebar {
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="dark"] .sidebar-footer-bar {
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme="dark"] .table {
    --bs-table-bg: rgba(15, 23, 42, 0.35);
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: rgba(148, 163, 184, 0.22);
    --bs-table-striped-bg: rgba(30, 41, 59, 0.45);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.12);
    --bs-table-active-bg: rgba(59, 130, 246, 0.18);
}

html[data-bs-theme="dark"] .table tbody td,
html[data-bs-theme="dark"] .table tbody th {
    color: #e2e8f0;
    vertical-align: middle;
}

html[data-bs-theme="dark"] .table .text-muted {
    color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text {
    background-color: #111c30;
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.35);
}

html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus {
    background-color: #111c30;
    color: #f8fafc;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--brand-color) 35%, transparent);
}

html[data-bs-theme="dark"] .form-control::placeholder {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .form-label {
    color: #cbd5e1;
}

/* ═══════════════════════════════════════════════════════
   Comprehensive Dark Mode Standardized Color Overrides
   ═══════════════════════════════════════════════════════ */
html[data-bs-theme="dark"] .text-dark,
body.theme-dark .text-dark {
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .text-black,
body.theme-dark .text-black {
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .text-secondary,
body.theme-dark .text-secondary {
    color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] .text-muted,
body.theme-dark .text-muted {
    color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .bg-light,
body.theme-dark .bg-light {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .bg-body-tertiary,
body.theme-dark .bg-body-tertiary {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .bg-body-secondary,
body.theme-dark .bg-body-secondary {
    background-color: #111c30 !important;
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .table-light,
body.theme-dark .table-light,
html[data-bs-theme="dark"] .table-light th,
body.theme-dark .table-light th {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-bs-theme="dark"] .card-header {
    background-color: rgba(30, 41, 59, 0.5) !important;
    color: #f8fafc !important;
    border-bottom-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-bs-theme="dark"] .card-footer {
    background-color: rgba(30, 41, 59, 0.5) !important;
    color: #e2e8f0 !important;
    border-top-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-bs-theme="dark"] .badge.bg-light,
body.theme-dark .badge.bg-light {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-bs-theme="dark"] .dropdown-menu,
body.theme-dark .dropdown-menu {
    background-color: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .dropdown-item,
body.theme-dark .dropdown-item {
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus,
body.theme-dark .dropdown-item:hover {
    background-color: rgba(59, 130, 246, 0.18) !important;
    color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════
   AI Chat Widget — Dark Mode (consolidated)
   ═══════════════════════════════════════════════════════ */

html[data-bs-theme="dark"] .ai-chat-panel,
body.theme-dark .ai-chat-panel {
    background: #0b1220;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    outline: 1px solid rgba(148, 163, 184, 0.12);
}

html[data-bs-theme="dark"] .ai-chat-panel a,
body.theme-dark .ai-chat-panel a {
    color: #93c5fd;
}

html[data-bs-theme="dark"] .ai-chat-panel i,
body.theme-dark .ai-chat-panel i {
    color: #cbd5e1;
}

html[data-bs-theme="dark"] .ai-chat-panel strong,
body.theme-dark .ai-chat-panel strong {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .ai-chat-header,
body.theme-dark .ai-chat-header {
    background: #111b2f;
    border-bottom-color: rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

html[data-bs-theme="dark"] .ai-chat-title,
html[data-bs-theme="dark"] .ai-chat-header .ai-chat-title,
body.theme-dark .ai-chat-title {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .ai-chat-subtitle,
html[data-bs-theme="dark"] .ai-chat-header .ai-chat-subtitle,
body.theme-dark .ai-chat-subtitle {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .ai-chat-close,
body.theme-dark .ai-chat-close {
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .ai-chat-close:hover,
body.theme-dark .ai-chat-close:hover {
    color: #ffffff;
}

html[data-bs-theme="dark"] .ai-chat-body,
body.theme-dark .ai-chat-body {
    background: transparent;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

html[data-bs-theme="dark"] .ai-chat-sidebar,
body.theme-dark .ai-chat-sidebar {
    background: #08101f;
    border-color: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

html[data-bs-theme="dark"] .ai-chat-history {
    background: transparent;
}

html[data-bs-theme="dark"] .ai-chat-history-item,
body.theme-dark .ai-chat-history-item {
    background: #111b2f;
    border-color: rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .ai-chat-history-item:hover,
html[data-bs-theme="dark"] .ai-chat-history-item.is-active,
body.theme-dark .ai-chat-history-item:hover,
body.theme-dark .ai-chat-history-item.is-active {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
    color: #f8fafc;
}

html[data-bs-theme="dark"] .ai-chat-history-item .ai-chat-history-title,
html[data-bs-theme="dark"] .ai-chat-history-item .ai-chat-history-meta {
    color: inherit;
}

html[data-bs-theme="dark"] .ai-chat-history-title,
body.theme-dark .ai-chat-history-title {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .ai-chat-history-meta {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .ai-chat-main,
body.theme-dark .ai-chat-main {
    background: #0b1220;
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .ai-chat-messages,
body.theme-dark .ai-chat-messages {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    color: #e2e8f0;
    border-bottom: none;
}

html[data-bs-theme="dark"] .ai-chat-empty {
    color: #cbd5e1;
    background: transparent;
}

html[data-bs-theme="dark"] .ai-chat-empty i {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .ai-chat-message {
    border-color: rgba(148, 163, 184, 0.08);
}

html[data-bs-theme="dark"] .ai-chat-message.is-user,
body.theme-dark .ai-chat-message.is-user {
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 6px;
}

html[data-bs-theme="dark"] .ai-chat-message.is-assistant,
body.theme-dark .ai-chat-message.is-assistant {
    background: #111b2f;
    color: #e2e8f0;
    border-bottom-left-radius: 6px;
}

html[data-bs-theme="dark"] .ai-chat-message.is-pending,
body.theme-dark .ai-chat-message.is-pending {
    background: rgba(255, 255, 255, 0.06);
    opacity: 0.9;
}

html[data-bs-theme="dark"] .ai-chat-form,
body.theme-dark .ai-chat-form {
    background: #111b2f;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

html[data-bs-theme="dark"] .ai-chat-form textarea,
body.theme-dark .ai-chat-form textarea {
    background: #111b2f;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.25);
    border-radius: 12px;
}

html[data-bs-theme="dark"] .ai-chat-form textarea::placeholder,
body.theme-dark .ai-chat-form textarea::placeholder {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .ai-chat-form textarea:focus,
body.theme-dark .ai-chat-form textarea:focus {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

html[data-bs-theme="dark"] .ai-chat-form button,
body.theme-dark .ai-chat-form button {
    background: #2563eb;
    color: #ffffff;
    border-color: transparent;
    border-radius: 12px;
}

html[data-bs-theme="dark"] .ai-chat-form button:hover {
    background-color: #1d4ed8;
}

html[data-bs-theme="dark"] .ai-chat-form button:focus,
body.theme-dark .ai-chat-form button:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

html[data-bs-theme="dark"] .ai-chat-backdrop,
body.theme-dark .ai-chat-backdrop {
    background: rgba(8, 10, 19, 0.9);
}

html[data-bs-theme="dark"] .ai-chat-overlay {
    background: rgba(8, 10, 19, 0.88);
}

html[data-bs-theme="dark"] .ai-chat-fab,
body.theme-dark .ai-chat-fab {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

html[data-bs-theme="dark"] .ai-chat-fab:hover,
body.theme-dark .ai-chat-fab:hover {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.5);
}

html[data-bs-theme="dark"] .ai-chat-fab:focus,
body.theme-dark .ai-chat-fab:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

html[data-bs-theme="dark"] .ai-chat-input::placeholder {
    color: #94a3b8;
}

/* AI Chat scrollbar styling (dark) */
html[data-bs-theme="dark"] .ai-chat-messages::-webkit-scrollbar {
    width: 8px;
}

html[data-bs-theme="dark"] .ai-chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="dark"] .ai-chat-messages::-webkit-scrollbar-thumb,
html[data-bs-theme="dark"] .ai-chat-form textarea::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}

html[data-bs-theme="dark"] .ai-chat-form textarea::-webkit-scrollbar {
    border-radius: 999px;
}

html[data-bs-theme="dark"] .ai-chat-form textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

html[data-bs-theme="dark"] .sidebar .nav-link i {
    color: #94a3b8;
    width: 1.25rem;
    min-width: 1.25rem;
    flex-shrink: 0;
    text-align: center;
}

html[data-bs-theme="dark"] .sidebar .nav-link:hover {
    background-color: rgba(148, 163, 184, 0.12);
    color: #f8fafc;
}

html[data-bs-theme="dark"] .sidebar .nav-link:hover i {
    color: #cbd5e1;
}

html[data-bs-theme="dark"] .sidebar .nav-link.active {
    background-color: color-mix(in srgb, var(--brand-color) 32%, transparent);
    color: #f8fafc;
}

html[data-bs-theme="dark"] .sidebar .nav-link.active i {
    color: #e0e7ff;
}

html[data-bs-theme="dark"] .brand-title-text {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .brand-subtitle,
html[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .btn-outline-secondary {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.45);
}

html[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: rgba(148, 163, 184, 0.15);
    color: #f8fafc;
}

html[data-bs-theme="dark"] .btn-outline-dark {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.45);
}

html[data-bs-theme="dark"] .btn-outline-dark:hover {
    background-color: rgba(148, 163, 184, 0.15);
    color: #fff;
}

html[data-bs-theme="dark"] .card-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .theme-fab {
    background: #111c30;
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.35);
}

html[data-bs-theme="dark"] .theme-fab:hover {
    background: #1a2740;
    color: #fff;
}

html[data-bs-theme="dark"] .theme-fab.theme-fab-portal-header {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

html[data-bs-theme="dark"] .theme-fab.theme-fab-portal-header:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

html[data-bs-theme="dark"] .theme-toggle {
    background: #111c30;
    border-color: rgba(148, 163, 184, 0.35);
}

html[data-bs-theme="dark"] .theme-toggle label {
    color: #cbd5e1;
}

html[data-bs-theme="dark"] .kpi-number {
    color: #f1f5f9;
}

html[data-bs-theme="dark"] .kpi-label {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .dashboard-section-title {
    color: #f1f5f9;
}

html[data-bs-theme="dark"] .category-collapse-toggle {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .category-collapse-toggle .fa-chevron-down {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .action-btn {
    background: #111c30;
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .action-btn svg {
    stroke: currentColor;
}

html[data-bs-theme="dark"] .action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.45);
    color: #dbeafe;
}

html[data-bs-theme="dark"] .action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

html[data-bs-theme="dark"] .pagination .page-link {
    background-color: #111c30;
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .pagination .page-link:hover {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    color: #fff;
}

html[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
}

html[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
    background-color: #0f172a;
    color: #64748b;
}

html[data-bs-theme="dark"] .ticket-slider-panel {
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.45);
}

html[data-bs-theme="dark"] .ticket-details-page {
    background-color: #0b1220;
}

html[data-bs-theme="dark"] .pdf-viewer {
    background: #111c30;
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .my-tickets-status.status-open {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

html[data-bs-theme="dark"] .my-tickets-status.status-solved {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

html[data-bs-theme="dark"] .my-tickets-status.status-rejected {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

html[data-bs-theme="dark"] .ticket-portal-layout .my-tickets-card .card-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.95));
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme="dark"] .ticket-portal-layout .my-tickets-card .table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

html[data-bs-theme="dark"] .list-group-item {
    background-color: transparent;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="dark"] .dropdown-menu {
    background-color: #111c30;
    border-color: rgba(148, 163, 184, 0.25);
}

html[data-bs-theme="dark"] .dropdown-item {
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: rgba(59, 130, 246, 0.15);
    color: #fff;
}

html[data-bs-theme="dark"] .alert {
    border-width: 1px;
}

html[data-bs-theme="dark"] .card-footer {
    background-color: rgba(15, 23, 42, 0.65);
    border-top-color: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

html[data-bs-theme="dark"] .btn-light.btn-icon {
    background-color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

html[data-bs-theme="dark"] .btn-light.btn-icon.text-primary {
    color: #93c5fd !important;
}

html[data-bs-theme="dark"] .btn-light.btn-icon.text-danger {
    color: #fca5a5 !important;
}

html[data-bs-theme="dark"] .btn-light.btn-icon:hover {
    background-color: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.45);
}

html[data-bs-theme="dark"] .btn-light.btn-icon.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(248, 113, 113, 0.45);
}

html[data-bs-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .modal-footer {
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme="dark"] .form-floating > label {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .form-floating > .form-control:focus ~ label,
html[data-bs-theme="dark"] .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #cbd5e1;
}

html, body {
    height: 100%;
    margin: 0;
}

@media (min-width: 768px) {
    body:not(.auth-page) {
        overflow: hidden;
    }
}

.app-dashboard-wrap {
    max-width: 100%;
    overflow: hidden;
    height: calc(100vh - var(--app-navbar-height));
}

.app-dashboard-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.app-sidebar.sidebar {
    position: relative;
    width: 100%;
    min-height: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--soft-border);
    padding: 1rem 0.75rem 1rem 0.75rem;
}

.sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 0;
}

.sidebar-nav-group {
    display: flex;
    flex-direction: column;
}

.sidebar-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-footer-bar {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-footer-tools {
    display: flex;
    justify-content: flex-start;
}

.sidebar-footer-tools .theme-fab {
    margin: 0;
}

.sidebar-logout-btn {
    margin-top: 0;
    white-space: nowrap;
}

.sidebar-logout-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

@media (min-width: 768px) {
    .app-dashboard-inner {
        flex-direction: row;
        align-items: stretch;
        height: calc(100vh - var(--app-navbar-height));
    }

    .app-sidebar.sidebar {
        position: fixed;
        top: var(--app-navbar-height);
        left: 0;
        bottom: 0;
        width: var(--app-sidebar-width-md);
        z-index: 1010;
        height: calc(100vh - var(--app-navbar-height));
        min-height: 0;
        padding: 0.75rem 0.65rem 0.5rem 0.65rem;
        overflow: hidden;
        border-bottom: none;
        border-right: 1px solid var(--soft-border);
    }

    .app-main.main-content {
        margin-left: var(--app-sidebar-width-md);
        width: calc(100% - var(--app-sidebar-width-md));
        max-width: none;
        flex: 1 1 auto;
        height: calc(100vh - var(--app-navbar-height));
        max-height: calc(100vh - var(--app-navbar-height));
        overflow-y: scroll;
        overflow-x: hidden;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (min-width: 992px) {
    .app-sidebar.sidebar {
        width: var(--app-sidebar-width-lg);
    }

    .app-main.main-content {
        margin-left: var(--app-sidebar-width-lg);
        width: calc(100% - var(--app-sidebar-width-lg));
    }
}

.sidebar .nav-link {
    color: #475569;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.65rem;
    width: 100%;
}

.sidebar .nav-link.active {
    background-color: var(--brand-color-soft);
    color: var(--brand-color);
}

.sidebar .nav-link:hover {
    background-color: rgba(148, 163, 184, 0.15);
}

.main-content {
    background-color: #f8f9fa;
}

.app-main.main-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: 767.98px) {
    .app-dashboard-wrap {
        height: auto;
        overflow: auto;
    }
    
    .app-main.main-content {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

.card,
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: var(--card-shadow);
}

.btn,
.form-control,
.form-select,
.input-group-text,
.badge {
    border-radius: 12px;
}

.form-control,
.form-select {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--soft-border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.btn-primary {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.badge-status-open {
    background-color: #0d6efd;
    color: #fff;
}

.employee-portal-shell {
    height: calc(100vh - var(--app-navbar-height));
    max-height: calc(100vh - var(--app-navbar-height));
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bs-body-bg);
}

.employee-ticket-card {
    overflow: hidden;
}

.employee-ticket-card-header {
    background-color: var(--brand-color);
    border-bottom: none;
}

html[data-bs-theme="dark"] .employee-ticket-card-header {
    background-color: color-mix(in srgb, var(--brand-color) 82%, #0f172a);
}

.employee-info-banner {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.employee-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 2rem;
}

.employee-info-item {
    min-width: 0;
}

.employee-info-label,
.employee-info-value {
    display: block;
}

.employee-info-label {
    color: var(--bs-secondary-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.employee-info-value {
    overflow-wrap: anywhere;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .employee-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

html[data-bs-theme="dark"] .employee-info-banner {
    background-color: rgba(30, 41, 59, 0.55);
    border-color: rgba(148, 163, 184, 0.22);
}

.employee-attachment-file-row {
    width: 100%;
}

html[data-bs-theme="dark"] #attachmentSectionsWrap .btn-outline-primary {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.55);
}

html[data-bs-theme="dark"] #attachmentSectionsWrap .btn-outline-primary:hover {
    color: #0f172a;
    background-color: #93c5fd;
    border-color: #93c5fd;
}

.ticket-portal-layout .my-tickets-card {
    border: 1px solid var(--soft-border);
}

.ticket-portal-layout .my-tickets-card .card-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(148, 163, 184, 0.2));
    border-bottom: 1px solid var(--soft-border);
}

.ticket-portal-layout .my-tickets-card .table tbody tr {
    cursor: pointer;
}

.ticket-portal-layout .my-tickets-card .table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.06);
}

.ticket-portal-layout .row {
    justify-content: center;
}

.ticket-preview-description {
    max-height: 220px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.ticket-slider-toggle {
    position: fixed;
    right: 0;
    top: 40%;
    z-index: 1050;
    border: 1px solid color-mix(in srgb, var(--brand-color) 35%, transparent);
    background: var(--brand-color);
    color: #fff;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    transition: background 0.2s ease, filter 0.2s ease;
}

.ticket-slider-toggle:hover {
    filter: brightness(1.08);
    color: #fff;
}

html[data-bs-theme="dark"] .ticket-slider-toggle {
    background: color-mix(in srgb, var(--brand-color) 85%, #0f172a);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ticket-slider-toggle .ticket-slider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.ticket-slider-toggle .ticket-slider-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.ticket-slider-toggle .ticket-slider-arrow {
    transition: transform 0.2s ease;
}

.ticket-slider-toggle.open .ticket-slider-arrow {
    transform: rotate(180deg);
}

.ticket-slider-toggle.open {
    opacity: 0;
    pointer-events: none;
}

.ticket-slider-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(720px, 94vw);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1045;
    padding: 1rem 1rem 1.5rem;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.22);
    border-left: 1px solid var(--bs-border-color);
}

.ticket-slider-panel.open {
    transform: translateX(0);
}

.ticket-slider-panel .my-tickets-card {
    height: 100%;
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
}

.ticket-slider-panel .my-tickets-card .card-body {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.ticket-slider-panel .table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    background-color: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.75rem 1rem;
}

.ticket-slider-panel .table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.ticket-slider-panel .table tbody tr:hover {
    background-color: var(--bs-tertiary-bg) !important;
}

.ai-chat-widget {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1090;
    font-family: inherit;
}

.ai-chat-fab {
    appearance: none;
    border: none;
    outline: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 1092;
}

.ai-chat-fab:hover,
.ai-chat-fab:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(13, 110, 253, 0.35);
}

.ai-chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1088;
}

.ai-chat-panel {
    position: fixed;
    left: 1rem;
    top: 1rem;
    bottom: 1rem;
    width: clamp(680px, 75vw, 1150px);
    max-height: calc(100vh - 2rem);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    overflow: hidden;
    z-index: 1090;
}

.ai-chat-widget.is-open .ai-chat-backdrop {
    opacity: 1;
    visibility: visible;
}

.ai-chat-widget.is-open .ai-chat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.ai-chat-open {
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8f9ff;
}

.ai-chat-title {
    font-size: 1rem;
    font-weight: 700;
}

.ai-chat-subtitle {
    font-size: 0.82rem;
    color: #6c757d;
}

.ai-chat-close {
    appearance: none;
    border: none;
    outline: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    color: #495057;
    cursor: pointer;
}

.ai-chat-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 500px;
    height: calc(100% - 3.5rem);
}

.ai-chat-sidebar {
    padding: 1rem;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    background: #fbfcff;
}

.ai-chat-history {
    max-height: calc(72vh - 90px);
    overflow-y: auto;
    display: grid;
    gap: 0.45rem;
}

.ai-chat-history-item {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: #212529;
    border-radius: 12px;
    text-align: left;
    padding: 0.75rem;
    width: 100%;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ai-chat-history-item:hover,
.ai-chat-history-item.is-active {
    border-color: rgba(13, 110, 253, 0.3);
    background: rgba(13, 110, 253, 0.06);
}

.ai-chat-history-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.ai-chat-history-meta {
    font-size: 0.78rem;
    color: #6c757d;
}

.ai-chat-main {
    display: flex;
    flex-direction: column;
    background: #fff;
    min-height: 100%;
}

.ai-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.ai-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #6c757d;
    text-align: center;
    min-height: 240px;
    padding: 1rem;
}

.ai-chat-message {
    max-width: 100%;
    line-height: 1.6;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    word-break: break-word;
    white-space: pre-wrap;
}

.ai-chat-message.is-user {
    align-self: flex-end;
    background: #0d6efd;
    color: #fff;
    border-bottom-right-radius: 6px;
}

.ai-chat-message.is-assistant {
    align-self: flex-start;
    background: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 6px;
}

.ai-chat-message.is-pending {
    opacity: 0.75;
}

.ai-chat-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fafbff;
}

.ai-chat-form textarea {
    flex: 1;
    resize: none;
    min-height: 60px;
    max-height: 140px;
    overflow-y: auto;
}

.ai-chat-form button {
    min-width: 48px;
    min-height: 48px;
    padding: 0.75rem 0.95rem;
}

@media (max-width: 767px) {
    .ai-chat-body {
        grid-template-columns: 1fr;
    }

    .ai-chat-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }
}

.my-tickets-status.status-solved {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.my-tickets-status.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.my-tickets-table {
    table-layout: fixed;
    width: 100%;
}

.my-tickets-table th:nth-child(1),
.my-tickets-table td:nth-child(1) {
    width: 120px;
}

.my-tickets-table th:nth-child(2),
.my-tickets-table td:nth-child(2) {
    width: 200px;
}

.my-tickets-table th:nth-child(3),
.my-tickets-table td:nth-child(3) {
    width: 120px;
}

.my-tickets-table th:nth-child(4),
.my-tickets-table td:nth-child(4) {
    width: 150px;
}

.my-tickets-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tickets-by-category-card {
    width: 100%;
}

.category-collapse-toggle {
    width: 100%;
    border: 1px solid var(--soft-border);
    background: rgba(148, 163, 184, 0.15);
    color: #0f172a;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.category-collapse-toggle .category-collapse-arrow {
    transition: transform 0.2s ease;
}

.category-collapse-toggle[aria-expanded="true"] .category-collapse-arrow {
    transform: rotate(180deg);
}

.badge-status-closed {
    background-color: #198754;
    color: #fff;
}

.badge-status-rejected {
    background-color: #dc3545 !important;
    color: #fff;
}

.table thead th {
    background-color: #f0f2f8;
    border-bottom: 1px solid var(--table-header-divider-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

html[data-bs-theme="dark"] .table thead th {
    background-color: #161f2f;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.pagination .page-link {
    border-radius: 999px !important;
    margin: 0 2px;
}

.kpi-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d2b3d;
}

.kpi-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7a90;
}

.kpi-accent {
    color: var(--brand-color);
}

.card-analytics {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.table-compact td,
.table-compact th {
    padding: 0.55rem 0.75rem;
    vertical-align: middle;
}

.badge-soft {
    background-color: var(--brand-color-soft);
    color: var(--brand-color);
}

.chart-shell {
    min-height: 280px;
}

.dashboard-section-title {
    font-weight: 700;
    color: #1d2b3d;
}

.welcome-card {
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.auth-page .auth-login-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 26px 56px rgba(2, 6, 23, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(18px);
}

html[data-bs-theme="dark"] .auth-page .auth-login-card {
    background: rgba(15, 23, 42, 0.3);
}

.welcome-card .list-group-item {
    border: none;
    padding: 0.35rem 0;
}

.text-muted {
    color: #6b7280 !important;
}

.truncate-text,
.cell-text {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.truncate-text .marquee,
.cell-text .marquee {
    display: inline-block;
    white-space: nowrap;
    transition: transform 6s linear;
}

.truncate-text.is-overflow:hover .marquee,
.cell-text.is-overflow:hover .marquee {
    transform: translateX(calc(-1 * var(--overflow-width)));
}

.filter-panel {
    display: none;
}

.filter-panel.is-open {
    display: block;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.action-btn.edit:hover {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.4);
}

.action-btn.delete:hover {
    background: #fef2f2;
    border-color: rgba(248, 113, 113, 0.45);
}

.table td {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    border-right: 0 !important;
    border-left: 0 !important;
}

.table tbody td,
.table tbody th {
    border-bottom: 1px solid var(--table-divider-light) !important;
}

.table tbody tr:last-child td,
.table tbody tr:last-child th {
    border-bottom: 0 !important;
}

html[data-bs-theme="dark"] .table tbody td,
html[data-bs-theme="dark"] .table tbody th {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.modal-backdrop.show {
    background-color: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
}

.ticket-details-page {
    background-color: #f4f7f6;
    min-height: 100%;
    padding-bottom: 1rem;
}

.tooltip-text {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

.tooltip-text:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 120%;
    background: #111827;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 30;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.pdf-viewer {
    height: 320px;
    overflow-y: auto;
    background: #fff;
    min-height: 320px;
}

.company-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 992px) {
    .company-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.company-card {
    height: 100%;
    max-height: 560px;
    display: flex;
    flex-direction: column;
}

.company-card .card-body {
    display: flex;
    flex-direction: column;
}

.dept-scroll {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.dept-search {
    border-radius: 10px;
}

.dept-scroll::-webkit-scrollbar {
    width: 6px;
}

.dept-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dept-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.auth-showcase-nav a,
.auth-showcase-nav span,
.news-header-nav a,
.news-header-nav span {
    transition: color 0.3s ease;
}

.active-tab {
    color: var(--bs-primary) !important;
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 4px;
}

/* Floating AI Chat Button */
.ai-chat-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1040;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.ai-chat-floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

body.ai-chat-open .ai-chat-floating-btn {
    display: none;
}

/* AI Assistant Onboarding Hint Popover */
.ai-assistant-hint-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    padding: 8px 12px;
    border-radius: 10px;
    z-index: 1070;
    white-space: nowrap;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-assistant-hint-popover.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-hint-arrow {
    position: absolute;
    top: -6px;
    right: 18px;
    width: 10px;
    height: 10px;
    background-color: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
    border-left: 1px solid var(--bs-border-color);
    transform: rotate(45deg);
}

@keyframes aiPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.ai-assistant-pulse {
    animation: aiPulseGlow 1.8s infinite;
    border-radius: 50%;
}

.auth-password-toggle {
    color: color-mix(in srgb, var(--brand-color, #2563eb) 72%, #64748b);
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
    opacity: 0.85;
}
.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: var(--brand-color, #2563eb) !important;
    opacity: 1;
    outline: none;
    box-shadow: none;
}

html[data-bs-theme="dark"] .ai-assistant-hint-popover {
    background-color: var(--bs-secondary-bg);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.55);
}

html[data-bs-theme="dark"] .ai-hint-arrow {
    background-color: var(--bs-secondary-bg);
    border-color: rgba(255, 255, 255, 0.16);
}

/* ═══════════════════════════════════════════════════════
   Enterprise ITSM Dashboard Design Tokens & Components
   ═══════════════════════════════════════════════════════ */

/* Unified Enterprise Header */
.enterprise-navbar {
    background-color: var(--bs-body-bg);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
}

.header-center-title {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 800;
    color: var(--bs-body-color);
    letter-spacing: -0.025em;
    line-height: 1.2;
    transition: color var(--transition-fast);
}

.header-center-title:hover {
    color: var(--brand-color, #2563eb);
}

.brand-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.sub-brand-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.brand-divider {
    width: 1px;
    height: 24px;
    background-color: var(--soft-border);
}

.brand-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bs-body-color);
    letter-spacing: -0.01em;
}

.brand-subtext {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.header-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.header-tool-btn:hover {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.theme-dark .header-tool-btn .dark-icon { display: none; }
.theme-dark .header-tool-btn .light-icon { display: inline-block; color: #f59e0b; }
.theme-light .header-tool-btn .dark-icon { display: inline-block; color: #64748b; }
.theme-light .header-tool-btn .light-icon { display: none; }

.user-profile-badge {
    padding: 2px 4px;
    border-radius: 999px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-color, #2563eb), #6366f1);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-role {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-role-admin {
    background-color: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.badge-role-agent {
    background-color: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.badge-role-company_admin {
    background-color: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.badge-role-company_user {
    background-color: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

/* Sidebar Section Headers & Active Pills */
.nav-section-title {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color);
    padding: 0.38rem 0.65rem 0.15rem;
    opacity: 0.85;
}

.sidebar .nav-link {
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.42rem 0.65rem;
    color: var(--bs-secondary-color);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.65rem;
    width: 100%;
}

.sidebar .nav-link i {
    font-size: 0.95rem;
    width: 1.25rem;
    min-width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar .nav-link:hover {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.sidebar .nav-link.active {
    background-color: var(--brand-color-soft, rgba(37, 99, 235, 0.12));
    color: var(--brand-color, #2563eb);
    font-weight: 600;
}

.sidebar .nav-link.active i {
    color: var(--brand-color, #2563eb);
}

/* Dashboard Hero Welcome Banner */
.dashboard-hero-banner {
    background: linear-gradient(135deg, var(--bs-tertiary-bg) 0%, var(--bs-body-bg) 100%);
    border-color: var(--soft-border) !important;
}

/* Dashboard Hero Date Range Filter Container */
.date-range-filter-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    background-color: var(--bs-body-bg);
    border-color: var(--soft-border) !important;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.date-range-filter-card .date-input-group {
    flex: 0 0 156px;
    width: 156px;
}

.date-range-filter-card .form-control {
    font-size: 0.81rem;
    font-weight: 500;
    min-width: 0;
    padding-left: 4px !important;
    padding-right: 2px !important;
}

.date-range-filter-card .filter-separator {
    flex: 0 0 auto;
    user-select: none;
    font-size: 0.85rem;
}

.date-range-filter-card .date-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: var(--radius-sm, 6px);
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.date-range-filter-card .date-filter-btn:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.date-range-filter-card .date-filter-btn:active {
    transform: scale(0.98);
}

@media (max-width: 575.98px) {
    .date-range-filter-card {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        white-space: normal;
    }
    .date-range-filter-card .date-input-group {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .date-range-filter-card .filter-separator {
        display: none;
    }
    .date-range-filter-card .date-filter-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }
}

/* Light & Dark mode refinements for Date Range Filter */
html[data-bs-theme="dark"] .date-range-filter-card {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-bs-theme="dark"] .date-range-filter-card .input-group-text,
html[data-bs-theme="dark"] .date-range-filter-card .form-control {
    background-color: rgba(30, 41, 59, 0.7);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--dark-text-primary, #f8fafc);
}

html[data-bs-theme="dark"] .date-range-filter-card .form-control:focus {
    border-color: var(--brand-color, #2563eb);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

html[data-bs-theme="light"] .date-range-filter-card {
    background-color: #ffffff !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html[data-bs-theme="light"] .date-range-filter-card .input-group-text,
html[data-bs-theme="light"] .date-range-filter-card .form-control {
    background-color: #f8fafc;
    border-color: rgba(203, 213, 225, 0.8);
    color: #1e293b;
}

html[data-bs-theme="light"] .date-range-filter-card .form-control:focus {
    background-color: #ffffff;
    border-color: var(--brand-color, #2563eb);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

/* All Tickets Table & Filter Polish */
.tickets-table-row {
    transition: background-color var(--transition-fast);
}

.table th[data-sort] {
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.table th[data-sort]:hover {
    color: var(--brand-color, #2563eb) !important;
    background-color: var(--bs-tertiary-bg);
}

html[data-bs-theme="dark"] .table-light {
    --bs-table-bg: #162032;
    --bs-table-color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme="dark"] .table-hover > tbody > tr:hover {
    --bs-table-hover-bg: rgba(30, 41, 59, 0.6);
}

/* KPI Metric Cards */
.kpi-card {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--soft-border) !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06) !important;
}

/* Event Sender Radio Cards */
.location-radio-card {
    border: 1px solid var(--bs-border-color, rgba(148, 163, 184, 0.25)) !important;
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    transition: all var(--transition-fast, 0.15s ease);
    cursor: pointer;
}

.location-radio-card:hover {
    border-color: var(--brand-color, #2563eb) !important;
}

.btn-check:checked + .location-radio-card {
    border-color: var(--brand-color, #2563eb) !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
    box-shadow: 0 0 0 1px var(--brand-color, #2563eb) !important;
}

html[data-bs-theme="dark"] .btn-check:checked + .location-radio-card {
    background-color: rgba(37, 99, 235, 0.18) !important;
}

.kpi-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.kpi-interactive-card {
    cursor: pointer;
}

.kpi-interactive-card:hover {
    border-color: var(--brand-color) !important;
}

/* Purple Subtie Utilities */
.bg-purple-subtle {
    background-color: rgba(139, 92, 246, 0.12) !important;
}

.text-purple {
    color: #8b5cf6 !important;
}

.border-purple-subtle {
    border-color: rgba(139, 92, 246, 0.25) !important;
}

/* Chart Canvas Shell */
.chart-shell canvas {
    max-width: 100%;
}

/* Line height utility */
.line-height-tight {
    line-height: 1.25;
}

/* News Skeleton Loader Component */
.skeleton-box {
    display: inline-block;
    height: 1em;
    position: relative;
    overflow: hidden;
    background-color: rgba(226, 232, 240, 0.8);
    border-radius: 8px;
}

html[data-bs-theme="dark"] .skeleton-box {
    background-color: rgba(30, 41, 59, 0.8);
}

.skeleton-box::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.45) 20%,
        rgba(255, 255, 255, 0.7) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: skeleton-shimmer 1.8s infinite;
    content: '';
}

html[data-bs-theme="dark"] .skeleton-box::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.18) 60%,
        rgba(255, 255, 255, 0)
    );
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.news-fade-in {
    animation: newsFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes newsFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Dropdown Item Danger (Sign Out Red Text & Hover Effect) */
.dropdown-item-danger,
.dropdown-item.text-danger,
.dropdown-item-danger i,
.dropdown-item-danger span,
.dropdown-item.text-danger i,
.dropdown-item.text-danger span {
    color: #ef4444 !important;
    transition: color 0.15s ease-in-out;
}

.dropdown-item-danger:hover,
.dropdown-item-danger:focus,
.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus,
.dropdown-item-danger:hover i,
.dropdown-item-danger:hover span,
.dropdown-item.text-danger:hover i,
.dropdown-item.text-danger:hover span {
    background-color: transparent !important;
    color: #dc2626 !important;
}

html[data-bs-theme="dark"] .dropdown-item-danger,
html[data-bs-theme="dark"] .dropdown-item.text-danger,
html[data-bs-theme="dark"] .dropdown-item-danger i,
html[data-bs-theme="dark"] .dropdown-item-danger span,
html[data-bs-theme="dark"] .dropdown-item.text-danger i,
html[data-bs-theme="dark"] .dropdown-item.text-danger span {
    color: #f87171 !important;
}

html[data-bs-theme="dark"] .dropdown-item-danger:hover,
html[data-bs-theme="dark"] .dropdown-item-danger:focus,
html[data-bs-theme="dark"] .dropdown-item.text-danger:hover,
html[data-bs-theme="dark"] .dropdown-item.text-danger:focus,
html[data-bs-theme="dark"] .dropdown-item-danger:hover i,
html[data-bs-theme="dark"] .dropdown-item-danger:hover span,
html[data-bs-theme="dark"] .dropdown-item.text-danger:hover i,
html[data-bs-theme="dark"] .dropdown-item.text-danger:hover span {
    background-color: transparent !important;
    color: #fca5a5 !important;
}

/* ==========================================================================
   Reusable UI Utility Classes (Standardised Components)
   ========================================================================== */
.avatar-icon-sm {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-action-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
}

.th-micro {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.text-truncate-cell {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
