/* Adapted from Watermelon Capitalio. MIT; see LICENSE.txt. Namespaced tokens. */
.watermelon-theme,
body:has(.watermelon-theme) [data-slot="sidebar"][data-mobile="true"] {
  --wm-radius: 0.5rem;
  --wm-background: #ffffff;
  --wm-foreground: oklch(0.145 0 0);
  --wm-card: #ffffff;
  --wm-card-foreground: oklch(0.145 0 0);
  --wm-card-hover: oklch(0.97 0 0);
  --wm-popover: #ffffff;
  --wm-popover-foreground: oklch(0.145 0 0);
  --wm-primary: oklch(0.613082 0.211962 256.3304);
  --wm-primary-foreground: #ffffff;
  --wm-secondary: oklch(0.97 0 0);
  --wm-secondary-foreground: oklch(0.205 0 0);
  --wm-muted: oklch(0.97 0 0);
  --wm-muted-foreground: oklch(0.556 0 0);
  --wm-accent: oklch(0.97 0 0);
  --wm-accent-foreground: oklch(0.205 0 0);
  --wm-destructive: oklch(0.574 0.232 29.36);
  --wm-border: oklch(0.922 0 0);
  --wm-input: oklch(0.922 0 0);
  --wm-input-addon-foreground: oklch(0.556 0 0);
  --wm-ring: var(--wm-primary);
  --wm-chart-1: var(--wm-primary);
  --wm-chart-2: #7466F6;
  --wm-chart-3: #FF7A00;
  --wm-chart-4: #00DA92;
  --wm-chart-5: #E10B05;
  --wm-dashboard-icon-bg: conic-gradient(from 90deg, #5e5959 0%, #413f3f 6.25%, #242424 12.5%, #1d1b1b 28.481%, #2c2a2a 31.034%, #3b3838 33.588%, #585656 38.694%, #3e3c3c 46.951%, #242222 55.208%, #353232 62.885%, #464242 70.562%, #353333 76.351%, #242424 82.14%, #413f3f 91.07%, #5e5959 100%);
  --wm-dashboard-icon-shadow: 1px 1px 0 rgb(0 0 0 / 25%);
  --wm-sidebar: #ffffff;
  --wm-sidebar-foreground: oklch(0.32 0 0);
  --wm-sidebar-primary: var(--wm-primary);
  --wm-sidebar-primary-foreground: #ffffff;
  --wm-sidebar-accent: oklch(0.95 0 0);
  --wm-sidebar-accent-foreground: var(--wm-foreground);
  --wm-sidebar-border: oklch(0.9 0 0);
  --wm-sidebar-ring: var(--wm-primary);
  --wm-sidebar-muted: oklch(0.556 0 0);
  --wm-sidebar-muted-foreground: oklch(0.6068 0 0);
  --wm-sidebar-badge: oklch(0.93 0 0);
  --wm-sidebar-divider: rgb(0 0 0 / 10%);
  --wm-sidebar-active-shadow: inset 0 0 4px 2px rgb(0 0 0 / 3%), 0 0 5px rgb(0 0 0 / 10%);
  --wm-premium-from: #efe189;
  --wm-premium-mid: #ebc745;
  --wm-premium-to: #e7ad00;
  --wm-premium-foreground: #5a3300;
}

.watermelon-theme.dark,
.dark .watermelon-theme,
.dark body:has(.watermelon-theme) [data-slot="sidebar"][data-mobile="true"] {
  --wm-background: #151517;
  --wm-foreground: #ffffff;
  --wm-card: #151517;
  --wm-card-foreground: #ffffff;
  --wm-card-hover: #202020;
  --wm-popover: #151517;
  --wm-popover-foreground: #ffffff;
  --wm-primary-foreground: #ffffff;
  --wm-secondary: #202020;
  --wm-secondary-foreground: #ffffff;
  --wm-muted: #202020;
  --wm-muted-foreground: #9e9e9e;
  --wm-accent: #202020;
  --wm-accent-foreground: #ffffff;
  --wm-destructive: oklch(0.574 0.232 29.36);
  --wm-border: #000000;
  --wm-input: #202020;
  --wm-input-addon-foreground: #9e9e9e;
  --wm-ring: var(--wm-primary);
  --wm-chart-1: var(--wm-primary);
  --wm-chart-2: #7466F6;
  --wm-chart-3: #FF7A00;
  --wm-chart-4: #00DA92;
  --wm-chart-5: #E10B05;
  --wm-dashboard-icon-bg: conic-gradient(from 90deg, #5e5959 0%, #413f3f 6.25%, #242424 12.5%, #1d1b1b 28.481%, #2c2a2a 31.034%, #3b3838 33.588%, #585656 38.694%, #3e3c3c 46.951%, #242222 55.208%, #353232 62.885%, #464242 70.562%, #353333 76.351%, #242424 82.14%, #413f3f 91.07%, #5e5959 100%);
  --wm-dashboard-icon-shadow: 1px 1px 0 rgb(0 0 0 / 25%);
  --wm-sidebar: #151517;
  --wm-sidebar-foreground: #b3b3b3;
  --wm-sidebar-primary: var(--wm-primary);
  --wm-sidebar-primary-foreground: #ffffff;
  --wm-sidebar-accent: #202020;
  --wm-sidebar-accent-foreground: var(--wm-foreground);
  --wm-sidebar-border: #202020;
  --wm-sidebar-ring: var(--wm-primary);
  --wm-sidebar-muted: #9e9e9e;
  --wm-sidebar-muted-foreground: oklch(0.7668 0 0);
  --wm-sidebar-badge: #202020;
  --wm-sidebar-divider: rgb(255 255 255 / 10%);
  --wm-sidebar-active-shadow: inset 0 0 4px 2px rgb(255 255 255 / 3%), 0 0 5px rgb(0 0 0 / 60%);
  --wm-premium-from: #efe189;
  --wm-premium-mid: #ebc745;
  --wm-premium-to: #e7ad00;
  --wm-premium-foreground: #5a3300;
}

/* custom classes */
.shadow-custom {
  box-shadow: inset 4px 0 4px 0 rgb(0 0 0 / 1%);
}

.dark .shadow-custom,
.shadow-custom.dark {
  box-shadow: inset 4px 0 4px 0 rgb(255 255 255 / 3%);
}

.active-sidebar-item {
  position: relative;
  box-shadow:
    0 0 5px 0 rgb(0 0 0 / 10%),
    inset 0 0 4px 2px rgb(0 0 0 / 3%);
}

.active-sidebar-item::before {
  position: absolute;
  inset: 0;
  padding: 0.5px;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4f4f4 0%, #e3e3e3 50%, #ececec 100%);
  content: "";
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.dark .active-sidebar-item,
.active-sidebar-item.dark {
  box-shadow:
    0 0 5px 0 rgb(0 0 0 / 60%),
    inset 0 0 4px 2px rgb(255 255 255 / 3%);
}

.dark .active-sidebar-item::before,
.active-sidebar-item.dark::before {
  background: linear-gradient(90deg, #202020 0%, #353232 50%, #000000 100%);
}

.no-scrollbar,
.no-scrollbar * {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar,
.no-scrollbar *::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar-x {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--wm-border) transparent;
}

.custom-scrollbar-x::-webkit-scrollbar {
  height: 0.375rem;
}

.custom-scrollbar-x::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar-x::-webkit-scrollbar-thumb {
  background-color: var(--wm-border);
  border-radius: 9999px;
}

.custom-scrollbar-x::-webkit-scrollbar-thumb:hover {
  background-color: var(--wm-muted-foreground);
}

[data-slot="dropdown-menu-content"] [data-slot="dropdown-menu-item"],
[data-slot="dropdown-menu-content"] [data-slot="dropdown-menu-sub-trigger"] {
  padding-inline: 0.625rem;
  padding-block: 0.625rem;
}

[data-slot="dropdown-menu-content"] [data-slot="dropdown-menu-checkbox-item"],
[data-slot="dropdown-menu-content"] [data-slot="dropdown-menu-radio-item"] {
  padding-block: 0.625rem;
  padding-left: 0.625rem;
  padding-right: 2rem;
}

.watermelon-theme .premium-badge {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.5rem;
  line-height: 1;
  background: linear-gradient(90deg, #efe189 0%, #ebc745 50%, #e7ad00 100%);
  color: #5a3300;
}

.watermelon-theme .dashboard-icon-badge {
  background-image: var(--wm-dashboard-icon-bg);
  box-shadow: var(--wm-dashboard-icon-shadow);
}

.watermelon-theme .dashboard-dot-grid {
  background-image: radial-gradient(
    circle,
    color-mix(in oklab, var(--wm-foreground) 12%, transparent) 0.0625rem,
    transparent 0.0625rem
  );
  background-size: 1.5rem 1.5rem;
}

.watermelon-theme .dashboard-progress-fill {
  transform-origin: left;
  animation: dashboard-progress-grow 700ms ease-out both;
}

@keyframes dashboard-progress-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

