html.dark-mode-active {
    filter: invert(100%) hue-rotate(180deg) !important;
    background-color: #ffffff !important;
    scroll-behavior: smooth !important;
}

html.dark-mode-active img,
html.dark-mode-active video,
html.dark-mode-active iframe,
html.dark-mode-active canvas,
html.dark-mode-active embed,
html.dark-mode-active object,
html.dark-mode-active figure,
html.dark-mode-active picture,
html.dark-mode-active .no-invert {
    filter: invert(100%) hue-rotate(180deg) !important;
}

html.dark-mode-active .total-earnings-card,
html.dark-mode-active .coupon-card-header,
html.dark-mode-active .fi,
html.dark-mode-active .db-main-balance-card {
    filter: invert(100%) hue-rotate(180deg) !important;
}

html.dark-mode-active [style*="background-image"]:not(.no-invert-bg) {
    filter: invert(100%) hue-rotate(180deg) !important;
}

html.dark-mode-active .dropdown-menu {
    background-color: #1e1e1e !important;
    border-color: #424242 !important;
}

html.dark-mode-active .dropdown-item {
    color: #e0e0e0 !important;
}

html.dark-mode-active .dropdown-item:hover,
html.dark-mode-active .dropdown-item:focus {
    background-color: #2c2c2c !important;
    color: #f5f5f5 !important;
}

html.dark-mode-active .dropdown-divider {
    border-top-color: #424242 !important;
}

.theme-switch-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: default !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.theme-switch-wrapper:hover {
    background-color: transparent !important;
    color: inherit !important;
}

.theme-switch {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
    flex-shrink: 0;
}

.theme-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #ccc !important;
    transition: .4s !important;
}

.slider:before {
    position: absolute !important;
    content: "" !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: .4s !important;
}

input:checked + .slider {
    background-color: #0d6efd !important;
}

input:focus + .slider {
    box-shadow: 0 0 1px #0d6efd !important;
}

input:checked + .slider:before {
    transform: translateX(20px) !important;
}

.slider.round {
    border-radius: 24px !important;
}

.slider.round:before {
    border-radius: 50% !important;
}

.theme-switch-label {
    font-size: 0.875rem !important;
    user-select: none !important;
    line-height: 1.5;
    margin-bottom: 5px;
}

html.dark-mode-active .theme-switch-wrapper.no-invert .slider {
    background-color: #555 !important;
}

html.dark-mode-active .theme-switch-wrapper.no-invert input:checked + .slider {
    background-color: #0b5ed7 !important;
}

html.dark-mode-active .theme-switch-wrapper.no-invert .slider:before {
    background-color: #e0e0e0 !important;
}

html.dark-mode-active .theme-switch-wrapper.no-invert .theme-switch-label {
    color: #e0e0e0 !important;
}
