html.dark-theme .switcher-wrapper {
  background: #12181a;
}

html.dark-theme body {
  background-color: #070d0e;
}
html.dark-theme .page-wrapper {
  background-color: #070d0e;
}
html.dark-theme .page-content {
  color: #e4e5e6;
  background-color: #070d0e;
}

html.dark-theme a {
  color: #fff;
  text-decoration: none;
}
html.dark-theme .text-primary,
html.dark-theme .text-muted {
  color: #e4e5e6 !important;
}
html.dark-theme .alert-danger {
  background-color: #3b1f1f;
  color: #f5c6cb;
  border-color: #e4e5e6;
}

html.dark-theme .alert-success {
  color: #a6f0dd;
  border-color: #4ade80;
}

html.dark-theme .btn-link {
  color: #e4e5e6 !important;
}

html.dark-theme .offcanvas.show:not(.hiding),
html.dark-theme .offcanvas.showing {
  background-color: #12181a;
}

html.dark-theme .table > :not(caption) > * > * {
  color: #e4e5e6;
}

html.dark-theme .text-option {
  color: #ffffff !important;
}

html.dark-theme .h1,
html.dark-theme .h2,
html.dark-theme .h3,
html.dark-theme .h4,
html.dark-theme .h5,
html.dark-theme .h6,
html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme h5,
html.dark-theme h6 {
  color: #e4e5e6;
}
html.dark-theme .text-dark {
  color: #e4e5e6 !important;
}

html.dark-theme .card {
  background-color: #12181a;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.5);
}
html.dark-theme .dataframe thead th {
  background-color: #12181a !important;
  color: #e2e2e2 !important;
  font-weight: normal;
}

html.dark-theme .table-container {
  background-color: #12181a;
  box-shadow: 0 0.1rem 0.7rem rgb(0 0 0 / 20%);
  border: 1px solid #646464;
}

html.dark-theme .table-container thead th {
  background-color: #12181a !important;
  color: #e2e2e2;
  font-weight: normal;
}

html.dark-theme .table-container .table thead tr {
  background: none;
}
html.dark-theme .table-container .table-sticky-header thead th::after {
  background: #737475;
}

html.dark-theme .chat-list .list-group-item.active {
  background-color: #3e4348;
}

html.dark-theme .chat-tab-menu .nav-pills .nav-link.active,
html.dark-theme .chat-tab-menu .nav-pills .show > .nav-link {
  color: #ffffff;
  background-color: rgb(0 123 255 / 0%);
}

html.dark-theme .row.row-group > div {
  border-right: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .card-header {
  border-bottom: 1px solid rgb(255 255 255 / 13%);
  background-color: #12181a !important;
}
html.dark-theme .card-body {
  background-color: #12181a !important;
}
html.dark-theme .card-footer {
  background-color: #12181a !important;
}
html.dark-theme mat-icon {
  color: #e4e5e6;
}
html.dark-theme .mypagination .page-item button:hover {
  background-color: #252628;
}

html.dark-theme .card-footer {
  border-top: 1px solid rgb(255 255 255 / 13%);
}

html.dark-theme .text-secondary {
  color: #a8adb0 !important;
}

/* SCROLLBAR - DARK THEME (minimal changes) */

.dark-theme {
  scrollbar-color: #666 #2a2a2a;
}

.dark-theme * {
  scrollbar-width: thin;
  scrollbar-color: #888 #2a2a2a;
}

html.dark-theme .user-box:hover {
  background: #252323;
}
html.dark-theme .search-bar .form-control:disabled,
html.dark-theme .form-control[readonly] {
  background-color: #12181a !important;
}
html.dark-theme i {
  color: #e4e5e6;
}

html.dark-theme .topbar {
  background-color: #12181a;
  border-bottom: 1px solid rgb(237 237 237 / 12%);
  box-shadow: 0 0.1rem 0.7rem rgb(0 0 0 / 20%);
}
html.dark-theme .search-result-item {
  background-color: #12181a;
}
html.dark-theme .search-result-item:hover {
  background-color: rgb(255 255 255 / 15%);
}
html.dark-theme .search-result-item:hover .search-icon-box {
  background-color: #6e7277;
}
html.dark-theme .user-box {
  border-left: 1px solid rgb(255 255 255 / 0.15);
  border-right: 1px solid rgb(255 255 255 / 0.15);
}

html.dark-theme .user-info .user-name {
  color: #e4e5e6;
}

html.dark-theme .user-info .designattion {
  color: #b3b3b3;
}

html.dark-theme .product-list .row {
  background-color: rgb(255 255 255 / 8%);
}

html.dark-theme .product-img {
  background-color: rgb(0 0 0 / 25%);
  border: 1px solid rgb(255 255 255 / 15%);
}

@media (min-width: 992px) {
  html.dark-theme .product-list .row:hover {
    background-color: rgb(255 255 255 / 15%);
    margin-top: -0.25rem;
    margin-bottom: 0.25rem;
    -webkit-box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.2);
  }
}

html.dark-theme .recent-product-img {
  background-color: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 10%);
}

html.dark-theme .page-footer {
  background-color: #12181a;
  border-top: 1px solid rgb(237 237 237 / 12%);
  color: #b2b4b6;
}

html.dark-theme .mobile-toggle-menu {
  color: #e4e5e6;
}

html.dark-theme .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

html.dark-theme .logo-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}

html.dark-theme .toggle-icon {
  color: #e7e9ec;
}

html.dark-theme .topbar .navbar-nav .nav-link {
  border-left: 0 solid rgb(255 255 255 / 12%);
  color: #e4e5e6;
}

html.dark-theme .topbar .navbar .dropdown-app .dropdown-menu .app-name {
  color: #e4e5e6;
}

html.dark-theme .topbar .navbar .dropdown-app .dropdown-menu .app-box:hover {
  background-color: #32363a;
}

html.dark-theme .topbar .navbar .dropdown-menu {
  border: 1px solid rgb(241 241 241 / 15%);
}

html.dark-theme .dropdown-large .cart-product {
  border: 1px solid rgb(241 241 241 / 15%);
}

html.dark-theme .dropdown-large .cart-product-title {
  color: #e4e5e6;
}

html.dark-theme .dropdown-large .cart-product-cancel {
  color: #e4e5e6;
  border: 1px solid rgb(241 241 241 / 15%);
  background-color: rgb(255 255 255 / 12%);
}

html.dark-theme .topbar .navbar .navbar-nav .nav-link:hover,
html.dark-theme .topbar .navbar .navbar-nav .nav-link:focus {
  background-color: rgb(255 255 255 / 12%);
  color: #ffffff;
}

html.dark-theme .search-bar input[disabled] {
  color: #e4e5e6;
  background-color: rgba(255, 255, 255, 0.08);
  border: 0px solid rgb(241 241 241 / 15%);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0%);
}

html.dark-theme .search-bar input::placeholder {
  color: #e4e5e6 !important;
  opacity: 0.5 !important;
}

html.dark-theme::placeholder {
  color: #e4e5e6 !important;
  opacity: 0.5 !important;
}

html.dark-theme .dropdown-menu {
  color: #e4e5e6;
  background-color: #12181a;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.3);
}

html.dark-theme .dropdown-item {
  color: #acafb3;
}

html.dark-theme .dropdown-menu .dropdown-item:hover {
  background-color: #303337;
}

html.dark-theme .dropdown-divider {
  border-top: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .dropdown-large .dropdown-menu .dropdown-item {
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .dropdown-large .msg-name {
  color: #fff;
}

html.dark-theme .dropdown-large .msg-info {
  color: #80868c;
}

html.dark-theme .dropdown-large .msg-time {
  color: #b1afaf;
}

html.dark-theme .dropdown-large .msg-header {
  border-bottom: 1px solid rgb(255 255 255 / 15%);
  background: 0 0;
}

html.dark-theme .dropdown-large .msg-header .msg-header-title {
  color: #e4e5e6;
}

html.dark-theme .dropdown-large .msg-header .msg-header-clear {
  color: #999ea2;
}

html.dark-theme .dropdown-large .msg-footer {
  color: #d1d7de;
  border-top: 1px solid rgb(255 255 255 / 0.15);
}

html.dark-theme .btn-white {
  color: #e4e5e6;
  background-color: #12181a;
  border-color: rgb(206 212 218 / 45%);
  border-top: 1px solid #63686f;
  border-left: 1px solid #63686f;
}

html.dark-theme .user-img {
  border: 1px solid rgb(255 255 255 / 28%);
}

html.dark-theme .customers-contacts a {
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 14%);
  color: #fff;
}

@media (min-width: 992px) {
  html.dark-theme .customers-list .customers-list-item:hover {
    background-color: rgb(255 255 255 / 12%);
  }
}

html.dark-theme .order-actions a {
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 14%);
  color: #fff;
}

html.dark-theme .alert {
  background-color: #3b1f1f;
}

html.dark-theme .accordion-button {
  color: #bac0c6;
  border: 1px solid rgb(255 255 255 / 14%);
}

html.dark-theme .accordion-button:not(.collapsed) {
  background-color: rgb(255 255 255 / 12%);
}

html.dark-theme .nav-tabs .nav-link {
  color: #e3e4e5;
}

html.dark-theme .nav-tabs .nav-item.show .nav-link,
html.dark-theme .nav-tabs .nav-link.active {
  color: #ffffff;
  background-color: #12181a;
}

html.dark-theme .nav-tabs {
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

html.dark-theme .nav-primary.nav-tabs .nav-link.active {
  border-color: rgb(255 255 255 / 12%) rgb(255 255 255 / 12%)
    rgb(255 255 255 / 14%);
}

html.dark-theme .nav-danger.nav-tabs .nav-link.active {
  border-color: #f41127 #f41127 rgb(255 255 255 / 0.14);
}

html.dark-theme .nav-success.nav-tabs .nav-link.active {
  border-color: #17a00e #17a00e rgb(255 255 255 / 0.14);
}

html.dark-theme .nav-warning.nav-tabs .nav-link.active {
  border-color: #ffc107 #ffc107 rgb(255 255 255 / 0.14);
}

html.dark-theme .nav-pills .nav-link {
  color: #e7e8ea;
}

html.dark-theme .theme-icons {
  background-color: #12181a;
}

html.dark-theme .pricing-table .card ul li.list-group-item {
  color: #e5dede;
}

html.dark-theme .table {
  --bs-table-bg: transparent;
  --bs-table-striped-color: #e4e5e6;
  --bs-table-striped-bg: rgba(255, 255, 0255, 0.05);
  --bs-table-active-color: #e4e5e6;
  --bs-table-active-bg: rgba(255, 255, 255, 0.1);
  --bs-table-hover-color: #e4e5e6;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
  width: 100%;
  color: #e4e5e6;
  vertical-align: top;
  border-color: rgb(255 255 255 / 12%);
}

html.dark-theme .table-light {
  /*--bs-table-bg: rgb(255 255 255 / 12%);*/
  --bs-table-bg: rgb(51 51 51 / 1);
  color: #fff;
}

/*new add*/
html.dark-theme .total-bgcolor {
  --bs-table-bg: rgb(61 61 61 / 1);
}

html.dark-theme .table td,
html.dark-theme .table th {
  border-color: rgb(255 255 255 / 12%);
}
html.dark-theme .table th {
  font-weight: 500 !important;
}

html.dark-theme .border {
  border: 1px solid rgb(255 255 255 / 12%) !important;
}

html.dark-theme .border-end {
  border-right: 1px solid rgb(255 255 255 / 12%) !important;
}

html.dark-theme .border-3 {
  border-width: 3px !important;
}

html.dark-theme .topbar .navbar .dropdown-menu::after {
  background: #12181a;
  border-top: 1px solid rgb(241 241 241 / 15%);
  border-left: 1px solid rgb(241 241 241 / 15%);
}

html.dark-theme .topbar .navbar .dropdown-large .dropdown-menu::after {
  background: #12181a;
  border-top: 1px solid rgb(241 241 241 / 15%);
  border-left: 1px solid rgb(241 241 241 / 15%);
}

html.dark-theme .highcharts-background {
  fill: rgb(255 255 255 / 0%);
}

html.dark-theme .highcharts-title {
  fill: #e4e5e6 !important;
  font-size: 1.5em;
}

html.dark-theme .highcharts-root text {
  fill: #8f949a;
}

html.dark-theme .highcharts-grid-line {
  fill: none;
  stroke: rgb(255 255 255 / 12%);
}

html.dark-theme .sidebar-wrapper {
  background: #12181a;
  border-right: 1px solid rgb(255 255 255 / 12%);
  box-shadow: 0 0.1rem 0.7rem rgb(0 0 0 / 20%) !important;
}

html.dark-theme .sidebar-wrapper .sidebar-header {
  background: transparent;
  border-right: 1px solid rgb(255 255 255 / 12%);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .sidebar-wrapper .sidebar-header .logo-text {
  color: #e7e9ec;
}

html.dark-theme .sidebar-wrapper .sidebar-header .toggle-btn {
  color: #e7e9ec;
}

html.dark-theme .sidebar-wrapper .sidebar-header .toggle-btn:hover {
  color: #fff;
}

html.dark-theme .sidebar-wrapper .sidebar-header .toggle-btn:active {
  color: #fff;
  background: rgb(255 255 255 / 25%);
}

html.dark-theme .sidebar-wrapper .metismenu a {
  color: #9ea4aa;
}

html.dark-theme .sidebar-wrapper .metismenu .mm-active > a,
html.dark-theme .sidebar-wrapper .metismenu a:active,
html.dark-theme .sidebar-wrapper .metismenu a:focus,
html.dark-theme .sidebar-wrapper .metismenu a:hover {
  color: #fff;
  text-decoration: none;
  background-color: rgb(255 255 255 / 12%);
}

html.dark-theme .sidebar-wrapper .metismenu ul {
  border: 1px solid #ffffff00;
  background: rgb(255 255 255 / 0%);
}

html.dark-theme .simplebar-scrollbar:before {
  background: rgba(255, 255, 255, 0.4);
}

html.dark-theme .footer {
  background: #12181a;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .btn-light-warning {
  color: #ff9305;
}

html.dark-theme .btn-light-dark {
  color: #757c83;
}

html.dark-theme .modal-content {
  background-color: #12181a;
}

html.dark-theme .modal-header {
  border-bottom: 1px solid rgb(222 226 230 / 16%);
}

html.dark-theme .modal-footer {
  border-top: 1px solid rgb(222 226 230 / 16%);
}

html.dark-theme .email-wrapper {
  background: #12181a;
  box-shadow: 0 0.1rem 0.7rem rgb(0 0 0 / 24%);
}

html.dark-theme .email-sidebar {
  background: #12181a;
  border-right: 1px solid rgb(255 255 255 / 0.12);
}

html.dark-theme .email-sidebar-header {
  background: #12181a;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  border-right: 0 solid rgb(255 255 255 / 12%);
}

html.dark-theme .email-navigation {
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

html.dark-theme .email-navigation a.list-group-item {
  color: #e4e5e6;
  background-color: #12181a;
  border-bottom: 1px solid rgb(0 0 0 / 0%);
}

html.dark-theme .email-navigation a.list-group-item:hover {
  background-color: rgb(0 123 255 / 15%);
}

html.dark-theme .email-meeting a.list-group-item {
  color: #e4e5e6;
  background-color: #12181a;
  border-bottom: 1px solid rgb(0 0 0 / 0%);
}

html.dark-theme .email-meeting a.list-group-item:hover {
  background-color: rgb(0 123 255 / 15%);
}

html.dark-theme .list-group-item {
  background-color: #12181a;
  color: #fbfcfd;
  border: 1px solid rgb(255 255 255 / 13%);
}

html.dark-theme .list-group-item.active {
  z-index: 2;
  color: #fff;
  background-color: #008cff;
  border-color: #008cff;
}

html.dark-theme .list-group-item:hover {
  background-color: rgb(255 255 255 / 10%);
}

html.dark-theme .email-navigation a.list-group-item.active {
  color: #fbfcfd;
  font-weight: 600;
  background-color: rgb(13 110 253 / 14%);
}

html.dark-theme .list-group-flush > .list-group-item {
  border-width: 0 0 1px;
}

html.dark-theme .border-top {
  border-top: 1px solid rgb(255 255 255 / 13%) !important;
}

html.dark-theme .email-header {
  background: #12181a;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

html.dark-theme .email-content {
  background: #12181a;
}

html.dark-theme .email-list div.email-message {
  background: #12181a;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  color: #e4e5e6;
}

html.dark-theme .email-list div.email-message:hover {
  transition: all 0.2s ease-out;
  background: #434a50;
}

html.dark-theme .bg-body {
  background-color: #12181a !important;
}

html.dark-theme .email-time {
  font-size: 13px;
  color: #8c969e;
}

html.dark-theme .chat-time {
  font-size: 13px;
  color: #8c969e;
}

html.dark-theme .widgets-icons {
  color: #12181a;
}

html.dark-theme .invoice {
  background-color: #12181a;
}

html.dark-theme .chat-wrapper {
  background: #12181a;
  box-shadow: 0 0.1rem 0.7rem rgb(0 0 0 / 22%);
}

html.dark-theme .chat-sidebar {
  background: #12181a;
  border-right: 1px solid rgb(255 255 255 / 13%);
}

html.dark-theme .chat-sidebar-header {
  background: #12181a;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
  border-right: 0 solid rgb(255 255 255 / 13%);
}

html.dark-theme .chat-header {
  background: #12181a;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

html.dark-theme .chat-tab-menu li a.nav-link {
  color: #c3c5c8;
}

html.dark-theme .product-img-2 {
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 14%);
}

html.dark-theme .chat-title {
  color: #e4e5e6;
}

html.dark-theme .chat-msg {
  font-size: 14px;
  color: #848992;
}

html.dark-theme .chat-top-header-menu a {
  color: #c3c5c8;
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 15%);
}

html.dark-theme .chat-content-leftside .chat-left-msg {
  background-color: #12181a;
}

html.dark-theme .chat-content-rightside .chat-right-msg {
  background-color: #41484e;
}

html.dark-theme .chat-footer {
  background: #12181a;
  border-top: 1px solid rgb(255 255 255 / 13%);
}

html.dark-theme .chat-footer-menu a {
  color: #c3c5c8;
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 15%);
}

html.dark-theme .fm-menu .list-group a {
  color: #c3c5c8;
}

html.dark-theme .fm-icon-box {
  background: #12181a;
  color: #fff;
}

html.dark-theme .contacts-social a {
  background: #12181a;
  color: #fff;
}

html.dark-theme .invoice table td,
html.dark-theme .invoice table th {
  background: rgb(255 255 255 / 12%);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .invoice table .no {
  color: #fff;
  background: #007bff;
}

html.dark-theme .invoice main .notices {
  background: #12181a;
}

html.dark-theme .invoice footer {
  color: #e4e5e6;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .fc-theme-standard td,
html.dark-theme .fc-theme-standard th {
  border: 1px solid rgb(255 255 255 / 0.12);
}

html.dark-theme .fc-theme-standard .fc-scrollgrid {
  border: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .fc .fc-col-header-cell-cushion {
  color: #fff;
}

html.dark-theme .fc .fc-daygrid-day-number {
  color: #fff;
}

html.dark-theme .breadcrumb {
  background-color: rgb(33 37 41 / 0%);
}

html.dark-theme .breadcrumb-item.active {
  color: #8b969f;
}

html.dark-theme .breadcrumb-title {
  border-right: 1.5px solid rgb(255 255 255 / 18%);
}

html.dark-theme .btn-outline-secondary {
  color: #c5cace;
  border-color: #c2c9ce;
}

html.dark-theme .btn-light {
  color: #fff;
  background-color: rgb(255 255 255 / 15%);
  border-color: rgb(255 255 255 / 22%);
}

html.dark-theme .btn-light:hover {
  color: #fff;
  background-color: rgb(255 255 255 / 25%);
  border-color: rgb(255 255 255 / 32%);
}

html.dark-theme .btn-dark {
  color: #fff;
  background-color: #181e22;
  border-color: #181e22;
}

html.dark-theme .btn-dark:hover {
  color: #fff;
  background-color: #13181b;
  border-color: #13181b;
}

html.dark-theme .btn-outline-dark {
  color: #fff;
  border-color: #181e22;
}

html.dark-theme .page-link {
  color: #b2b6ba;
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 0.12);
}

html.dark-theme .page-item.disabled .page-link {
  color: #b0b6bc;
  background-color: rgb(255 255 255 / 28%);
  border-color: rgb(222 226 230 / 14%);
}

html.dark-theme .progress {
  background-color: rgb(255 255 255 / 14%);
}

html.dark-theme .chip {
  color: rgb(198 200 203);
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 15%);
}

html.dark-theme .bg-light {
  background-color: rgb(255 255 255 / 5%) !important;
}

html.dark-theme ul.icons li {
  box-shadow: 0 1px 5px #13171a;
  background: #12181a;
}

html.dark-theme ul.icons li i {
  color: #fff;
}

html.dark-theme .icon-box {
  background: #12181a;
  box-shadow: 0 1px 5px #161a1e;
}

html.dark-theme .pByfF i {
  color: #fff;
}

/* select 2 */

html.dark-theme .select2-container--bootstrap-5 .select2-selection {
  color: #c0c8d1;
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 31%);
}

html.dark-theme
  .select2-container--bootstrap-5
  .select2-selection--multiple
  .select2-selection__rendered
  .select2-selection__choice {
  color: #c8c8c8;
  border: 1px solid rgb(255 255 255 / 26%);
}

html.dark-theme
  .select2-container--bootstrap-5
  .select2-selection--single
  .select2-selection__rendered {
  color: #ffffff;
}

html.dark-theme
  .select2-container--bootstrap-5
  .select2-dropdown
  .select2-search
  .select2-search__field {
  color: #ffffff;
  background-color: #4c4d53;
  border: 1px solid rgb(255 255 255 / 31%);
}

html.dark-theme .select2-container--bootstrap-5 .select2-dropdown {
  color: #d0d2d3;
}

html.dark-theme .form-control {
  color: #c0c8d1;
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 34%);
}

html.dark-theme .form-select {
  color: #c0c8d1;
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 34%);
}
html.dark-theme .border-primary {
  border-color: rgb(255 255 255 / 34%) !important;
}

html.dark-theme .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

html.dark-theme .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

html.dark-theme .form-control:disabled,
html.dark-theme .form-control[readonly] {
  background-color: rgb(255 255 255 / 22%);
}

html.dark-theme .form-control::placeholder {
  color: #e4e5e6 !important;
  opacity: 0.5 !important;
}

html.dark-theme .picker__input {
  background-color: #12181a !important;
  border: 1px solid rgb(255 255 255 / 34%) !important;
}

html.dark-theme .select2-container--bootstrap4 .select2-selection {
  background-color: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.35);
}

html.dark-theme .select2-dropdown {
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 38%);
}

html.dark-theme .select2-search--dropdown .select2-search__field {
  border: 1px solid rgb(255 255 255 / 34%);
  background-color: rgb(255 255 255 / 14%);
  color: #e3dfdf;
}

html.dark-theme
  .select2-container--bootstrap4
  .select2-selection--multiple
  .select2-selection__choice {
  color: #dee1e5;
  border: 1px solid rgb(255 255 255 / 55%);
  background: #12181a;
}

html.dark-theme
  .select2-container--bootstrap4
  .select2-selection--multiple
  .select2-selection__rendered
  .select2-search__field {
  background: 0 0;
  color: #e6e1e1;
}

html.dark-theme
  .select2-container--bootstrap4
  .select2-dropdown
  .select2-results__option[aria-selected="true"] {
  background-color: rgb(255 255 255 / 20%);
}

html.dark-theme .ff_fileupload_wrap .ff_fileupload_dropzone {
  background-color: rgb(252 252 252 / 14%);
  border: 2px dashed rgb(255 255 255 / 50%);
}

html.dark-theme .imageuploadify {
  background-color: rgb(255 255 255 / 14%);
  border: 2px dashed rgb(255 255 255 / 0.5);
}

html.dark-theme .bootstrap-tagsinput {
  background-color: #12181a;
  border: 1px solid rgb(255 255 255 / 35%);
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 37%);
  color: #e5e0e0;
}

html.dark-theme .input-group-text {
  color: #d1d7de;
  background-color: #3e464c;
  border: 1px solid rgb(255 255 255 / 35%);
}

html.dark-theme .table-bordered td,
html.dark-theme .table-bordered th {
  border: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .table-dark {
  background-color: #1d2126;
}

html.dark-theme .table .thead-light th {
  background-color: rgb(255 255 255 / 20%);
  border-color: #fff;
}

html.dark-theme .table-bordered {
  border: 1px solid rgb(255 255 255 / 12%);
}

html.dark-theme .login-card {
  border-right: 1px solid rgb(255 255 255 / 12%) !important;
}

html.dark-theme .border-bottom {
  border-bottom: 1px solid rgb(255 255 255 / 14%) !important;
}

html.dark-theme .navbar-light .navbar-nav .nav-link {
  color: rgb(255 255 255 / 50%);
}

html.dark-theme .navbar-light .navbar-nav .active > .nav-link,
html.dark-theme .navbar-light .navbar-nav .nav-link.active,
html.dark-theme .navbar-light .navbar-nav .nav-link.show,
html.dark-theme .navbar-light .navbar-nav .show > .nav-link {
  color: rgb(255 255 255 / 90%);
}

html.dark-theme .bg-light-purple {
  background-color: rgb(130 128 255 / 32%) !important;
}

html.dark-theme .bg-light-primary {
  background-color: rgb(103 58 183 / 33%) !important;
}

html.dark-theme .bg-light-danger {
  background-color: rgb(220 53 69 / 33%) !important;
}

html.dark-theme .bg-light-shineblue {
  background-color: rgb(1 215 255 / 33%) !important;
}

html.dark-theme .bg-light-cyne {
  background-color: rgb(0 139 139 / 32%) !important;
}

html.dark-theme .bg-light-warning {
  background-color: rgb(255 193 7 / 32%) !important;
}

html.dark-theme .bg-light-success {
  background-color: rgb(40 167 69 / 33%) !important;
}

html.dark-theme .bg-light-info {
  background-color: rgb(25 143 237 / 22%) !important;
}

html.dark-theme .bg-light-sinata {
  background-color: rgb(165 43 187 / 33%) !important;
}

html.dark-theme .bg-light-mehandi {
  background: rgb(131 152 56 / 32%) !important;
}

html.dark-theme .logo-white {
  display: block;
}

html.dark-theme .logo-dark {
  display: none;
}

html.dark-theme .email-toggle-btn {
  color: #c9cbce;
  background-color: #ffffff00;
}

html.dark-theme .chat-toggle-btn {
  color: #c9cbce;
  background-color: #ffffff00;
  border: 0 solid rgb(0 0 0 / 15%);
}

html.dark-theme .apexcharts-datalabel,
html.dark-theme .apexcharts-datalabel-label,
html.dark-theme .apexcharts-datalabel-value,
html.dark-theme .apexcharts-datalabels,
html.dark-theme .apexcharts-pie-label {
  fill: #fff;
}

html.dark-theme .product-discount {
  color: #fff;
  background-color: rgb(255 255 255 / 12%);
}

@media screen and (max-width: 1024px) {
  html.dark-theme .wrapper.toggled .overlay {
    background: #fff;
    opacity: 0.4;
  }

  html.dark-theme .chat-toggled .overlay {
    background: #fff;
    opacity: 0.4;
  }

  html.dark-theme .email-toggled .overlay {
    background: #fff;
    opacity: 0.4;
  }
}

@media screen and (max-width: 767px) {
  html.dark-theme .topbar .navbar-nav .nav-link {
    border-left: 0 solid #ededed;
  }
  html.dark-theme .user-box {
    border-left: none;
    border-right: none;
  }
}

/* card-table-view */
html.dark-theme .card-view {
  -webkit-box-shadow: 10px 10px 5px 0px rgba(4, 7, 8, 1) !important;
  -moz-box-shadow: 10px 10px 5px 0px rgba(4, 7, 8, 1) !important;
  box-shadow: 10px 10px 5px 0px rgba(4, 7, 8, 1) !important;
  background-color: #424245 !important;
  color: white !important;
}

html.dark-theme .button-1 {
  background-color: #424245;
}

html.dark-theme .button-2 {
  background-color: #424245;
}

html.dark-theme .button-1:hover {
  background-color: #008cff;
  border-color: #008cff;
}

html.dark-theme .button-2:hover {
  background-color: red;
  border-color: red;
}

html.dark-theme .button-position-fiexed {
  position: sticky;
  top: -5px;
  background: #424245;
  z-index: 1;
  padding: 2px 0;
  color: white !important;
}

html.dark-theme .card-view strong {
  color: white;
}

html.dark-theme select option {
  color: white !important;
}

html.dark-theme .mat-mdc-form-field.ng-invalid .mdc-notched-outline__leading,
html.dark-theme .mat-mdc-form-field.ng-invalid .mdc-notched-outline__notch,
html.dark-theme .mat-mdc-form-field.ng-invalid .mdc-notched-outline__trailing {
  border-color: rgba(255, 255, 255, 0.7) !important;
}

html.dark-theme .switcher-btn {
  background: #424245;
}

/* ============================================================
   DARK MODE — INVALID ONLY (Material)
   ============================================================ */

/* LABEL — invalid (default state) */
html.dark-theme .mat-mdc-form-field.ng-invalid .mat-mdc-floating-label {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* PLACEHOLDER — invalid only */
html.dark-theme
  .mat-mdc-form-field.ng-invalid
  .mat-mdc-input-element::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

html.dark-theme .stay-connect {
  color: #e4e5e6;
}
html.dark-theme label {
  color: #e4e5e6;
}

/* ============================================================
   MAT-SELECT OPTION — DARK MODE
   ============================================================ */

/* Selected option text */
html.dark-theme
  .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled)
  .mdc-list-item__primary-text {
  color: #e4e5e6 !important;
}

/* Selected option background */
html.dark-theme
  .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Hover state */
html.dark-theme .mat-mdc-option:not(.mdc-list-item--disabled):hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Default option text */
html.dark-theme .mat-mdc-option .mdc-list-item__primary-text {
  color: rgba(255, 255, 255, 0.85);
}
html.dark-theme .nav-tabs .nav-item.show .nav-link,
html.dark-theme .nav-tabs .nav-link.active {
  border-color: #818181 !important;
}

html.dark-theme .nav-tabs .nav-link:hover {
  border-color: #818181 !important;
}
html.dark-theme .task-completed {
  background-color: #1f643c;
}

html.dark-theme .task-default {
  background-color: #a37f7f !important;
}
html.dark-theme .default {
  color: #dadcdf !important;
}
html.dark-theme .task-completed-text {
  color: #dadcdf !important;
}
html.dark-theme .back-to-top {
  background: #6a6a6b;
}
html.dark-theme .back-to-top:hover {
  background: #424245;
}

/* 1. This forces the native browser popup (the white box) to turn dark */
html.dark-theme {
  color-scheme: dark !important;
}
/* 2. Styles for the input text and background */
html.dark-theme input[type="date"] {
  color: #dadcdf !important;
  background-color: transparent !important;
}

/* 3. Styles for the native calendar icon inside the input */
html.dark-theme input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}
html.dark-theme .topbar .navbar .navbar-nav .nav-item.active .nav-link {
  background-color: #5c5a5a;
}
html.dark-theme .topbar .navbar .navbar-nav .nav-item.active .nav-link i {
  color: #e4e5e6;
}
/* Target the placeholder specifically when dark-theme is active on the html tag */

html.dark-theme .form-control::placeholder {
  color: #ffffff !important;
  opacity: 1; /* Firefox lowers opacity by default, this ensures it's bright white */
}

/* Chrome, Edge, and Safari */
html.dark-theme .form-control::-webkit-input-placeholder {
  color: #ffffff !important;
}

/* Firefox 19+ */
html.dark-theme .form-control::-moz-placeholder {
  color: #ffffff !important;
  opacity: 1;
}

/* Internet Explorer 10-11 */
html.dark-theme .form-control:-ms-input-placeholder {
  color: #ffffff !important;
}
html.dark-theme .ticket-list-body {
  background-color: rgb(39 49 52 / 80%) !important;
}
html.dark-theme .text-primary-emphasis {
  color: #f0f2f5 !important;
}
html.dark-theme .ticket-list-body .badge i {
  color: #6e5c40 !important;
}
/* html.dark-theme .ticket-list-body .bg-light {
  background-color: #e9e7b1 !important;
} */
html.dark-theme .ticket-list-body .bg-primary-subtle {
  color: #3c3d3d !important;
}
html.dark-theme .darkmode-div .bg-white {
  background-color: #212529 !important;
}

html.dark-theme .mytext-primary .text-primary {
  color: #e4e5e6 !important;
}
html.dark-theme .bg-white-gp {
  background-color: #2e2d2d;
}
html.dark-theme .mat-attached-btn,
html.dark-theme .mat-attached-btn:disabled {
  border: 1px solid #bcbdbe;
  color: #e4e5e6;
}

html.dark-theme .mat-form-field-disabled .mat-mdc-text-field-wrapper {
  background-color: #6d7276 !important;
}
html.dark-theme .code-text {
  color: #e4e5e6;
}
html.dark-theme .mat-mdc-input-element::placeholder {
  color: #e4e5e6 !important;
  opacity: 1; /* required for Firefox */
}

html.dark-theme .btn-toggle-group .mat-button-toggle {
  background-color: #2e2d2d;
  color: #e4e5e6 !important;
}

html.dark-theme
  .btn-toggle-group
  .mat-button-toggle:hover:not(.mat-button-toggle-disabled) {
  background-color: #7c7b7b;
}
html.dark-theme .eraser-warn-dark {
  color: #f44336;
}
html.dark-theme #nav-new-previews .list-group-item.fw-bold.role-list-item {
  background-color: #161616;
}

html.dark-theme #nav-new-previews .role-list-item:hover:not(.fw-bold) {
  background-color: #121212;
}
html.dark-theme #nav-new-previews .sidebar-item a {
  background-color: #212529;
}

html.dark-theme #nav-new-previews .sidebar-item a:hover {
  color: #e4e5e9 !important;
  background-color: #4e4f51;
}

html.dark-theme #nav-new-previews .childColor {
  color: #e4e5e6;
}
html.dark-theme .rule-pre,
html.dark-theme .prefixhttp {
  color: #e4e5e6;
}

html.dark-theme .mat-select-search-inner input.mat-select-search-input,
.cdk-overlay-container.dark-theme-overlay
  .mat-select-search-inner
  input.mat-select-search-input {
  color: #dadcdf !important;
  -webkit-text-fill-color: #dadcdf !important;
  caret-color: #dadcdf !important;
}

html.dark-theme
  .mat-select-search-inner
  input.mat-select-search-input::placeholder,
.cdk-overlay-container.dark-theme-overlay
  .mat-select-search-inner
  input.mat-select-search-input::placeholder {
  color: #dadcdf !important;
  opacity: 1 !important;
}

html.dark-theme
  .mat-select-search-inner
  input.mat-select-search-input::-webkit-input-placeholder,
.cdk-overlay-container.dark-theme-overlay
  .mat-select-search-inner
  input.mat-select-search-input::-webkit-input-placeholder {
  color: #dadcdf !important;
  -webkit-text-fill-color: #dadcdf !important;
}

html.dark-theme
  .mat-select-search-inner
  input.mat-select-search-input:-ms-input-placeholder,
.cdk-overlay-container.dark-theme-overlay
  .mat-select-search-inner
  input.mat-select-search-input:-ms-input-placeholder {
  color: #dadcdf !important;
}

html.dark-theme .custom-textarea {
  background-color: #12181a;
}

html.dark-theme .email-box small {
  color: #e4e5e6;
}
html.dark-theme .icon-blue,
html.dark-theme .icon-teal,
html.dark-theme .icon-amber,
html.dark-theme .icon-purple,
html.dark-theme .icon-green,
html.dark-theme .icon-coral {
  background: #7e8080;
}

html.dark-theme .settings-link-card {
  background-color: #2d383b;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.5);
}
html.dark-theme .settings-link-card:hover {
  background-color: #2a3133;
}

html.dark-theme .mail-title {
  color: #e4e5e6 !important;
}
html.dark-theme .form-select {
  /* The stroke color is changed to %23dadcdf (hex #dadcdf) */
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dadcdf' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

html.dark-theme .back-link {
  background-color: #2a2f32;

  &:hover {
    background-color: #515253;
  }
}

html.dark-theme .smtp-light.bg-light {
  color: #e4e5e6 !important;
}
html.dark-theme .access-key-text {
  background-color: #2a2f32;
  color: #e4e5e6;
  border: 1px solid #3a4045;
}
html.dark-theme .cropper-wrapper image-cropper {
  background-color: #121212 !important;
}

html.dark-theme .image-cropper-container-class {
  background-color: #121212 !important;
}
html.dark-theme.color-header .search-bar input {
  color: #413f3f;
  background-color: #fff !important;
  border: 1px solid rgb(241 241 241 / 15%) !important;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0%);
}
html.dark-theme #endpointsAccordion .accordion-button.bg-light {
  background: #12181a !important;
}
html.dark-theme #endpointsAccordion .accordion-body.bg-white {
  background: #12181a !important;
}
html.dark-theme
  #endpointsAccordion
  .accordion-collapse
  .accordion-body.bg-white
  p {
  color: #e4e5e6;
}

html.dark-theme #endpointsAccordion .accordion-collapse .accordion-body pre {
  color: #e4e5e6;
}

html.dark-theme .api-container #collapseSchema pre {
  color: #e4e5e6;
}
/* 1. The Default Icon (Collapsed) */
html.dark-theme .accordion-button::after {
  /* We replace the default dark stroke with a white/light stroke SVG */
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-image: var(--bs-accordion-btn-icon);
}

/* 2. The Active Icon (Expanded) */
html.dark-theme .accordion-button:not(.collapsed) {
  background-color: #343a40; /* Slightly lighter when open */
  color: #e4e5e6 !important;
}

html.dark-theme .accordion-button:not(.collapsed)::after {
  /* Use a light-colored icon for the active state as well */
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230dcaf0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-image: var(--bs-accordion-btn-active-icon);
}

html.dark-theme .smalltag {
  color: #e4e5e6 !important;
}
html.dark-theme .tagbtnicon {
  font-size: 1rem;
}
html.dark-theme .badgefield {
  color: #e4e5e6 !important;
}
/* html.dark-theme .guidelines-container .table thead th {
  background: #3a3838;
} */

html.dark-theme .guidelines-container th,
html.dark-theme .guidelines-container td {
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 12%) !important;
}

html.dark-theme .chat-history {
  background-color: #12181a;
}

html.dark-theme .hellotext {
  color: #e4e5e6;
}

html.dark-theme .chat-history .bg-primary {
  background-color: rgb(255 255 255 / 5%) !important;
}
html.dark-theme .ai-text-response,
html.dark-theme .thinktext {
  color: #e4e5e6;
}

html.dark-theme .task-board-container .board-header .board-title,
html.dark-theme .task-board-container .column-header .coltitle,
html.dark-theme
  .task-board-container
  .kanban-board
  .task-card
  .card-body
  .task-title,
html.dark-theme.task-board-container
  .kanban-board
  .task-card
  .card-body
  .task-footer
  .task-due-date
  small {
  color: #e4e5e6 !important;
}
html.dark-theme .task-search-filter .filter-header h6 {
  color: #e4e5e6 !important;
}
html.dark-theme .myfontwt {
  font-weight: 400;
}
html.dark-theme .pagination .page-item .btn-sm {
  border-color: rgb(255 255 255 / 34%) !important;
  color: #e4e5e6 !important;
}
html.dark-theme .pagination .page-item .btn-sm:hover {
  background-color: rgb(255 255 255 / 14%) !important;
  border-color: rgb(255 255 255 / 34%) !important;
}
html.dark-theme .compact-ui .accordion-item {
  background-color: #12181a !important;
}
html.dark-theme .compact-ui .badge {
  color: #3a3b3b !important;
  background: #fff;
}

/* Dark theme override */
.dark-theme .completion-text {
  color: #4ade80 !important;
}