.dark .table-striped>tbody>tr:nth-of-type(even)>* {
  --bs-table-accent-bg: #181818 !important;
}

/* ==============================================================
   Soft UI Dashboard Custom Sidebar Theme
============================================================== */

/* Base Sidebar Background */
.sidebar-default {
  background-color: var(--bs-body-bg) !important;
  border-right: none !important;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.05);
}

/* Ensure no background overrides on the body of sidebar */
.sidebar-default .sidebar-body {
  background-color: transparent !important;
}

/* Base Nav Item Container */
.sidebar-default .iq-main-menu .nav-item .nav-link {
  display: flex !important;
  align-items: center;
  /* padding: 0.675rem 1rem !important; */
  /* margin: 0.15rem 1rem !important; */
  border-radius: 0.5rem !important;
  color: var(--bs-gray-600) !important;
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: transparent !important;
}

/* Hover State */
.sidebar-default .iq-main-menu .nav-item .nav-link:hover {
  background-color: transparent !important;
  color: var(--bs-primary) !important;
}

/* The Icon Container (Elevated White Box for Inactive) */
.sidebar-default .iq-main-menu .nav-item>.nav-link>.icon:first-of-type {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.5rem !important;
  background: var(--bs-white) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  margin-right: 1rem !important;
  color: var(--bs-gray-700) !important;
  transition: all 0.2s ease;
}

/* Reset inner icon sizing */
.sidebar-default .iq-main-menu .nav-item>.nav-link>.icon:first-of-type i {
  font-size: 1rem !important;
}

/* Active State (Theme Gradient & White Icon) */
.sidebar-default .iq-main-menu .nav-item.active>.nav-link,
.sidebar-default .iq-main-menu .nav-item .nav-link.active {
  background: transparent !important;
  color: var(--bs-primary) !important;
  font-weight: 600;
}

.sidebar-default .iq-main-menu .nav-item.active>.nav-link>.icon:first-of-type,
.sidebar-default .iq-main-menu .nav-item .nav-link.active>.icon:first-of-type {
  background: linear-gradient(310deg, var(--bs-primary) 0%, var(--bs-primary) 100%) !important;
  box-shadow: 0 4px 6px -1px rgba(var(--bs-primary-rgb, 229, 9, 20), 0.3), 0 2px 4px -1px rgba(var(--bs-primary-rgb, 229, 9, 20), 0.15) !important;
  color: #ffffff !important;
}

/* Item Name Text */
.sidebar-default .iq-main-menu .nav-item .nav-link .item-name {
  font-size: 0.875rem !important;
  letter-spacing: 0.025em;
}

/* Static Category Headers (Like "ACCOUNT PAGES") */
.sidebar-default .iq-main-menu .nav-item.static-item {
  margin: 1.5rem 1rem 0.5rem 1.5rem !important;
}

.sidebar-default .iq-main-menu .nav-item.static-item .default-icon {
  color: var(--bs-gray-500) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-align: left;
  display: block;
}

/* Hide mini icon line on static items */
.sidebar-default .iq-main-menu .nav-item.static-item .mini-icon {
  display: none !important;
}

/* Sub-menus adjustment to prevent boxy icons on inner children */
.sidebar-default .iq-main-menu .sub-nav .nav-item>.nav-link>.icon:first-of-type {
  width: 1.5rem !important;
  height: 1.5rem !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sidebar-default .iq-main-menu .sub-nav .nav-item.active>.nav-link>.icon:first-of-type {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bs-primary) !important;
}

/* Dark Mode Accommodations */
[data-bs-theme="dark"] .sidebar-default {
  background-color: #372b2b !important;
}

[data-bs-theme="dark"] .sidebar-default .iq-main-menu .nav-item>.nav-link>.icon:first-of-type {
  background: #1e1e1e !important;
  color: #a0aabf !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .sidebar-default .iq-main-menu .nav-item.active>.nav-link>.icon:first-of-type,
[data-bs-theme="dark"] .sidebar-default .iq-main-menu .nav-item .nav-link.active>.icon:first-of-type {
  background: linear-gradient(310deg, var(--bs-primary) 0%, var(--bs-primary) 100%) !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .sidebar-default .iq-main-menu .nav-item.static-item .default-icon {
  color: #6c757d !important;
}

[data-bs-theme="dark"] .sidebar-default .iq-main-menu .nav-item .nav-link {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .sidebar-default .iq-main-menu .nav-item .nav-link:hover {
  color: var(--bs-primary) !important;
}

.multiselect-option.is-selected {
  background: var(--bs-primary) !important;
}

.multiselect-tag:hover {
  background: var(--bs-primary) !important;
}

.multiselect-tag {
  background: var(--bs-primary) !important;
}

.multiselect-option.is-pointed {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

::selection {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

::-moz-selection {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

*::-moz-selection {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

.form-disabled {
  pointer-events: none;
  opacity: 0.4;
}

.sorting_disabled.sorting_asc::after,
.sorting_disabled.sorting_asc::before {
  content: unset !important;
}

.sorting_disabled.sorting_asc {
  padding-right: 0 !important;
  width: 1% !important;
}

[dir="rtl"] .sorting_disabled.sorting_asc {
  padding-right: 1.5rem !important;
  padding-left: 0 !important;
}

.h-4 {
  height: 4rem;
}

.ec-week .ec-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 9;
  padding: 0 15px 15px;
  border-bottom: 1px solid var(--bs-border-color);
}

.ec-header {
  display: flex;
  flex-shrink: 0;
  margin-top: 75px;
  position: relative;
}

.ec.ec-week {
  overflow-x: scroll;
}

.ec-header .ec-resource {
  flex-direction: column;
  min-width: 160px;
}

.ec-resource {
  display: flex;
  min-width: 160px;
}

.dropdown-sticky {
  background-color: var(--bs-white);
  box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.2);
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
}

div#datatable_wrapper {
  position: relative;
}

div.dataTables_wrapper div.dataTables_processing {
  top: 105px !important;
  left: 50%;
  z-index: 9;
}

.dropdown-sticky:hover {
  background-color: var(--bs-primary-shade-10);
}

.iq-dropdown .dropdown-menu {
  border-radius: 0.6rem !important;
}

.dark .text-black {
  color: #fff !important;
}

@media only screen and (max-width: 1366px) {
  .ec-header {
    overflow-x: scroll;
  }
}

.iq-service-provider-dropdown:hover {
  background-color: unset !important;
}

.mode-icons {
  display: none;
}

.mode-icons.light-mode {
  display: block;
}

[data-bs-theme="dark"] .mode-icons.light-mode {
  display: none;
}

[data-bs-theme="dark"] .mode-icons.dark-mode {
  display: block;
}

.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n + 1)),
.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n + 1)),
.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n + 1)) {
  box-shadow: -10px 0 0 rgba(var(--bs-primary-rgb), 0.8);
}

:root {
  --animate-duration: 400ms;
  --animate-delay: 1s;
  --animate-repeat: 1;
}

.animate__animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-duration: var(--animate-duration);
  animation-duration: var(--animate-duration);
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}

.animate__zoomIn {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn;
}

@-webkit-keyframes zoomOut {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  to {
    opacity: 0;
  }
}

@keyframes zoomOut {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  to {
    opacity: 0;
  }
}

.animate__zoomOut {
  -webkit-animation-name: zoomOut;
  animation-name: zoomOut;
}

@media screen and (max-width: 1024px) {
  .ec-all-day {
    overflow-x: scroll;
  }

  .ec-body {
    overflow-x: scroll !important;
  }

  .ec-resource {
    min-width: 160px !important;
  }
}

fieldset,
legend {
  all: revert;
  margin-bottom: 1rem;
}

fieldset {
  border: 1px solid var(--bs-border-color);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 5px;
}

legend {
  font-size: 1rem;
  font-weight: bold;
  padding: 0 0.7rem;
  color: var(--bs-primary-shade-80);
}

.dark legend {
  color: white;
}

.tox-tinymce,
.tox-statusbar,
.tox-toolbar__group,
.tox-toolbar__group:not(:last-of-type) {
  border-color: var(--bs-border-color) !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
  border: 1px solid var(--bs-border-color) !important;
}

.dark .multiselect-tags-search {
  color: inherit;
  background: inherit;
}

.ql-container {
  height: calc(100% - 5rem) !important;
}

.white-space-initial td {
  white-space: initial;
}

.dark .vti__input {
  color: #d7dbdf;
  background-color: #080808;
}


/* upload images */

.iq-uploaded-image-container {
  position: relative;
  margin-bottom: 10px;
  display: inline-block;
}

.iq-uploaded-image-container .iq-uploaded-image-close {
  position: absolute;
  top: .3rem;
  left: auto;
  right: .3rem;
  background: var(--bs-white);
  color: var(--bs-dark);
  padding: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
}

.iq-uploaded-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.iq-uploaded-image-close {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 3px 5px;
  border-radius: 50%;
}

.iq-progress {
  width: 100%;
  height: 5px;
  background-color: #e9ecef;
}

.iq-image {
  border: 3px solid var(--bs-primary);
  /* Add a border to indicate selection */
  transition: all 0.3s ease;
  /* Smooth transition for the changes */
}

/* .iq-image-hover:hover{
  position: absolute;
  display: block;
}

.iq-image-close{
  position: relative;
} */

.iq-media-images {
  .iq-button-delete {
    display: none;
  }
}

.iq-media-images:hover {
  .iq-button-delete {
    display: block;
  }
}

.modal-footer .btn-secondary,
.modal-footer .btn-dark {
  background: var(--bs-body-bg);
  border-color: var(--bs-body-bg);
}

/* ==============================================================
   Admin Dashboard - Minimalist Accent Edge Redesign
============================================================== */

/* Base Card Redesign (Minimalist Solid) */
.card-stats,
.card-block {
  background: var(--bs-body-bg) !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  border-left: 4px solid var(--bs-primary) !important;
  transition: all 0.3s ease !important;
  overflow: hidden;
}

[data-bs-theme="dark"] .card-stats,
[data-bs-theme="dark"] .card-block {
  background: #111111 !important;
  /* Deep solid black */
  box-shadow: none !important;
  border-left: 4px solid var(--bs-primary) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Card Hover Physics - Slight Lift */
.card-stats:hover,
.card-block:hover {
  transform: translateY(-3px);
  border-left-width: 8px !important;
  /* Thicker accent on hover */
}

/* Minimalist Iconography (No Box) */
.card-stats .card-icon {
  background: transparent !important;
  border-radius: 0 !important;
  color: var(--bs-primary) !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.card-stats .card-icon i,
.card-stats .card-icon svg {
  font-size: 2.5rem !important;
  /* Make it large */
  width: 2.5rem !important;
  height: 2.5rem !important;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.card-stats:hover .card-icon i,
.card-stats:hover .card-icon svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Typography Enhancements */
.card-stats .card-data h1 {
  font-weight: 700 !important;
  letter-spacing: -1px;
}

.card-stats .card-data p {
  text-transform: uppercase;
  font-size: 0.75rem !important;
  letter-spacing: 1px;
  font-weight: 600;
  color: #a0aabf !important;
}

[data-bs-theme="dark"] .card-stats .card-data h1 {
  color: #ffffff !important;
  text-shadow: none;
}

/* Data Trend Simplification */
.card-stats .text-success {
  text-shadow: none;
  font-weight: bold;
}

.card-stats .text-danger {
  text-shadow: none;
  font-weight: bold;
}

/* Top 5 Genres Customization */
.card-block #chart-top-genres {
  border-radius: 8px;
}