html[data-theme="dark"] {
    color-scheme: dark;
    background-color: #0A0A0A !important;
    color: var(--foreground);
}

html[data-theme="dark"] body {
    background-color: var(--background) !important;
    color: var(--foreground);
}

html[data-theme="dark"] ._dash-loading {
    mix-blend-mode: lighten;
}

html[data-theme="dark"] ._dash-loading::after {
    filter: invert(1) hue-rotate(180deg);
    border-radius: 12px;
}

html[data-theme="dark"] .new-sidebar .ns-brand-logo {
    filter: invert(1) hue-rotate(180deg);
}

html[data-theme="dark"] .new-sidebar .ns-icon,
html[data-theme="dark"] .new-sidebar .ns-collapse-icon,
html[data-theme="dark"] .new-sidebar .ns-avatar,
html[data-theme="dark"] .ns-user-popover .ns-pop-icon,
html[data-theme="dark"] .ns-user-popover .ns-theme-icon {
    filter: invert(1);
    opacity: 0.75;
}

html[data-theme="dark"] .new-sidebar .new-nav:hover .ns-icon,
html[data-theme="dark"] .new-sidebar .new-nav.active .ns-icon {
    opacity: 1;
}

html[data-theme="dark"] .new-sidebar .new-nav.active .ns-label {
    font-weight: 500;
}

html[data-theme="dark"] .ns-pop-avatar {
    background-color: transparent;
    filter: invert(1);
}

html[data-theme="dark"] .page-breadcrumb .breadcrumb-separator {
    filter: invert(1);
    opacity: 0.6;
}

html[data-theme="dark"] .sc-icon-mono {
    filter: invert(1);
}

html[data-theme="dark"] .feedback-tab-measure-dropdown .dropdown-item.active::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13.3327 4L5.99935 11.3333L2.66602 8' stroke='%23FFFFFF' stroke-width='0.666667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .semantics-alert .btn-close,
html[data-theme="dark"] .semantics-drift-alert .btn-close,
html[data-theme="dark"] .modal-header .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FAFAFA'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}
