
[data-bs-theme=dark] {
    --bs-body-color-semi: #adb5bd;
    --bs-body-bg-semi-2:#191b1e;
    --bs-light-text-semi: #f8f9fa;
    --bs-border-color: #dee2e6;
    --bs-body-bg-color: #f0f0f4;

    --bs-default-simplebar-color: #727477;
    --bs-default-auth-border-color:#495057;
    --bs-default-body-color:#555;
    --bs-default-primary-bg:#fb0;
    --bs-default-active-bg-color:#ffbb00;
    --bs-default-body-bg-color:#1f2226;
    --bs-default-bg-color:#212529;
    --bs-default-txt-color:#333;
    --bs-default-acitve-color:#eeaa00;
    --bs-default-hr-color:#585858;
    --bs-default-nav-color:#999999;
    --bs-default-nav-active-color:#333;
    --bs-default-slider-color:#fb0;
    --bs-default-slider-bg-color:#ffbb00;
    --bs-default-form-border-color:#434343;
    --bs-default-form-color:#adb5bd;
}

/* body */
[data-bs-theme=dark] body {
    background-color:var(--bs-default-body-bg-color);
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .simplebar-scrollbar:before {
    background-color: var(--bs-default-simplebar-color);
}

/* sidebar */
[data-bs-theme=dark] .sidebar-wrapper .sidebar-nav,
[data-bs-theme=dark] .sidebar-wrapper .sidebar-header,
[data-bs-theme=dark] .sidebar-wrapper .sidebar-bottom,
[data-bs-theme=dark] .sidebar-wrapper {
    background-color: var(--bs-default-bg-color);
    border-color:var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .sidebar-wrapper .sidebar-header .logo-name h5 {
    color: var(--bs-body-color-semi);
}


[data-bs-theme=dark] .sidebar-wrapper .sidebar-bottom .user-info .user-name {
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .sidebar-wrapper .sidebar-header .sidebar-close {
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .sidebar-wrapper .sidebar-bottom .user-info .user-designation {
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .sidebar-wrapper .sidebar-bottom .dropdown-menu {

    background-color: var(--bs-body-bg-semi-2);
    border-color:var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .sidebar-wrapper .sidebar-bottom .dropdown-menu .dropdown-item {
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .sidebar-wrapper .sidebar-bottom .dropdown-menu .dropdown-item:hover {
    background-color: var(--bs-default-bg-color);
}


[data-bs-theme=dark] .sidebar-wrapper .metismenu a {
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .sidebar-wrapper .metismenu .mm-active>a {
    color: var(--bs-default-active-bg-color);
    font-weight: 600;
}

[data-bs-theme=dark] .sidebar-wrapper .metismenu a .parent-icon {
    color: var(--bs-body-color-semi);
    background-color: var(--bs-default-bg-color);
    border-color:var(--bs-border-color-translucent)
}

[data-bs-theme=dark] .sidebar-wrapper .metismenu .mm-active>a .parent-icon,
[data-bs-theme=dark] .sidebar-wrapper .metismenu a:hover .parent-icon,
[data-bs-theme=dark] .sidebar-wrapper .metismenu a:focus .parent-icon,
[data-bs-theme=dark] .sidebar-wrapper .metismenu a:active .parent-icon {
    color: var(--bs-default-txt-color);
    text-decoration: none;
    background: var(--bs-default-active-bg-color);
    border-color: var(--bs-default-active-bg-color);
    transition: ease-out .3s;
}

[data-bs-theme=dark] .sidebar-wrapper .metismenu ul {
    background-color: var(--bs-default-bg-color);
}

/*header*/
[data-bs-theme=dark] .top-header .navbar {
    background-color: var(--bs-default-bg-color);
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .top-header .navbar .top-right-menu .nav-item .nav-link,
[data-bs-theme=dark] .top-header .navbar .btn-toggle-menu {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .search-bar input[disabled] {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
}

/* button */
[data-bs-theme=dark] .btn-default {
    background-color: var(--bs-body-color-semi);
    border-color: var(--bs-body-color-semi);
    font-size: 14px;
    font-weight: normal;
    padding: 6px 12px;
    white-space: nowrap;
    border-radius: 4px;
    line-height: 1.2;
    color: #333333;
}

[data-bs-theme=dark] .btn-primary {
    background-color: var(--bs-default-active-bg-color);
    border-color: var(--bs-default-active-bg-color);
    font-size: 14px;
    font-weight: normal;
    padding: 6px 12px;
    white-space: nowrap;
    border-radius: 4px;
    line-height: 1.2;
    color: var(--bs-default-txt-color);
}

[data-bs-theme=dark] .btn-primary.btn-sm {
    font-size: 12px;
    font-weight: normal;
    padding: 5px 10px;
    white-space: nowrap;
    border-radius: 4px;
    line-height: 1.2;
}

[data-bs-theme=dark] .btn-primary.btn-df {
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

[data-bs-theme=dark] .btn-primary:hover {
    background-color: var(--bs-default-acitve-color);
}

[data-bs-theme=dark] .btn-primary:active {
    border-color: var(--bs-default-acitve-color);
    background-color: var(--bs-default-acitve-color);
}

/* switch */
[data-bs-theme=dark] .bootstrap-switch {
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .bootstrap-switch .bootstrap-switch-label {
    /*background-color:  var(--bs-default-bg-color);*/
    background-color: #292e32;
    border-right: 1px solid var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary{
    background-color: var(--bs-default-active-bg-color);
    color: var(--bs-default-txt-color);
}

[data-bs-theme=dark] .bootstrap-switch .bootstrap-switch-handle-off {
    background-color: rgba(0,0,0,0.08);
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .bootstrap-switch-small {
    width: 66px !important;
    height: 30px;
}

[data-bs-theme=dark] .bootstrap-switch-small .bootstrap-switch-container {
    width: 104px !important;
}

[data-bs-theme=dark] .bootstrap-switch-small .bootstrap-switch-container .bootstrap-switch-label {
    width: 32px !important;
}

[data-bs-theme=dark] .bootstrap-switch-normal {
    width: 90px !important;
    height: 32px;
}

[data-bs-theme=dark] .bootstrap-switch-normal .bootstrap-switch-container {
    width: 140px !important;
}

[data-bs-theme=dark] .bootstrap-switch-normal .bootstrap-switch-container .bootstrap-switch-label {
    width: 40px !important;
}

[data-bs-theme=dark] .bootstrap-switch.bootstrap-switch-focused {
    border-color: transparent;
    /*box-shadow: none;*/
    /*border-color: #66afe9;*/
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px var(--bs-default-acitve-color), 0 0 8px var(--bs-default-acitve-color);
    box-shadow: inset 0 1px 1px var(--bs-default-acitve-color), 0 0 8px var(--bs-default-acitve-color);
}

/* nav-tab */
[data-bs-theme=dark] .nav-primary.nav-tabs {
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .nav-primary.nav-tabs .nav-link {
    color: var(--bs-default-nav-color);
}

[data-bs-theme=dark] .nav-primary.nav-tabs .nav-link.active {
    transition: all .2s ease;
    color: var(--bs-body-color-semi)!important;
    padding-top:8px!important;
    border-radius: 0;
    background: var(--bs-default-bg-color);
    border-color: transparent;
    border-top: 4px solid var(--bs-default-active-bg-color) !important;
    border-left: 1px solid var(--bs-border-color-translucent) !important;
    border-right: 1px solid var(--bs-border-color-translucent) !important;
}

[data-bs-theme=dark] .nav-primary.nav-tabs .nav-link:hover {
    border-color: transparent;
}

[data-bs-theme=dark] .nav-primary.nav-tabs .nav-link:hover {
    border-color: transparent;
}

[data-bs-theme=dark] .nav-primary.nav-tabs .nav-link.active:hover {
    border-left-color: var(--bs-border-color-translucent) !important;
    border-right-color: var(--bs-border-color-translucent) !important;
}

[data-bs-theme=dark] .tab-content {
    background-color: var(--bs-default-bg-color);
    color: var(--bs-body-color-semi);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-left: 1px solid var(--bs-border-color-translucent);
    border-bottom: 1px solid var(--bs-border-color-translucent);
    border-right: 1px solid var(--bs-border-color-translucent);
}

/* hr */
[data-bs-theme=dark] hr {
    color: var(--bs-default-hr-color);
    margin:0.6rem 0;
}

/* input slect */
[data-bs-theme=dark] .form-select,
[data-bs-theme=dark] .form-control {
    /*color: var(--bs-body-color-semi);*/
    /*border-color: var(--bs-border-color-translucent);*/
    color: var(--bs-default-form-color);
    border-color: var(--bs-default-form-border-color);
    font-size: 14px;
}

/* pace-progress */
[data-bs-theme=dark] .pace .pace-progress {
    background: var(--bs-default-acitve-color);
}


/* slider */

[data-bs-theme=dark] .slider-wrap,
[data-bs-theme=dark] .slider-wrap .noUi-handle {
    box-shadow: none;
}

[data-bs-theme=dark] .slider-wrap .noUi-handle::before, .slider-wrap .noUi-handle::after {
    display: none;
}

[data-bs-theme=dark] .slider-wrap.noUi-handle .noUi-touch-area {
    border: 1px solid transparent;
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    width: auto;
    height: auto;
}

[data-bs-theme=dark] .slider-wrap.noUi-handle:hover .noUi-touch-area {
    border: 1px dashed #7f7f7f;
}

[data-bs-theme=dark] .slider-wrap {
    height: 10px;
}

[data-bs-theme=dark] .slider-wrap.noUi-target {
    border : none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.66);
    background-color: #383838;
}

[data-bs-theme=dark] .slider-wrap .noUi-connects {
    background: transparent !important;
}

[data-bs-theme=dark] .slider-wrap .noUi-connect {
    background: var(--bs-default-slider-bg-color);
    border-color: var(--bs-default-slider-bg-color);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.2);
}

[data-bs-theme=dark] .slider-wrap .noUi-handle {
    height: 20px;
    width: 20px;
    top: -5px;
    right: -10px; /* half the width */
    border-radius: 10px;
    cursor: pointer;
    background-color: var(--bs-default-slider-color);
    border-color: var(--bs-default-slider-color);
}

/*checkbox*/
[data-bs-theme=dark] .form-check-primary .form-check-input:checked {
    background-color: var(--bs-default-acitve-color);
    border-color: var(--bs-default-acitve-color);
}

[data-bs-theme=dark] .form-check-primary .form-check-input:not(:checked):not(:focus) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e");
}

[data-bs-theme=dark] .form-check-primary .form-check-input:not(:checked):focus,
[data-bs-theme=dark] .form-check-primary .form-check-input:checked:focus
{
    border-color: var(--bs-default-acitve-color);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(255, 193, 7, 0.25)
}

[data-bs-theme=dark] .jconfirm.jconfirm-white .jconfirm-bg,
[data-bs-theme=dark] .jconfirm.jconfirm-light .jconfirm-bg {
    background-color: #626262;
}

[data-bs-theme=dark] .jconfirm .jconfirm-box {
    background-color: var(--bs-default-bg-color);
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .jconfirm .jconfirm-box .input-group-text {
    background-color: transparent;
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .lp-usb-drive .lp-usb-body {
    border: 2px solid var(--bs-body-color);
}

[data-bs-theme=dark] .lp-usb-drive .lp-usb-metal {
    border: 2px solid var(--bs-body-color);
}

[data-bs-theme=dark] .lp-usb-drive .lp-usb-hole {
    background-color: var(--bs-body-color);
}

[data-bs-theme=dark] .lp-usb-ctx.active {
    background-color: var(--bs-default-active-bg-color) !important;
}

[data-bs-theme=dark] .lp-usb-ctx.active .lp-usb-drive .lp-usb-body {
    border-color: var(--bs-default-txt-color);
}

[data-bs-theme=dark] .lp-usb-ctx.active .lp-usb-drive .lp-usb-metal {
    border-color: var(--bs-default-txt-color);
}

[data-bs-theme=dark] .lp-usb-ctx.active .lp-usb-drive .lp-usb-hole {
    background-color: var(--bs-default-txt-color);
}

[data-bs-theme=dark] .modal-header,
[data-bs-theme=dark] .modal-body,
[data-bs-theme=dark] .modal-footer
{
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme=dark] table tr,
[data-bs-theme=dark] table th
{
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .menu .search-input {
    border-color: var(--bs-border-color-translucent) !important;
}

[data-bs-theme=dark] .menu .search-input::placeholder {
    color: var(--bs-body-color-semi) !important;
}

[data-bs-theme=dark] .menu .search-bar-icon {
    color: #666 !important;
}

[data-bs-theme=dark] .menu .search-item-icon {
    background-color: var(--bs-default-bg-color);
    border: 1px solid var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .menu .search-item-option {
    border-color: var(--bs-border-color-translucent) !important;
}

[data-bs-theme=dark] .menu .search-tip-text {
    color: #888 !important;
}

[data-bs-theme=dark] .login  {
    /*background-color: #202122;*/
    background-color: var(--bs-default-body-bg-color);
    width: 100%;
    height: 100%;
}

[data-bs-theme=dark] .login .card  {
    border-color: var(--bs-default-auth-border-color);
}

[data-bs-theme=dark] .login .form-control {
    color: var(--bs-body-bg-color);
    background-color: var(--bs-default-bg-color);
    border: 3px solid var(--bs-default-auth-border-color);
}

[data-bs-theme=dark] .login label {
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .login input:-webkit-autofill {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: var(--bs-body-color-semi);
    caret-color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .login .input-group-text {
    color: var(--bs-body-color-semi);
    border: 2px solid var(--bs-border-color-translucent) !important;
    background: transparent;
}

[data-bs-theme=dark] .login .input-group input {
    border: 2px solid var(--bs-border-color-translucent) !important;
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .login input::placeholder {
    color: #555;
}

[data-bs-theme=dark] .login .input-group input:focus {
    outline: none;
    box-shadow: none;
}

[data-bs-theme=dark] .login .input-group input.input-passwd {
    border-right: none !important;
}

[data-bs-theme=dark] .login .form-check-primary .form-check-input:not(:checked):focus {
    border-color: var(--bs-default-auth-border-color);
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e");
    outline: 0;
    background-color: var(--bs-default-bg-color);
}

[data-bs-theme=dark] .login .form-check-primary .form-check-input:not(:checked):not(:focus) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2885, 85, 85, 1%29'/%3e%3c/svg%3e");
    background-color: var(--bs-default-bg-color);
    border-color: #495057;
}

[data-bs-theme=dark] .user-icon {
    font-size: 2.1rem;
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .logout-icon {
    position: absolute;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .dashboard .flot-text {
    color: var(--bs-body-color-semi) !important;
}

[data-bs-theme=dark] .dashboard .temperature .bar .mask{
    background: #777;
}

[data-bs-theme=dark] .dashboard .iface{
    background: var(--bs-default-bg-color);
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .dashboard .hdmi,
[data-bs-theme=dark] .dashboard .sdi{
    filter: brightness(70%);
}

[data-bs-theme=dark] .stream .play-url {
    background-color: var(--bs-default-bg-color);
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .push .input-group-text {
    background-color: transparent;
    border-color: var(--bs-border-color-translucent);
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .push .dropdown-menu {
    background-color: transparent;
    border-color: var(--bs-border-color-translucent);
    color: var(--bs-body-color-semi);
}
[data-bs-theme=dark] .dropdown-menu:after {
    border-bottom: 6px solid var(--bs-body-color-semi) !important;
}

[data-bs-theme=dark] .dropdown-menu table td a {
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .dropdown-menu table td a:hover {
    background-color: var(--bs-default-active-bg-color);
    border-color: var(--bs-default-active-bg-color);
    color: var(--bs-default-txt-color);
}

[data-bs-theme=dark] .dropdown-menu table td input {
    background-color: transparent;
    border-color: var(--bs-body-color-semi);
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .push .push-bar {
    background-color: transparent;
    border-color: transparent;
}

[data-bs-theme=dark] .mix .lay-border {
    border: 1px solid #999;
}

[data-bs-theme=dark] .sys .input-group-text {
    color: var(--bs-body-color-semi);
    border: 2px solid var(--bs-border-color-translucent) !important;
    background: transparent;
}

[data-bs-theme=dark] .sys .border-right {
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .output .border-right {
    border-right: 1px solid var(--bs-border-color-translucent);
}

[data-bs-theme=dark] .sys .snInput {
    color: var(--bs-body-color-semi);
    background: transparent;
    border-bottom: 1px solid var(--bs-body-color-semi);
}

[data-bs-theme=dark] .sys .snTitle {
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .mix .lp-aspect-ratio .aspect-ratio-content button.btn-default {
    background-color: var(--bs-default-bg-color);
    border-color: var(--bs-default-bg-color);
    color: var(--bs-body-color-semi);
}

[data-bs-theme=dark] .record .rec-bar {
    background-color: transparent;
    border: 1px solid var(--bs-card-border-color);
    color: var(--bs-card-color);
}

[data-bs-theme=dark] .record .rec-bar .btn-default {
    background-color: #a8a9aa;
    border-color: #a8a9aa;
}

[data-bs-theme=dark] .record .rec-file-title {
    background-color: transparent;
    color: var(--bs-card-color);
}

[data-bs-theme=dark] .intercom .intercomBtn{
    border: 4px solid var(--bs-border-color-translucent);
    background-color: transparent;
}
