/* ==========================================================================
   APP SHELL — ported from the reference design (Finalized_Wec_Design).
   Web  (>= 960px): 80px dark icon rail + 56px royal-blue app bar.
   Mobile/tablet (< 960px): 54px app bar + slide-in 290px drawer.
   Switching is done by MudBlazor's d-md-* utilities (960px = Breakpoint.Md).
   ========================================================================== */

:root {
    --ccws-rail-w: 108px;
    --ccws-rail-bg: #111c38;
    --ccws-rail-border: #1e293b;
    --ccws-rail-text: #94a3b8;
    --ccws-rail-text-strong: #ffffff;
    --ccws-rail-hover: rgba(255, 255, 255, 0.08);
    --ccws-rail-active: #2563eb;
    --ccws-rail-active-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    --ccws-appbar-h: 56px;
    --ccws-appbar-h-mobile: 54px;
    /* App bar (light): solid white under the logo, fading into a cool sky/blue tint to the right */
    --ccws-appbar-bg: linear-gradient(90deg, #ffffff 0px, #ffffff 240px, #f0f9ff 52%, #eef4ff 100%);    --ccws-appbar-border: rgba(15, 23, 42, 0.08);
    --ccws-appbar-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), inset 0 -1px 0 rgba(255, 255, 255, 0.6);
    --ccws-appbar-text: #0f172a;
    --ccws-appbar-muted: #64748b;
    --ccws-appbar-icon: #475569;
    --ccws-appbar-icon-hover: rgba(37, 99, 235, 0.10);
    --ccws-appbar-accent: #2563eb;
    --ccws-amber: #f59e0b;
    --ccws-drawer-w: 290px;
}

.ccws-theme-dark {
    --ccws-appbar-bg: linear-gradient(120deg, rgba(59, 130, 246, 0.16) 0%, rgba(15, 23, 42, 0.62) 38%, rgba(15, 23, 42, 0.62) 70%, rgba(14, 165, 233, 0.12) 100%);
    --ccws-appbar-border: rgba(255, 255, 255, 0.08);
    --ccws-appbar-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    --ccws-appbar-text: #f1f5f9;
    --ccws-appbar-muted: #94a3b8;
    --ccws-appbar-icon: rgba(226, 232, 240, 0.85);
    --ccws-appbar-icon-hover: rgba(255, 255, 255, 0.09);
}

/* ── Shell: rail + main in a row ─────────────────────────────────────────── */
.ccws-shell.mud-layout {
    display: flex;
    flex-direction: row;
}

.ccws-main {
    margin-left: 0;
}

/* ── Desktop icon rail ───────────────────────────────────────────────────── */
.ccws-rail {
    flex-direction: column;
    align-items: center;
    width: var(--ccws-rail-w);
    min-width: var(--ccws-rail-w);
    max-width: var(--ccws-rail-w);
    height: 100%;
    padding: 14px 6px 12px;
    background: #111c38 !important;
    border-right: 1px solid #1e293b;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    z-index: 100;
    box-sizing: border-box;
}

.ccws-rail::-webkit-scrollbar {
    display: none;
}

.ccws-rail__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.ccws-rail__brand:hover {
    transform: scale(1.05);
}

.ccws-rail__brand-icon.mud-icon-root {
    font-size: 22px;
    color: #ffffff;
}

/* Wordmark variant: plain white text, no background, sized to the rail's nav item width */
.ccws-rail__brand--logo {
    width: 94px;
    height: 44px;
    margin-bottom: 14px;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
}

.ccws-rail__brand--logo:hover {
    transform: none;
}

.ccws-rail__brand-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    color: #ffffff;
}

/* Logo in the top bar: flush to the left corner, filling the full bar height */
@media (min-width: 960px) {
    .ccws-appbar.ccws-topbar .mud-toolbar {
        padding-left: 0;
    }
}

.ccws-appbar .ccws-appbar__titles {
    justify-content: flex-start;
    height: 100%;
}

.ccws-topbar__logo {
    display: block;
    box-sizing: border-box;
    height: var(--ccws-appbar-h);
    width: auto;
    margin: 0;
    padding: 10px 20px;
    background: #ffffff;
    object-fit: contain;
}

/* ── Shared nav menu (rail + drawer) ─────────────────────────────────────── */
.ccws-nav-menu.mud-navmenu {
    padding: 0;
    width: 100%;
}

.ccws-nav-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Nav item wrapper is purely layout — NEVER gets background, shadow, or padding */
.ccws-nav-menu .mud-nav-item,
.ccws-nav-menu .ccws-nav-link {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.ccws-nav-menu .mud-nav-item:hover,
.ccws-nav-menu .ccws-nav-link:hover,
.ccws-nav-menu .mud-nav-item.active,
.ccws-nav-menu .ccws-nav-link.active,
.ccws-nav-menu .ccws-nav-link.ccws-nav-link--active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Interactive link receives all styling, hover, and active states */
.ccws-nav-menu .mud-nav-link {
    color: var(--ccws-rail-text, #cbd5e1) !important;
    border-radius: 12px;
    background: transparent !important;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ccws-nav-menu .mud-nav-link .mud-nav-link-text {
    display: flex;
    margin: 0;
    color: inherit;
}

.ccws-nav-menu .mud-nav-link__icon.mud-icon-root,
.ccws-nav-menu .ccws-nav-link__icon.mud-icon-root {
    color: inherit;
    flex-shrink: 0;
}

/* Hover: ONLY applied to .mud-nav-link for a single clean highlight */
.ccws-nav-menu .mud-nav-link:hover:not(.mud-nav-link-disabled) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.ccws-nav-menu .mud-nav-link:hover:not(.mud-nav-link-disabled) .ccws-nav-link__icon,
.ccws-nav-menu .mud-nav-link:hover:not(.mud-nav-link-disabled) .ccws-nav-link__label {
    color: #ffffff !important;
}

/* Active: blue pill button with shadow */
.ccws-nav-menu .mud-nav-link.active,
.ccws-nav-menu .mud-nav-link.ccws-nav-link--active,
.ccws-nav-menu .ccws-nav-link.active .mud-nav-link,
.ccws-nav-menu .ccws-nav-link.ccws-nav-link--active .mud-nav-link {
    background: var(--ccws-rail-active, #1d61f2) !important;
    color: var(--ccws-rail-text-strong, #ffffff) !important;
    border-inline-end: 0;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(29, 97, 242, 0.45) !important;
}

.ccws-nav-menu .mud-nav-link.active:hover,
.ccws-nav-menu .mud-nav-link.ccws-nav-link--active:hover,
.ccws-nav-menu .ccws-nav-link.active .mud-nav-link:hover,
.ccws-nav-menu .ccws-nav-link.ccws-nav-link--active .mud-nav-link:hover {
    background: var(--ccws-rail-active, #1d61f2) !important;
    color: var(--ccws-rail-text-strong, #ffffff) !important;
    box-shadow: 0 4px 14px rgba(29, 97, 242, 0.45) !important;
}

.ccws-nav-menu .mud-nav-link.active .ccws-nav-link__icon,
.ccws-nav-menu .mud-nav-link.active .ccws-nav-link__label,
.ccws-nav-menu .mud-nav-link.ccws-nav-link--active .ccws-nav-link__icon,
.ccws-nav-menu .mud-nav-link.ccws-nav-link--active .ccws-nav-link__label,
.ccws-nav-menu .ccws-nav-link.active .mud-nav-link .ccws-nav-link__icon,
.ccws-nav-menu .ccws-nav-link.active .mud-nav-link .ccws-nav-link__label {
    color: #ffffff !important;
}

/* Rail variant: icon stacked above a 9px label */
.ccws-nav-menu--rail {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
}

.ccws-nav-menu--rail .ccws-nav-group {
    align-items: center;
    width: 100%;
}

.ccws-nav-menu--rail .ccws-nav-group--bottom {
    margin-top: auto;
}

.ccws-nav-menu--rail .mud-nav-item,
.ccws-nav-menu--rail .ccws-nav-link {
    width: 94px;
    margin: 2px auto;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.ccws-nav-menu--rail .mud-nav-link {
    width: 94px;
    min-height: 52px;
    margin: 0 auto;
    padding: 6px 4px 5px;
    justify-content: center;
    align-items: center;
    border-radius: 12px !important;
}

.ccws-nav-menu--rail .mud-nav-link .mud-nav-link-text {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.ccws-nav-menu--rail .ccws-nav-link__icon.mud-icon-root {
    font-size: 24px;
}

.ccws-nav-menu--rail .ccws-nav-link__label {
    width: 100%;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

/* Reference: the rail's Settings/System cluster sits at the bottom */
.ccws-nav-menu--rail .ccws-nav-group--bottom {
    margin-top: auto;
}

.ccws-nav-divider {
    width: 60px;
    height: 1px;
    margin: 4px auto;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* Drawer variant: full-width icon + text rows */
.ccws-nav-menu--drawer .mud-nav-item,
.ccws-nav-menu--drawer .ccws-nav-link {
    padding: 0 !important;
    margin: 1px 0;
    background: transparent !important;
}

.ccws-nav-menu--drawer .mud-nav-link {
    padding: 10px 12px;
    margin: 0;
    border-radius: 8px !important;
    width: 100%;
}

.ccws-nav-menu--drawer .mud-nav-link .mud-nav-link-text {
    align-items: center;
    gap: 12px;
}

.ccws-nav-menu--drawer .ccws-nav-link__icon.mud-icon-root {
    font-size: 18px;
}

.ccws-nav-menu--drawer .ccws-nav-link__label {
    font-size: 13px;
    font-weight: 500;
}

.ccws-nav-menu--drawer .mud-nav-link.active .ccws-nav-link__label,
.ccws-nav-menu--drawer .mud-nav-link.ccws-nav-link--active .ccws-nav-link__label,
.ccws-nav-menu--drawer .ccws-nav-link.active .mud-nav-link .ccws-nav-link__label {
    font-weight: 700;
}

.ccws-nav-section-title {
    padding: 10px 8px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #64748b;
}

/* ── App bar ─────────────────────────────────────────────────────────────── */
.ccws-appbar.mud-appbar.ccws-topbar {
    height: var(--ccws-appbar-h);
    min-height: var(--ccws-appbar-h);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ccws-appbar-bg);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    color: var(--ccws-appbar-text);
    border-bottom: 1px solid var(--ccws-appbar-border);
    box-shadow: var(--ccws-appbar-shadow);
}

.ccws-appbar .mud-toolbar {
    width: 100%;
    min-height: var(--ccws-appbar-h);
    padding: 0 24px;
    justify-content: space-between;
}

.ccws-appbar__titles {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 100%;
}

.ccws-appbar .ccws-topbar__page-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--ccws-appbar-text) !important;
    letter-spacing: -0.35px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    outline: none !important;
    border: none !important;
}

.ccws-appbar .ccws-topbar__page-title:focus,
.ccws-appbar .ccws-topbar__page-title:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.ccws-appbar__subtitle {
    font-size: 11.5px;
    color: var(--ccws-appbar-muted);
}

.ccws-appbar__menu.mud-icon-button {
    width: 36px;
    height: 36px;
    color: var(--ccws-appbar-icon);
    border-radius: 8px;
}

.ccws-appbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ccws-appbar-text);
    text-decoration: none;
}

.ccws-appbar__brand-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15), 0 0 0 1px var(--ccws-appbar-border);
}

.ccws-appbar__brand-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.ccws-appbar__brand-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Right-hand tools restyled for the glass bar */
.ccws-appbar .ccws-topbar__right {
    gap: 12px;
}

.ccws-appbar .ccws-topbar__icon-btn,
.ccws-appbar .ccws-topbar__icon-btn.mud-button-root {
    width: 32px;
    height: 32px;
    min-width: 0;
    color: var(--ccws-appbar-icon) !important;
    background: transparent !important;
    border-radius: 6px;
}

.ccws-appbar .ccws-topbar__icon-btn:hover {
    color: var(--ccws-appbar-accent) !important;
    background: var(--ccws-appbar-icon-hover) !important;
}

.ccws-appbar .ccws-theme-sun,
.ccws-appbar .ccws-theme-moon {
    color: inherit;
}

.ccws-appbar .ccws-notif-badge {
    background: var(--ccws-amber) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.ccws-appbar .ccws-topbar__divider {
    background-color: var(--ccws-appbar-border);
}

.ccws-appbar .ccws-avatar,
.ccws-appbar .ccws-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ccws-amber);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.ccws-appbar .ccws-topbar__user-profile,
.ccws-appbar .ccws-topbar__user-profile.mud-button-root {
    color: var(--ccws-appbar-text) !important;
    background: transparent !important;
    border-radius: 10px;
}

.ccws-appbar .ccws-topbar__user-profile:hover {
    background: var(--ccws-appbar-icon-hover) !important;
}

.ccws-appbar .ccws-username,
.ccws-theme-dark .ccws-appbar .ccws-username {
    color: var(--ccws-appbar-text);
}

.ccws-appbar .ccws-user-role,
.ccws-theme-dark .ccws-appbar .ccws-user-role {
    color: var(--ccws-appbar-muted);
}

.ccws-appbar .ccws-user-chevron,
.ccws-theme-dark .ccws-appbar .ccws-user-chevron {
    color: var(--ccws-appbar-icon);
}

.ccws-appbar .ccws-lang-btn {
    color: var(--ccws-appbar-text);
    border-color: var(--ccws-appbar-border);
}

.ccws-appbar .ccws-lang-btn:hover {
    color: var(--ccws-appbar-accent);
    background: var(--ccws-appbar-icon-hover);
    border-color: var(--ccws-appbar-accent);
}

/* ── Mobile drawer ───────────────────────────────────────────────────────── */
.ccws-drawer.mud-drawer {
    width: min(var(--ccws-drawer-w), 85vw);
    background: var(--ccws-rail-bg);
    color: var(--ccws-rail-text);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.ccws-drawer .mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    overflow-y: auto;
    scrollbar-width: none;
    box-sizing: border-box;
}

.ccws-drawer .mud-drawer-content::-webkit-scrollbar {
    display: none;
}

.ccws-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ccws-drawer__logo {
    height: 32px;
    max-width: 160px;
    object-fit: contain;
    padding: 4px 8px;
    border-radius: 8px;
    background: #ffffff;
}

.ccws-drawer__close.mud-icon-button {
    color: var(--ccws-rail-text);
}

.ccws-drawer__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.ccws-drawer__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ccws-drawer__avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ccws-amber);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.ccws-drawer__user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ccws-drawer__user-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccws-drawer__user-role {
    font-size: 11px;
    color: #64748b;
}

.ccws-drawer__nav {
    flex: 1;
}

.ccws-drawer__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ccws-drawer__footer-icon.mud-icon-root {
    font-size: 18px;
}

.ccws-drawer__footer-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

/* ── Breakpoint rules ────────────────────────────────────────────────────── */
@media (min-width: 960px) {
    .mud-drawer-overlay {
        display: none !important;
    }
}

@media (max-width: 959.98px) {
    .ccws-appbar.mud-appbar.ccws-topbar,
    .ccws-appbar .mud-toolbar {
        height: var(--ccws-appbar-h-mobile);
        min-height: var(--ccws-appbar-h-mobile);
    }

    .ccws-appbar .mud-toolbar {
        padding: 0 14px;
    }

    .ccws-appbar .ccws-topbar__left,
    .ccws-appbar .ccws-topbar__right {
        gap: 8px;
    }

    .ccws-page-content {
        padding: 12px;
    }
}

/* ── Full workspace (maximize) mode: hide rail, app bar and drawer ───────── */
.ccws-shell--canvas .ccws-rail,
.ccws-shell--canvas .ccws-appbar,
.ccws-shell--canvas .ccws-drawer {
    display: none !important;
}

.ccws-shell--canvas .ccws-page-content {
    padding: 24px 32px 48px 32px;
}

.ccws-canvas-restore.mud-icon-button {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 1400;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    opacity: 0.85;
}

.ccws-canvas-restore.mud-icon-button:hover {
    opacity: 1;
    background: #2563eb;
}

/* ── Rail colour fix: scoped palette so MudBlazor defaults cannot darken items ── */
.ccws-rail {
    --mud-palette-text-primary: #cbd5e1;
    --mud-palette-primary: #1d61f2;
    --mud-palette-action-default-hover: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.ccws-rail .mud-nav-item,
.ccws-rail .ccws-nav-link,
.ccws-drawer .mud-nav-item,
.ccws-drawer .ccws-nav-link {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}

.ccws-rail .mud-nav-item:hover,
.ccws-rail .ccws-nav-link:hover,
.ccws-drawer .mud-nav-item:hover,
.ccws-drawer .ccws-nav-link:hover {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.ccws-rail .mud-nav-link,
.ccws-drawer .mud-nav-link {
    color: #cbd5e1 !important;
    background: transparent !important;
    opacity: 1 !important;
}

.ccws-rail .mud-nav-link .ccws-nav-link__icon,
.ccws-rail .mud-nav-link .ccws-nav-link__label,
.ccws-drawer .mud-nav-link .ccws-nav-link__icon,
.ccws-drawer .mud-nav-link .ccws-nav-link__label {
    color: #cbd5e1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ccws-rail .mud-nav-link:hover:not(.mud-nav-link-disabled),
.ccws-drawer .mud-nav-link:hover:not(.mud-nav-link-disabled) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.ccws-rail .mud-nav-link.active,
.ccws-rail .mud-nav-link.ccws-nav-link--active,
.ccws-rail .ccws-nav-link.active .mud-nav-link,
.ccws-rail .ccws-nav-link.ccws-nav-link--active .mud-nav-link,
.ccws-drawer .mud-nav-link.active,
.ccws-drawer .mud-nav-link.ccws-nav-link--active,
.ccws-drawer .ccws-nav-link.active .mud-nav-link,
.ccws-drawer .ccws-nav-link.ccws-nav-link--active .mud-nav-link {
    background: #1d61f2 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(29, 97, 242, 0.45) !important;
}

.ccws-rail .mud-nav-link.active:hover,
.ccws-rail .mud-nav-link.ccws-nav-link--active:hover,
.ccws-rail .ccws-nav-link.active .mud-nav-link:hover,
.ccws-rail .ccws-nav-link.ccws-nav-link--active .mud-nav-link:hover {
    background: #1d61f2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(29, 97, 242, 0.45) !important;
}

.ccws-rail .mud-nav-link.active .ccws-nav-link__icon,
.ccws-rail .mud-nav-link.active .ccws-nav-link__label,
.ccws-rail .mud-nav-link.ccws-nav-link--active .ccws-nav-link__icon,
.ccws-rail .mud-nav-link.ccws-nav-link--active .ccws-nav-link__label,
.ccws-rail .ccws-nav-link.active .mud-nav-link .ccws-nav-link__icon,
.ccws-rail .ccws-nav-link.active .mud-nav-link .ccws-nav-link__label,
.ccws-drawer .mud-nav-link.active .ccws-nav-link__icon,
.ccws-drawer .mud-nav-link.active .ccws-nav-link__label,
.ccws-drawer .mud-nav-link.ccws-nav-link--active .ccws-nav-link__icon,
.ccws-drawer .mud-nav-link.ccws-nav-link--active .ccws-nav-link__label,
.ccws-drawer .ccws-nav-link.active .mud-nav-link .ccws-nav-link__icon,
.ccws-drawer .ccws-nav-link.active .mud-nav-link .ccws-nav-link__label {
    color: #ffffff !important;
}

/* ── Mobile bottom tab bar (reference mobile design) ─────────────────────── */
.ccws-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
}

.ccws-theme-dark .ccws-bottom-nav {
    background: #0f172a;
    border-top-color: #1e293b;
}

.ccws-bottom-nav__menu.mud-navmenu {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    height: 60px;
}

.ccws-bottom-nav__link.mud-nav-link {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 60px;
    margin: 0;
    padding: 6px 2px 8px;
    border-radius: 0;
    color: #64748b !important;
    background: transparent !important;
}

.ccws-bottom-nav__link .mud-nav-link-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    margin: 0;
}

.ccws-bottom-nav__icon.mud-icon-root {
    font-size: 22px;
    color: inherit !important;
}

.ccws-bottom-nav__label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: inherit;
}

.ccws-bottom-nav__link.mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: #2563eb !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ccws-bottom-nav__link.mud-nav-link.active:not(.mud-nav-link-disabled)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 32px;
    height: 3px;
    margin-left: -16px;
    border-radius: 3px 3px 0 0;
    background: #2563eb;
}

/* ── Mobile top bar: hamburger, CONNEZ wordmark, bell only (reference) ───── */
@media (max-width: 959.98px) {
    .ccws-appbar__brand-badge {
        display: none;
    }

    .ccws-appbar__brand-text {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    .ccws-page-content {
        padding-bottom: 84px;
    }
}

/* ── Topbar Dropdowns & MudMenu Popovers ──────────────────────────────────── */
.ccws-dropdown-popover,
.ccws-dropdown-popover.mud-popover,
.ccws-dropdown-popover .mud-paper,
.ccws-dropdown-popover .mud-list,
.ccws-dropdown-popover .mud-menu-list {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.ccws-dropdown-popover * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.ccws-dropdown-popover::-webkit-scrollbar,
.ccws-dropdown-popover *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.ccws-dropdown-popover.mud-popover {
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
    margin-top: 8px !important;
    z-index: 2000 !important;
}

.ccws-theme-dark .ccws-dropdown-popover.mud-popover,
.fl-dark .ccws-dropdown-popover.mud-popover {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

.ccws-user-popover.mud-popover {
    min-width: 280px !important;
    width: 285px !important;
    padding: 4px 0 !important;
    box-sizing: border-box !important;
}

.ccws-user-popover .mud-list,
.ccws-user-popover .mud-menu-list {
    padding: 4px 8px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.ccws-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
}

.ccws-user-dropdown-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1d61f2;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ccws-theme-dark .ccws-user-dropdown-avatar,
.fl-dark .ccws-user-dropdown-avatar {
    border-color: #334155;
    background: #334155;
    color: #38bdf8;
}

.ccws-user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccws-user-dropdown-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    flex: 1;
}

.ccws-user-dropdown-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccws-theme-dark .ccws-user-dropdown-name,
.fl-dark .ccws-user-dropdown-name {
    color: #f8fafc !important;
}

.ccws-user-dropdown-email {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccws-theme-dark .ccws-user-dropdown-email,
.fl-dark .ccws-user-dropdown-email {
    color: #94a3b8 !important;
}

.ccws-user-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

.ccws-theme-dark .ccws-user-dropdown-divider,
.fl-dark .ccws-user-dropdown-divider {
    background: #334155 !important;
}

.ccws-user-popover .mud-list-item,
.ccws-user-popover .mud-menu-item,
.ccws-user-popover .ccws-user-dropdown-item {
    padding: 10px 14px !important;
    min-height: 42px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    transition: all 0.15s ease !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.ccws-user-popover .mud-list-item:hover,
.ccws-user-popover .mud-menu-item:hover,
.ccws-user-popover .ccws-user-dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #1d61f2 !important;
}

.ccws-theme-dark .ccws-user-popover .mud-list-item,
.ccws-theme-dark .ccws-user-popover .mud-menu-item,
.fl-dark .ccws-user-popover .mud-list-item,
.fl-dark .ccws-user-popover .mud-menu-item {
    color: #cbd5e1 !important;
}

.ccws-theme-dark .ccws-user-popover .mud-list-item:hover,
.ccws-theme-dark .ccws-user-popover .mud-menu-item:hover,
.fl-dark .ccws-user-popover .mud-list-item:hover,
.fl-dark .ccws-user-popover .mud-menu-item:hover {
    background: #0f172a !important;
    color: #38bdf8 !important;
}

.ccws-user-popover .mud-list-item .mud-icon-root,
.ccws-user-popover .mud-menu-item .mud-icon-root,
.ccws-user-popover .ccws-user-dropdown-item .mud-icon-root {
    font-size: 19px !important;
    margin-inline-end: 12px !important;
    color: #64748b !important;
    transition: color 0.15s ease !important;
}

.ccws-user-popover .mud-list-item:hover .mud-icon-root,
.ccws-user-popover .mud-menu-item:hover .mud-icon-root,
.ccws-user-popover .ccws-user-dropdown-item:hover .mud-icon-root {
    color: #1d61f2 !important;
}

.ccws-theme-dark .ccws-user-popover .mud-list-item .mud-icon-root,
.ccws-theme-dark .ccws-user-popover .mud-menu-item .mud-icon-root,
.fl-dark .ccws-user-popover .mud-list-item .mud-icon-root,
.fl-dark .ccws-user-popover .mud-menu-item .mud-icon-root {
    color: #94a3b8 !important;
}

.ccws-theme-dark .ccws-user-popover .mud-list-item:hover .mud-icon-root,
.ccws-theme-dark .ccws-user-popover .mud-menu-item:hover .mud-icon-root,
.fl-dark .ccws-user-popover .mud-list-item:hover .mud-icon-root,
.fl-dark .ccws-user-popover .mud-menu-item:hover .mud-icon-root {
    color: #38bdf8 !important;
}

/* Sign out item */
.ccws-user-popover .mud-list-item.ccws-signout-item,
.ccws-user-popover .mud-menu-item.ccws-signout-item,
.ccws-user-popover .ccws-user-dropdown-item.ccws-signout-item {
    color: #ef4444 !important;
}

.ccws-user-popover .mud-list-item.ccws-signout-item .mud-icon-root,
.ccws-user-popover .mud-menu-item.ccws-signout-item .mud-icon-root,
.ccws-user-popover .ccws-user-dropdown-item.ccws-signout-item .mud-icon-root {
    color: #ef4444 !important;
}

.ccws-user-popover .mud-list-item.ccws-signout-item:hover,
.ccws-user-popover .mud-menu-item.ccws-signout-item:hover,
.ccws-user-popover .ccws-user-dropdown-item.ccws-signout-item:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.ccws-user-popover .mud-list-item.ccws-signout-item:hover .mud-icon-root,
.ccws-user-popover .mud-menu-item.ccws-signout-item:hover .mud-icon-root,
.ccws-user-popover .ccws-user-dropdown-item.ccws-signout-item:hover .mud-icon-root {
    color: #dc2626 !important;
}

.ccws-theme-dark .ccws-user-popover .mud-list-item.ccws-signout-item:hover,
.ccws-theme-dark .ccws-user-popover .mud-menu-item.ccws-signout-item:hover,
.fl-dark .ccws-user-popover .mud-list-item.ccws-signout-item:hover,
.fl-dark .ccws-user-popover .mud-menu-item.ccws-signout-item:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

.ccws-version-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    letter-spacing: 0.2px;
}

.ccws-theme-dark .ccws-version-chip,
.fl-dark .ccws-version-chip {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #93c5fd !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
}

/* Notification Popover */
.ccws-notif-popover.mud-popover {
    width: 320px;
    max-width: 90vw;
    padding: 0 !important;
}

.ccws-notification-menu {
    display: flex;
    flex-direction: column;
}

.ccws-notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

.ccws-theme-dark .ccws-notification-heading,
.fl-dark .ccws-notification-heading {
    border-bottom-color: #334155;
    color: #f8fafc;
}

.ccws-mark-read {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: #2563eb !important;
    padding: 2px 6px !important;
    min-width: 0 !important;
}

.ccws-notification-list {
    display: flex;
    flex-direction: column;
    max-height: 280px;
    overflow-y: auto;
}

.ccws-notification-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 10px 16px !important;
    text-align: left !important;
    text-transform: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    width: 100% !important;
    background: transparent !important;
}

.ccws-theme-dark .ccws-notification-card,
.fl-dark .ccws-notification-card {
    border-bottom-color: #334155 !important;
}

.ccws-notification-card:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.ccws-theme-dark .ccws-notification-card:hover,
.fl-dark .ccws-notification-card:hover {
    background: #0f172a !important;
}

.ccws-notification-critical {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
}

.ccws-notification-title {
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
}

.ccws-notification-text {
    font-size: 12.5px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
    margin: 2px 0;
}

.ccws-theme-dark .ccws-notification-text,
.fl-dark .ccws-notification-text {
    color: #cbd5e1 !important;
}

.ccws-notification-time {
    font-size: 11px;
    color: #94a3b8;
}

.ccws-notification-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    border-top: 1px solid #e2e8f0 !important;
    text-transform: none !important;
    width: 100% !important;
}

.ccws-theme-dark .ccws-notification-footer,
.fl-dark .ccws-notification-footer {
    border-top-color: #334155 !important;
    color: #38bdf8 !important;
}

.ccws-notification-footer:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.ccws-theme-dark .ccws-notification-footer:hover,
.fl-dark .ccws-notification-footer:hover {
    background: #0f172a !important;
}

/* ── Splash / preloader ─────────────────────────────────────────────── */
.ccws-splash {
    --splash-bg: #f1f5f9;
    --splash-fg: #0f172a;
    --splash-muted: #64748b;
    --splash-primary: var(--ccws-primary, #0076FF);
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(0, 118, 255, 0.10), transparent 55%),
        var(--splash-bg);
    color: var(--splash-muted);
    font-family: var(--ccws-font);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}
@media (prefers-color-scheme: dark) {
    .ccws-splash { --splash-bg: #0b1220; --splash-fg: #f8fafc; --splash-muted: #94a3b8; }
}
.ccws-splash--hide { opacity: 0; transform: scale(1.04); visibility: hidden; pointer-events: none; }

.ccws-splash__bubbles { position: absolute; inset: 0; pointer-events: none; }
.ccws-splash__bubbles i {
    position: absolute;
    bottom: -40px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--splash-primary);
    opacity: 0;
    animation: ccws-splash-rise 7s ease-in infinite;
}
.ccws-splash__bubbles i:nth-child(1) { left: 12%; animation-delay: 0s; }
.ccws-splash__bubbles i:nth-child(2) { left: 28%; animation-delay: 1.8s; width: 22px; height: 22px; }
.ccws-splash__bubbles i:nth-child(3) { left: 46%; animation-delay: 3.4s; width: 10px; height: 10px; }
.ccws-splash__bubbles i:nth-child(4) { left: 63%; animation-delay: 0.9s; width: 18px; height: 18px; }
.ccws-splash__bubbles i:nth-child(5) { left: 79%; animation-delay: 2.6s; }
.ccws-splash__bubbles i:nth-child(6) { left: 91%; animation-delay: 4.4s; width: 12px; height: 12px; }

.ccws-splash__emblem {
    position: relative;
    width: 168px;
    height: 168px;
    animation: ccws-splash-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ccws-splash__svg { width: 100%; height: 100%; overflow: visible; }
.ccws-splash__track { fill: none; stroke: var(--splash-primary); stroke-opacity: 0.14; stroke-width: 2; }
.ccws-splash__dash {
    fill: none;
    stroke: var(--splash-primary);
    stroke-opacity: 0.45;
    stroke-width: 1.5;
    stroke-dasharray: 2 9;
    stroke-linecap: round;
    transform-origin: 84px 84px;
    animation: ccws-splash-spin 18s linear infinite reverse;
}
.ccws-splash__arc {
    fill: none;
    stroke: var(--splash-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 90 270;
    transform-origin: 84px 84px;
    animation: ccws-splash-spin 1.5s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}
.ccws-splash__orbit { transform-origin: 84px 84px; animation: ccws-splash-spin 4.5s linear infinite; }
.ccws-splash__orbit circle { fill: var(--splash-primary); }
.ccws-splash__orbit--b { animation-duration: 7s; animation-direction: reverse; }
.ccws-splash__orbit--b circle { fill-opacity: 0.55; }
.ccws-splash__logo {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    object-fit: contain;
    animation: ccws-splash-breathe 2.4s ease-in-out infinite;
}
.ccws-splash__brand {
    color: var(--splash-fg);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.42em;
    padding-left: 0.42em;
    opacity: 0;
    animation: ccws-splash-in 0.6s ease 0.25s forwards;
}
.ccws-splash__bar {
    position: relative;
    width: 180px;
    height: 3px;
    border-radius: 3px;
    background: rgba(0, 118, 255, 0.15);
    overflow: hidden;
    opacity: 0;
    animation: ccws-splash-in 0.6s ease 0.4s forwards;
}
.ccws-splash__bar span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--splash-primary), transparent);
    animation: ccws-splash-bar 1.3s ease-in-out infinite;
}
.ccws-splash__text {
    margin-top: -10px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    animation: ccws-splash-in 0.6s ease 0.6s forwards;
}
.ccws-splash__text::after {
    content: "";
    display: inline-block;
    width: 1.2em;
    text-align: left;
    animation: ccws-splash-dots 1.4s steps(1, end) infinite;
}

@keyframes ccws-splash-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ccws-splash-spin { to { transform: rotate(360deg); } }
@keyframes ccws-splash-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ccws-splash-bar { 0% { left: -45%; } 100% { left: 100%; } }
@keyframes ccws-splash-rise {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 0.35; }
    100% { transform: translateY(-105vh); opacity: 0; }
}
@keyframes ccws-splash-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

@media (prefers-reduced-motion: reduce) {
    .ccws-splash__bubbles, .ccws-splash__dash, .ccws-splash__orbit, .ccws-splash__logo { animation: none; }
    .ccws-splash__bubbles { display: none; }
    .ccws-splash__arc, .ccws-splash__bar span { animation-duration: 3s; }
}


/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM DARK TOAST & SNACKBAR DESIGN SYSTEM (MATCHING REFERENCE UI)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── MudBlazor Snackbar Container & Card ────────────────────────────── */
.mud-snackbar-container {
    padding: 24px !important;
    z-index: 99999 !important;
}

.mud-snackbar {
    background-color: #0c1427 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 10px 10px rgba(0, 0, 0, 0.35) !important;
    padding: 14px 20px !important;
    min-width: 320px !important;
    max-width: 480px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 12px !important;
    font-family: inherit !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mud-snackbar-content-message {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #f8fafc !important;
    letter-spacing: -0.15px !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Circular Icon Badges ────────────────────────────────────────────── */
.mud-snackbar-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.mud-snackbar-icon .mud-icon-root {
    width: 15px !important;
    height: 15px !important;
    font-size: 15px !important;
    color: #ffffff !important;
    margin: 0 !important;
}

/* ── 1. INFO SEVERITY (CYAN / SKY BADGE) ──────────────────────────────── */
.mud-snackbar.mud-alert-filled-info,
.mud-snackbar.mud-alert-text-info,
.mud-snackbar.mud-alert-outlined-info {
    background-color: #0c1427 !important;
    border-left: 3.5px solid #0ea5e9 !important;
}

.mud-snackbar.mud-alert-filled-info .mud-snackbar-icon,
.mud-snackbar.mud-alert-text-info .mud-snackbar-icon,
.mud-snackbar.mud-alert-outlined-info .mud-snackbar-icon {
    background: #0ea5e9 !important;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.45) !important;
}

/* ── 2. SUCCESS SEVERITY (EMERALD / GREEN BADGE) ─────────────────────── */
.mud-snackbar.mud-alert-filled-success,
.mud-snackbar.mud-alert-text-success,
.mud-snackbar.mud-alert-outlined-success {
    background-color: #0c1427 !important;
    border-left: 3.5px solid #10b981 !important;
}

.mud-snackbar.mud-alert-filled-success .mud-snackbar-icon,
.mud-snackbar.mud-alert-text-success .mud-snackbar-icon,
.mud-snackbar.mud-alert-outlined-success .mud-snackbar-icon {
    background: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.45) !important;
}

/* ── 3. WARNING SEVERITY (AMBER / ORANGE BADGE) ──────────────────────── */
.mud-snackbar.mud-alert-filled-warning,
.mud-snackbar.mud-alert-text-warning,
.mud-snackbar.mud-alert-outlined-warning {
    background-color: #0c1427 !important;
    border-left: 3.5px solid #f59e0b !important;
}

.mud-snackbar.mud-alert-filled-warning .mud-snackbar-icon,
.mud-snackbar.mud-alert-text-warning .mud-snackbar-icon,
.mud-snackbar.mud-alert-outlined-warning .mud-snackbar-icon {
    background: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.45) !important;
}

/* ── 4. DANGER / ERROR SEVERITY (CRIMSON / RED BADGE) ────────────────── */
.mud-snackbar.mud-alert-filled-error,
.mud-snackbar.mud-alert-text-error,
.mud-snackbar.mud-alert-outlined-error {
    background-color: #0c1427 !important;
    border-left: 3.5px solid #ef4444 !important;
}

.mud-snackbar.mud-alert-filled-error .mud-snackbar-icon,
.mud-snackbar.mud-alert-text-error .mud-snackbar-icon,
.mud-snackbar.mud-alert-outlined-error .mud-snackbar-icon {
    background: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.45) !important;
}

/* ── Close Button & Action Buttons ──────────────────────────────────── */
.mud-snackbar .mud-button-close,
.mud-snackbar button {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: color 0.15s ease !important;
}

.mud-snackbar .mud-button-close:hover,
.mud-snackbar button:hover {
    color: #ffffff !important;
}

/* ── Syncfusion SfToast Matching Overrides ───────────────────────────── */
.e-toast-container .e-toast {
    background-color: #0c1427 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 10px 10px rgba(0, 0, 0, 0.35) !important;
    padding: 14px 20px !important;
}

.e-toast-container .e-toast .e-toast-message .e-toast-title,
.e-toast-container .e-toast .e-toast-message .e-toast-content {
    color: #f8fafc !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.e-toast-container .e-toast .e-toast-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    margin-right: 12px !important;
}

.e-toast-container .e-toast.e-toast-info {
    border-left: 3.5px solid #0ea5e9 !important;
}
.e-toast-container .e-toast.e-toast-info .e-toast-icon {
    background: #0ea5e9 !important;
}

.e-toast-container .e-toast.e-toast-success {
    border-left: 3.5px solid #10b981 !important;
}
.e-toast-container .e-toast.e-toast-success .e-toast-icon {
    background: #10b981 !important;
}

.e-toast-container .e-toast.e-toast-warning {
    border-left: 3.5px solid #f59e0b !important;
}
.e-toast-container .e-toast.e-toast-warning .e-toast-icon {
    background: #f59e0b !important;
}

.e-toast-container .e-toast.e-toast-danger {
    border-left: 3.5px solid #ef4444 !important;
}
.e-toast-container .e-toast.e-toast-danger .e-toast-icon {
    background: #ef4444 !important;
}
