:root {
    --surface: #ffffff;
    --bg-soft: #f8fafc;
    --surface-muted: #f8fafc;
    --surface-muted-strong: #f1f5f9;
    --text-main: #0f172a;
    --text-strong: #020617;
    --text-soft: #334155;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --border-strong: #cbd5e1;
    --overlay-soft: rgba(15, 23, 42, 0.4);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 20px 50px rgba(15, 23, 42, 0.15);
    --app-sidebar-width: 18rem;
    --app-shell-pad-left: 1rem;
    --app-shell-pad-right: 1rem;
    --app-topbar-height: 4rem;
}

html[data-theme="dark"] {
    --surface: #0f172a;
    --bg-soft: #020617;
    --surface-muted: #111827;
    --surface-muted-strong: #1e293b;
    --text-main: #e2e8f0;
    --text-strong: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --border-soft: #334155;
    --border-strong: #475569;
    --overlay-soft: rgba(2, 6, 23, 0.72);
    --shadow-soft: 0 12px 32px rgba(2, 6, 23, 0.4);
    --shadow-strong: 0 24px 60px rgba(2, 6, 23, 0.58);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.06), transparent 24%),
        radial-gradient(circle at 80% 0%, rgba(147, 51, 234, 0.06), transparent 25%),
        var(--bg-soft);
}

body,
header,
footer,
aside,
main,
section,
article,
div,
table,
thead,
tbody,
tr,
th,
td,
input,
select,
textarea,
button {
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

#app-shell {
    position: relative;
    z-index: 1;
    padding-left: 0;
    transition: padding-left 220ms ease;
}

.app-shell-row {
    padding-left: var(--app-shell-pad-left);
    padding-right: var(--app-shell-pad-right);
}

.app-shell-main {
    width: 100%;
    min-width: 0;
}

#app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    isolation: isolate;
    width: var(--app-sidebar-width);
    min-width: var(--app-sidebar-width);
    max-width: var(--app-sidebar-width);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.99) 0%, rgba(15, 23, 42, 0.99) 58%, rgba(30, 41, 59, 0.99) 100%);
    border-right-color: rgba(71, 85, 105, 0.42) !important;
    box-shadow: none;
    backdrop-filter: blur(22px);
}

#app-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.12), transparent 20%),
        radial-gradient(circle at 90% 28%, rgba(59, 130, 246, 0.12), transparent 22%);
    background-size: 100% 38px, 38px 100%, auto, auto;
    opacity: 0.42;
    pointer-events: none;
}

#app-sidebar .sidebar-brand-card,
#app-sidebar .sidebar-user-card,
#app-sidebar .sidebar-block,
#app-sidebar .sidebar-icon-link,
#app-sidebar .sidebar-icon-link__icon {
    border: 1px solid transparent !important;
}

#app-sidebar .sidebar-brand-card,
#app-sidebar .sidebar-user-card,
#app-sidebar .sidebar-block,
#app-sidebar .sidebar-icon-link {
    position: relative;
    overflow: hidden;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
}

#app-sidebar .sidebar-brand-card {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.24) 0%, rgba(15, 23, 42, 0.74) 100%);
    border-color: rgba(96, 165, 250, 0.26) !important;
    box-shadow:
        0 18px 36px rgba(2, 6, 23, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#app-sidebar .sidebar-brand-card::before,
#app-sidebar .sidebar-brand-card::after,
#app-sidebar .sidebar-user-card::before {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

#app-sidebar .sidebar-brand-card::before {
    right: -1.6rem;
    top: -1.8rem;
    height: 5.8rem;
    width: 5.8rem;
    background: rgba(56, 189, 248, 0.18);
    filter: blur(0.45rem);
}

#app-sidebar .sidebar-brand-card::after {
    left: -1rem;
    bottom: -1.35rem;
    height: 4.8rem;
    width: 4.8rem;
    background: rgba(37, 99, 235, 0.16);
    filter: blur(0.45rem);
}

#app-sidebar .sidebar-user-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 100%);
    border-color: rgba(71, 85, 105, 0.42) !important;
    box-shadow:
        0 14px 28px rgba(2, 6, 23, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#app-sidebar .sidebar-user-card::before {
    right: -1.1rem;
    bottom: -1.2rem;
    height: 4.6rem;
    width: 4.6rem;
    background: rgba(30, 41, 59, 0.84);
    filter: blur(0.55rem);
}

.sidebar-user-card__status {
    position: absolute;
    right: 1rem;
    top: 1rem;
    height: 0.55rem;
    width: 0.55rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0.24rem rgba(34, 197, 94, 0.16);
}

#app-sidebar .sidebar-block {
    background: transparent !important;
    box-shadow: none;
    border-color: transparent !important;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

#app-sidebar .sidebar-block + .sidebar-block {
    margin-top: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(71, 85, 105, 0.28) !important;
}

#app-sidebar .sidebar-block__header {
    position: relative;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-top: 1px solid rgba(71, 85, 105, 0.28);
    border-bottom: 1px solid rgba(71, 85, 105, 0.28) !important;
    border-left: 1px solid rgba(71, 85, 105, 0.28);
    border-right: 1px solid rgba(71, 85, 105, 0.28);
    border-radius: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#app-sidebar .sidebar-block__header::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    top: 50%;
    height: 1.55rem;
    width: 0.22rem;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8 0%, #60a5fa 100%);
    opacity: 0.9;
}

#app-sidebar .sidebar-block__header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent 55%);
    pointer-events: none;
}

#app-sidebar .sidebar-block__header > * {
    position: relative;
    z-index: 1;
}

#app-sidebar .sidebar-block__icon {
    border: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 10px 24px rgba(2, 6, 23, 0.18);
}

#app-sidebar .sidebar-block__meta p {
    color: #e2e8f0;
}

#app-sidebar .sidebar-icon-link:not(.text-white) {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.64) 100%) !important;
    color: #e2e8f0 !important;
    border-color: rgba(71, 85, 105, 0.38) !important;
    box-shadow:
        0 12px 26px rgba(2, 6, 23, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#app-sidebar .sidebar-icon-link:not(.text-white)::before,
#app-sidebar .sidebar-icon-link.text-white::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 44%);
    pointer-events: none;
}

#app-sidebar .sidebar-icon-link > * {
    position: relative;
    z-index: 1;
}

#app-sidebar .sidebar-icon-link.text-white {
    background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%) !important;
    border-color: rgba(125, 211, 252, 0.55) !important;
    box-shadow:
        0 18px 34px rgba(37, 99, 235, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#app-sidebar .sidebar-icon-link.text-white::before {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 42%);
}

#app-sidebar .sidebar-icon-link__icon {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
    border: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(2, 6, 23, 0.14);
}

#app-sidebar .sidebar-icon-link.text-white .sidebar-icon-link__icon {
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 12px 28px rgba(2, 6, 23, 0.22);
}

#app-sidebar .sidebar-icon-link:not(.text-white) .sidebar-icon-link__content > span:first-child {
    color: #f8fafc !important;
}

#app-sidebar .sidebar-icon-link:not(.text-white) .sidebar-icon-link__content > span:last-child,
#app-sidebar .sidebar-icon-link:not(.text-white) .sidebar-icon-link__chevron {
    color: rgba(203, 213, 225, 0.72) !important;
}

#app-sidebar .sidebar-icon-link.text-white .sidebar-icon-link__content > span:last-child,
#app-sidebar .sidebar-icon-link.text-white .sidebar-icon-link__chevron {
    color: rgba(255, 255, 255, 0.76) !important;
}

#app-sidebar .sidebar-block__header:hover,
#app-sidebar .sidebar-block__header:focus-within {
    border-color: rgba(96, 165, 250, 0.34) !important;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(255, 255, 255, 0.03));
}

#app-sidebar .sidebar-icon-link:hover,
#app-sidebar .sidebar-icon-link:focus-visible,
#app-sidebar .sidebar-icon-link:focus-within {
    transform: translateY(-2px);
}

#app-sidebar .sidebar-icon-link:not(.text-white):hover,
#app-sidebar .sidebar-icon-link:not(.text-white):focus-visible,
#app-sidebar .sidebar-icon-link:not(.text-white):focus-within {
    border-color: rgba(96, 165, 250, 0.34) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.76) 100%) !important;
    box-shadow:
        0 16px 30px rgba(2, 6, 23, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#app-shell > header,
#app-shell > main,
#app-shell > footer {
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    :root {
        --app-shell-pad-left: 0rem;
        --app-shell-pad-right: 2rem;
    }

    #app-shell {
        padding-left: var(--app-sidebar-width);
    }

    html.sidebar-collapsed #app-sidebar,
    body.sidebar-collapsed #app-sidebar {
        transform: translateX(-100%);
    }

    html.sidebar-collapsed #app-shell,
    body.sidebar-collapsed #app-shell {
        padding-left: 0 !important;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    :root {
        --app-shell-pad-left: 1.5rem;
        --app-shell-pad-right: 1.5rem;
    }
}

.sidebar-tooltip {
    display: none;
}

.sidebar-scroll {
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 0.45rem;
}

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

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

@media (min-width: 1024px) {
    .sidebar-scroll {
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        padding-top: 0.75rem;
        padding-bottom: 0.9rem;
    }

    .sidebar-brand-card {
        min-height: 4rem;
        padding: 0.7rem 0;
        border-radius: 1.4rem;
    }

    .sidebar-brand-copy,
    .sidebar-icon-link__chevron,
    .sidebar-user-copy {
        display: none;
    }

    .sidebar-icon-link__content {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .sidebar-icon-link__content > span:first-child {
        display: block;
        max-width: 100%;
        font-size: 0.58rem;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: 0.04em;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }

    .sidebar-icon-link__content > span:last-child {
        display: none;
    }

    .sidebar-block__header {
        position: relative;
        z-index: 1;
        flex-direction: row;
        align-items: center;
        gap: 0.48rem;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0.68rem;
        padding-bottom: 0.68rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        border-radius: 1rem;
    }

    .sidebar-block__header::before {
        display: none;
    }

    .sidebar-block__meta {
        display: block;
        text-align: left;
    }

    .sidebar-block__meta p {
        font-size: 0.58rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #cbd5e1;
        white-space: nowrap;
    }

    .sidebar-block__icon {
        height: 1.64rem !important;
        width: 1.64rem !important;
        border-radius: 0.82rem !important;
    }

    .sidebar-block__icon i {
        font-size: 0.75rem;
    }

    .sidebar-block__nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.72rem;
    }

    .sidebar-icon-link {
        position: relative;
        z-index: 1;
        height: 4.35rem;
        width: 100%;
        max-width: 5.2rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.45rem 0.3rem;
        gap: 0.28rem;
        border-radius: 1.15rem;
    }

    .sidebar-block__header:hover,
    .sidebar-block__header:focus-within,
    .sidebar-icon-link:hover,
    .sidebar-icon-link:focus-visible,
    .sidebar-icon-link:focus-within {
        z-index: 40;
        transform: translateY(-2px);
    }

    .sidebar-icon-link__icon {
        height: 2.68rem;
        width: 2.68rem;
        border-radius: 0.98rem;
    }

    .sidebar-user-card {
        display: flex;
        justify-content: center;
        min-height: 4rem;
        padding: 0.7rem 0;
        border-radius: 1.35rem;
    }

    .sidebar-tooltip {
        display: none !important;
    }
}

.sidebar-floating-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2600;
    width: 16rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    padding: 0.75rem 0.9rem;
    color: #f8fafc;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(16px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.sidebar-floating-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.sidebar-floating-tooltip__title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-floating-tooltip__text {
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(248, 250, 252, 0.8);
}

::selection {
    background: rgba(37, 99, 235, 0.22);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.shadow-strong {
    box-shadow: var(--shadow-strong);
}

.topbar-icon {
    position: relative;
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    border: 1px solid var(--border-soft);
    background-color: var(--surface);
    color: var(--text-soft);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.topbar-icon:hover,
.topbar-icon:focus-visible,
.topbar-icon:focus-within {
    background-color: var(--surface-muted);
    color: var(--text-strong);
}

.topbar-icon--primary {
    border-color: rgba(37, 99, 235, 0.22);
    background-color: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.topbar-icon--info {
    border-color: rgba(14, 165, 233, 0.24);
    background-color: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.topbar-icon--warning {
    border-color: rgba(245, 158, 11, 0.28);
    background-color: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.topbar-icon--danger {
    border-color: rgba(244, 63, 94, 0.24);
    background-color: rgba(244, 63, 94, 0.12);
    color: #be123c;
}

.topbar-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 70;
    min-width: max-content;
    border-radius: 0.65rem;
    background-color: #0f172a;
    padding: 0.42rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
    color: #f8fafc;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    transition: opacity 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.group:hover > .topbar-tooltip,
.group:focus-visible > .topbar-tooltip,
.group:focus-within > .topbar-tooltip {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #475569;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0f172a;
}

html[data-theme="dark"] .topbar-icon {
    background-color: var(--surface);
    border-color: var(--border-soft);
    color: var(--text-soft);
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] .topbar-icon:hover,
html[data-theme="dark"] .topbar-icon:focus-visible,
html[data-theme="dark"] .topbar-icon:focus-within {
    background-color: var(--surface-muted);
    color: var(--text-strong);
}

html[data-theme="dark"] .topbar-icon--primary {
    border-color: rgba(56, 189, 248, 0.28);
    background-color: rgba(37, 99, 235, 0.22);
    color: #93c5fd;
}

html[data-theme="dark"] .topbar-icon--info {
    border-color: rgba(34, 211, 238, 0.26);
    background-color: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
}

html[data-theme="dark"] .topbar-icon--warning {
    border-color: rgba(251, 191, 36, 0.28);
    background-color: rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

html[data-theme="dark"] .topbar-icon--danger {
    border-color: rgba(251, 113, 133, 0.28);
    background-color: rgba(244, 63, 94, 0.18);
    color: #fda4af;
}

html[data-theme="dark"] .topbar-tooltip {
    background-color: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.42);
}

html[data-theme="dark"] .sidebar-floating-tooltip {
    border-color: rgba(71, 85, 105, 0.5);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    color: #f8fafc;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.52);
}

html[data-theme="dark"] #app-sidebar {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.995) 0%, rgba(15, 23, 42, 0.995) 58%, rgba(30, 41, 59, 0.995) 100%);
    border-right-color: rgba(71, 85, 105, 0.48) !important;
    box-shadow: none;
}

html[data-theme="dark"] #app-sidebar::before {
    background:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.12), transparent 20%),
        radial-gradient(circle at 90% 28%, rgba(59, 130, 246, 0.12), transparent 22%);
    background-size: 100% 38px, 38px 100%, auto, auto;
    opacity: 0.46;
}

html[data-theme="dark"] #app-sidebar .sidebar-brand-card {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.26) 0%, rgba(2, 6, 23, 0.82) 100%);
    border-color: rgba(96, 165, 250, 0.28) !important;
}

html[data-theme="dark"] #app-sidebar .sidebar-user-card {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.84) 100%);
}

html[data-theme="dark"] #app-sidebar .sidebar-block {
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] #app-sidebar .sidebar-block__header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-top-color: rgba(71, 85, 105, 0.32);
    border-right-color: rgba(71, 85, 105, 0.32);
    border-left-color: rgba(71, 85, 105, 0.32);
    border-bottom-color: rgba(71, 85, 105, 0.32) !important;
}

html[data-theme="dark"] #app-sidebar .sidebar-block__meta p {
    color: #cbd5e1;
}

html[data-theme="dark"] #app-sidebar .sidebar-icon-link:not(.text-white) {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.68) 100%) !important;
    box-shadow:
        0 12px 26px rgba(2, 6, 23, 0.22),
        inset 0 1px 0 rgba(148, 163, 184, 0.06);
}

html[data-theme="dark"] #app-sidebar .sidebar-icon-link__icon {
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        inset 0 1px 0 rgba(148, 163, 184, 0.12),
        0 10px 24px rgba(2, 6, 23, 0.26);
}

html[data-theme="dark"] #app-sidebar .sidebar-icon-link.text-white {
    background: linear-gradient(145deg, #0f172a 0%, #1d4ed8 55%, #38bdf8 100%) !important;
    box-shadow:
        0 20px 42px rgba(29, 78, 216, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .sidebar-floating-tooltip__text {
    color: rgba(226, 232, 240, 0.76);
}

html[data-theme="dark"] [class~="bg-white"] {
    background-color: var(--surface) !important;
}

html[data-theme="dark"] [class~="bg-white/90"] {
    background-color: rgba(15, 23, 42, 0.88) !important;
}

html[data-theme="dark"] [class~="bg-slate-50"] {
    background-color: var(--surface-muted) !important;
}

html[data-theme="dark"] [class~="bg-slate-100"] {
    background-color: var(--surface-muted-strong) !important;
}

html[data-theme="dark"] [class~="bg-slate-50/50"] {
    background-color: rgba(30, 41, 59, 0.45) !important;
}

html[data-theme="dark"] [class~="bg-slate-200"] {
    background-color: #334155 !important;
}

html[data-theme="dark"] [class~="bg-slate-900"] {
    background-color: #1e293b !important;
}

html[data-theme="dark"] [class~="bg-slate-900/40"] {
    background-color: var(--overlay-soft) !important;
}

html[data-theme="dark"] [class~="text-slate-900"] {
    color: var(--text-strong) !important;
}

html[data-theme="dark"] [class~="text-slate-800"] {
    color: var(--text-main) !important;
}

html[data-theme="dark"] [class~="text-slate-700"] {
    color: var(--text-soft) !important;
}

html[data-theme="dark"] [class~="text-slate-600"],
html[data-theme="dark"] [class~="text-slate-500"] {
    color: var(--text-muted) !important;
}

html[data-theme="dark"] [class~="text-slate-400"] {
    color: #a8b6ca !important;
}

html[data-theme="dark"] [class~="border-slate-200"] {
    border-color: var(--border-soft) !important;
}

html[data-theme="dark"] [class~="border-slate-100"] {
    border-color: #243244 !important;
}

html[data-theme="dark"] [class~="border-slate-300"] {
    border-color: var(--border-strong) !important;
}

html[data-theme="dark"] [class~="divide-slate-200"] > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--border-soft) !important;
}

html[data-theme="dark"] .hover\:bg-slate-100:hover {
    background-color: #1f2937 !important;
}

html[data-theme="dark"] .hover\:bg-slate-50:hover {
    background-color: #1e293b !important;
}

html[data-theme="dark"] .hover\:bg-slate-800:hover {
    background-color: #334155 !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: #0f172a !important;
    border-color: var(--border-soft) !important;
    color: var(--text-main) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted) !important;
}

html[data-theme="dark"] [class~="bg-emerald-50"] {
    background-color: rgba(16, 185, 129, 0.14) !important;
}

html[data-theme="dark"] [class~="bg-emerald-100"] {
    background-color: rgba(16, 185, 129, 0.22) !important;
}

html[data-theme="dark"] [class~="border-emerald-100"] {
    border-color: rgba(16, 185, 129, 0.26) !important;
}

html[data-theme="dark"] [class~="border-emerald-200"] {
    border-color: rgba(16, 185, 129, 0.34) !important;
}

html[data-theme="dark"] .hover\:bg-emerald-100:hover {
    background-color: rgba(16, 185, 129, 0.26) !important;
}

html[data-theme="dark"] [class~="text-emerald-600"] {
    color: #86efac !important;
}

html[data-theme="dark"] [class~="text-emerald-700"] {
    color: #6ee7b7 !important;
}

html[data-theme="dark"] [class~="text-emerald-800/80"] {
    color: rgba(209, 250, 229, 0.86) !important;
}

html[data-theme="dark"] [class~="text-emerald-900"] {
    color: #d1fae5 !important;
}

html[data-theme="dark"] [class~="bg-amber-50"] {
    background-color: rgba(245, 158, 11, 0.14) !important;
}

html[data-theme="dark"] [class~="bg-amber-100"] {
    background-color: rgba(245, 158, 11, 0.22) !important;
}

html[data-theme="dark"] [class~="border-amber-100"] {
    border-color: rgba(245, 158, 11, 0.24) !important;
}

html[data-theme="dark"] [class~="border-amber-200"] {
    border-color: rgba(245, 158, 11, 0.32) !important;
}

html[data-theme="dark"] .hover\:bg-amber-100:hover {
    background-color: rgba(245, 158, 11, 0.28) !important;
}

html[data-theme="dark"] [class~="text-amber-700"] {
    color: #fcd34d !important;
}

html[data-theme="dark"] [class~="text-amber-800"] {
    color: #fde68a !important;
}

html[data-theme="dark"] [class~="text-amber-800/80"] {
    color: rgba(253, 230, 138, 0.88) !important;
}

html[data-theme="dark"] [class~="text-amber-900"] {
    color: #fef3c7 !important;
}

html[data-theme="dark"] [class~="text-amber-950"] {
    color: #fffbeb !important;
}

html[data-theme="dark"] [class~="bg-rose-50"] {
    background-color: rgba(244, 63, 94, 0.14) !important;
}

html[data-theme="dark"] [class~="bg-rose-100"] {
    background-color: rgba(244, 63, 94, 0.22) !important;
}

html[data-theme="dark"] [class~="border-rose-200"] {
    border-color: rgba(244, 63, 94, 0.3) !important;
}

html[data-theme="dark"] .hover\:bg-rose-100:hover {
    background-color: rgba(244, 63, 94, 0.28) !important;
}

html[data-theme="dark"] [class~="text-rose-600"] {
    color: #fda4af !important;
}

html[data-theme="dark"] [class~="text-rose-700"] {
    color: #fda4af !important;
}

html[data-theme="dark"] [class~="bg-indigo-50"] {
    background-color: rgba(99, 102, 241, 0.14) !important;
}

html[data-theme="dark"] [class~="bg-indigo-100"] {
    background-color: rgba(99, 102, 241, 0.22) !important;
}

html[data-theme="dark"] [class~="border-indigo-100"] {
    border-color: rgba(99, 102, 241, 0.24) !important;
}

html[data-theme="dark"] [class~="border-indigo-200"] {
    border-color: rgba(99, 102, 241, 0.32) !important;
}

html[data-theme="dark"] .hover\:bg-indigo-100:hover {
    background-color: rgba(99, 102, 241, 0.28) !important;
}

html[data-theme="dark"] [class~="text-indigo-700"] {
    color: #a5b4fc !important;
}

html[data-theme="dark"] [class~="text-indigo-800"] {
    color: #c7d2fe !important;
}

html[data-theme="dark"] [class~="text-indigo-950"] {
    color: #eef2ff !important;
}

html[data-theme="dark"] [class~="bg-sky-50"],
html[data-theme="dark"] [class~="bg-blue-50"] {
    background-color: rgba(14, 165, 233, 0.12) !important;
}

html[data-theme="dark"] [class~="bg-sky-100"] {
    background-color: rgba(14, 165, 233, 0.2) !important;
}

html[data-theme="dark"] [class~="border-sky-100"],
html[data-theme="dark"] [class~="border-blue-200"] {
    border-color: rgba(14, 165, 233, 0.28) !important;
}

html[data-theme="dark"] [class~="border-sky-200"] {
    border-color: rgba(14, 165, 233, 0.34) !important;
}

html[data-theme="dark"] .hover\:bg-sky-100:hover {
    background-color: rgba(14, 165, 233, 0.26) !important;
}

html[data-theme="dark"] [class~="text-sky-700"],
html[data-theme="dark"] [class~="text-blue-700"] {
    color: #7dd3fc !important;
}

html[data-theme="dark"] [class~="text-sky-700/80"] {
    color: rgba(125, 211, 252, 0.86) !important;
}

html[data-theme="dark"] [class~="text-sky-950"],
html[data-theme="dark"] [class~="text-blue-900"] {
    color: #e0f2fe !important;
}
