:root {
  --eduloo-dd-trigger-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 86%,
    var(--surface-container-low) 14%
  );
  --eduloo-dd-trigger-bg-hover: color-mix(
    in srgb,
    var(--surface-container-lowest) 70%,
    var(--primary-container) 30%
  );
  --eduloo-dd-trigger-bg-open: color-mix(
    in srgb,
    var(--surface-container-lowest) 66%,
    var(--primary-container) 34%
  );
  --eduloo-dd-trigger-border: color-mix(
    in srgb,
    var(--outline-variant) 44%,
    transparent
  );
  --eduloo-dd-trigger-border-hover: color-mix(
    in srgb,
    var(--primary-container) 54%,
    transparent
  );
  --eduloo-dd-trigger-border-open: color-mix(
    in srgb,
    var(--primary-container) 68%,
    transparent
  );
  --eduloo-dd-focus-ring: color-mix(
    in srgb,
    var(--secondary-container) 58%,
    transparent
  );
  --eduloo-dd-text: var(--on-surface);
  --eduloo-dd-muted: var(--on-surface-variant);
  --eduloo-dd-icon: color-mix(
    in srgb,
    var(--primary) 76%,
    var(--on-primary-container) 24%
  );
  --eduloo-dd-panel-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 90%,
    var(--surface-container-low) 10%
  );
  --eduloo-dd-panel-border: color-mix(
    in srgb,
    var(--outline-variant) 42%,
    transparent
  );
  --eduloo-dd-panel-shadow: 0 24px 36px -24px
    color-mix(in srgb, var(--on-surface) 42%, transparent);
  --eduloo-dd-search-separator: color-mix(
    in srgb,
    var(--outline-variant) 42%,
    transparent
  );
  --eduloo-dd-group-bg: color-mix(
    in srgb,
    var(--surface-container-low) 72%,
    var(--primary-container) 28%
  );
  --eduloo-dd-group-text: color-mix(
    in srgb,
    var(--primary) 76%,
    var(--on-primary-container) 24%
  );
  --eduloo-dd-option-hover-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 68%,
    var(--primary-container) 32%
  );
  --eduloo-dd-option-focused-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 62%,
    var(--primary-container) 38%
  );
  --eduloo-dd-option-focused-border: color-mix(
    in srgb,
    var(--primary-container) 62%,
    transparent
  );
  --eduloo-dd-option-selected-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 64%,
    var(--primary-container) 36%
  );
  --eduloo-dd-option-selected-border: color-mix(
    in srgb,
    var(--primary-container) 66%,
    transparent
  );
  --eduloo-dd-option-selected-text: color-mix(
    in srgb,
    var(--primary) 80%,
    var(--on-primary-container) 20%
  );
  --eduloo-dd-action-bg: color-mix(
    in srgb,
    var(--surface-container-lowest) 84%,
    var(--surface-container-low) 16%
  );
  --eduloo-dd-action-border: color-mix(
    in srgb,
    var(--outline-variant) 44%,
    transparent
  );
  --eduloo-dd-action-text: var(--on-surface-variant);
  --eduloo-dd-action-hover-bg: color-mix(
    in srgb,
    var(--surface-container-low) 68%,
    var(--primary-container) 32%
  );
  --eduloo-dd-action-hover-border: color-mix(
    in srgb,
    var(--primary-container) 58%,
    transparent
  );
  --eduloo-dd-action-hover-text: var(--on-surface);
  --eduloo-dd-scroll-thumb: color-mix(
    in srgb,
    var(--outline-variant) 68%,
    transparent
  );
  --eduloo-dd-scroll-thumb-hover: color-mix(
    in srgb,
    var(--outline) 72%,
    transparent
  );
  --eduloo-dd-mark-bg: color-mix(
    in srgb,
    var(--primary-container) 78%,
    var(--surface-container-lowest) 22%
  );
  --eduloo-dd-mark-text: color-mix(
    in srgb,
    var(--primary) 80%,
    var(--on-primary-container) 20%
  );
}

body.theme-dark {
  --eduloo-dd-trigger-bg: color-mix(
    in srgb,
    var(--surface-container-high) 78%,
    var(--surface-container-highest) 22%
  );
  --eduloo-dd-trigger-bg-hover: color-mix(
    in srgb,
    var(--surface-container-highest) 60%,
    var(--primary-container) 40%
  );
  --eduloo-dd-trigger-bg-open: linear-gradient(
    135deg,
    rgba(97, 121, 228, 0.22) 0%,
    rgba(44, 191, 173, 0.1) 48%,
    rgba(190, 101, 159, 0.18) 100%
  );
  --eduloo-dd-trigger-border: color-mix(
    in srgb,
    var(--outline-variant) 66%,
    transparent
  );
  --eduloo-dd-trigger-border-hover: color-mix(
    in srgb,
    var(--primary-container) 60%,
    transparent
  );
  --eduloo-dd-trigger-border-open: color-mix(
    in srgb,
    var(--primary-container) 72%,
    transparent
  );
  --eduloo-dd-focus-ring: color-mix(
    in srgb,
    var(--secondary-container) 50%,
    transparent
  );
  --eduloo-dd-text: color-mix(
    in srgb,
    var(--on-surface) 92%,
    var(--on-primary) 8%
  );
  --eduloo-dd-muted: color-mix(
    in srgb,
    var(--on-surface-variant) 86%,
    var(--primary-container) 14%
  );
  --eduloo-dd-icon: color-mix(
    in srgb,
    var(--on-surface) 86%,
    var(--secondary-container) 14%
  );
  --eduloo-dd-panel-bg: color-mix(
    in srgb,
    var(--surface-container-high) 80%,
    var(--surface-container-highest) 20%
  );
  --eduloo-dd-panel-border: color-mix(
    in srgb,
    var(--primary-container) 34%,
    transparent
  );
  --eduloo-dd-panel-shadow: 0 28px 40px -26px
    color-mix(in srgb, black 76%, transparent);
  --eduloo-dd-search-separator: color-mix(
    in srgb,
    var(--outline-variant) 58%,
    transparent
  );
  --eduloo-dd-group-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 62%,
    var(--primary-container) 38%
  );
  --eduloo-dd-group-text: color-mix(
    in srgb,
    var(--on-surface) 88%,
    var(--on-primary) 12%
  );
  --eduloo-dd-option-hover-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 62%,
    var(--primary-container) 38%
  );
  --eduloo-dd-option-focused-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 54%,
    var(--primary-container) 46%
  );
  --eduloo-dd-option-focused-border: color-mix(
    in srgb,
    var(--primary-container) 72%,
    transparent
  );
  --eduloo-dd-option-selected-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 50%,
    var(--primary-container) 50%
  );
  --eduloo-dd-option-selected-border: color-mix(
    in srgb,
    var(--primary-container) 76%,
    transparent
  );
  --eduloo-dd-option-selected-text: color-mix(
    in srgb,
    var(--on-surface) 90%,
    var(--on-primary) 10%
  );
  --eduloo-dd-action-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 64%,
    var(--primary-container) 36%
  );
  --eduloo-dd-action-border: color-mix(
    in srgb,
    var(--outline-variant) 44%,
    rgba(255, 255, 255, 0.28) 56%
  );
  --eduloo-dd-action-text: color-mix(
    in srgb,
    var(--on-surface) 92%,
    var(--primary) 8%
  );
  --eduloo-dd-action-hover-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 50%,
    var(--primary-container) 50%
  );
  --eduloo-dd-action-hover-border: color-mix(
    in srgb,
    var(--primary) 54%,
    var(--outline-variant) 46%
  );
  --eduloo-dd-action-hover-text: color-mix(
    in srgb,
    var(--on-surface) 94%,
    var(--on-primary) 6%
  );
  --eduloo-dd-scroll-thumb: color-mix(
    in srgb,
    var(--outline-variant) 76%,
    transparent
  );
  --eduloo-dd-scroll-thumb-hover: color-mix(
    in srgb,
    var(--outline) 78%,
    transparent
  );
  --eduloo-dd-mark-bg: color-mix(
    in srgb,
    var(--primary-container) 72%,
    var(--surface-container-highest) 28%
  );
  --eduloo-dd-mark-text: color-mix(
    in srgb,
    var(--on-surface) 88%,
    var(--on-primary) 12%
  );
}

body .custom-dropdown {
  position: relative;
  width: auto;
  display: inline-block;
  font-family: 'Be Vietnam Pro', sans-serif;
}

body .custom-dropdown.u-full-width {
  width: 100%;
  display: block;
}

body .custom-dropdown.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body .custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: none !important;
  border-radius: 16px !important;
  background: var(--eduloo-dd-trigger-bg) !important;
  box-shadow: inset 0 0 0 1px var(--eduloo-dd-trigger-border) !important;
  color: var(--eduloo-dd-text) !important;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease !important;
  box-sizing: border-box;
}

body .custom-dropdown-trigger:hover:not(:disabled) {
  background: var(--eduloo-dd-trigger-bg-hover) !important;
  box-shadow: inset 0 0 0 1px var(--eduloo-dd-trigger-border-hover) !important;
}

body .custom-dropdown-trigger:focus:not(:disabled),
body .custom-dropdown-trigger:focus-visible:not(:disabled) {
  outline: none;
  background: var(--eduloo-dd-trigger-bg-open) !important;
  box-shadow: 0 0 0 3px var(--eduloo-dd-focus-ring) !important;
  transform: translateY(-1px);
}

body .custom-dropdown.open .custom-dropdown-trigger {
  background: var(--eduloo-dd-trigger-bg-open) !important;
  box-shadow:
    0 0 0 3px var(--eduloo-dd-focus-ring),
    inset 0 0 0 1px var(--eduloo-dd-trigger-border-open) !important;
}

body .custom-dropdown.open:not(.dropup) .custom-dropdown-trigger {
  border-bottom-left-radius: 14px !important;
  border-bottom-right-radius: 14px !important;
}

body .custom-dropdown.open.dropup .custom-dropdown-trigger {
  border-top-left-radius: 14px !important;
  border-top-right-radius: 14px !important;
}

body .custom-dropdown-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  /* Multi-select joins the labels into bare text on this element, which becomes
     an untruncatable anonymous flex item; without these it grows past the
     trigger and overlaps whatever sits beside the dropdown. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .custom-dropdown-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

body .custom-dropdown-placeholder {
  color: var(--eduloo-dd-muted);
  opacity: 0.86;
}

body .custom-dropdown-trigger-image {
  width: 24px;
  height: 24px;
  object-fit: cover;
  flex-shrink: 0;
}

body .custom-dropdown-trigger-image.circle {
  border-radius: 999px;
}

body .custom-dropdown-trigger-image.square {
  border-radius: 8px;
}

body .custom-dropdown-trigger-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--eduloo-dd-icon);
}

body .custom-dropdown-chevron {
  width: 12px;
  font-size: 11px;
  color: var(--eduloo-dd-muted);
  transition:
    transform 200ms ease,
    color 200ms ease;
  flex-shrink: 0;
}

body .custom-dropdown.open .custom-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--eduloo-dd-icon);
}

body .custom-dropdown-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: none;
  z-index: 99999 !important;
  border: none !important;
  border-radius: 16px !important;
  background: var(--eduloo-dd-panel-bg) !important;
  box-shadow:
    inset 0 0 0 1px var(--eduloo-dd-panel-border),
    var(--eduloo-dd-panel-shadow) !important;
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 300px;
  box-sizing: border-box;
}

body .custom-dropdown.open .custom-dropdown-panel,
body .custom-dropdown-panel.is-open {
  display: flex;
}

body .custom-dropdown.dropup .custom-dropdown-panel {
  top: auto;
  bottom: calc(100% + 4px);
}

body .custom-dropdown-panel.attach-bottom {
  border-top-left-radius: 14px !important;
  border-top-right-radius: 14px !important;
}

body .custom-dropdown-panel.attach-top {
  border-bottom-left-radius: 14px !important;
  border-bottom-right-radius: 14px !important;
}

body .custom-dropdown-search {
  padding: 8px 8px 8px;
  border-bottom: 1px solid var(--eduloo-dd-search-separator);
  display: flex;
  align-items: center;
  min-height: calc(var(--search-height, 40px) + 12px);
}

body[data-mobile] .custom-dropdown-search {
  padding: 8px !important;
}

body .custom-dropdown-search .search-field {
  width: min(100%, 300px);
  margin: 0 auto;
  align-self: center;
}

body .custom-dropdown-multi-actions {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--eduloo-dd-search-separator);
  flex-shrink: 0;
}

body .custom-dropdown-action-btn {
  flex: 1;
  min-height: 34px;
  padding: 0 10px;
  border: none;
  border-radius: 12px;
  background: var(--eduloo-dd-action-bg);
  box-shadow: inset 0 0 0 1px var(--eduloo-dd-action-border);
  color: var(--eduloo-dd-action-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

body .custom-dropdown-action-btn:hover {
  background: var(--eduloo-dd-action-hover-bg);
  color: var(--eduloo-dd-action-hover-text);
  box-shadow: inset 0 0 0 1px var(--eduloo-dd-action-hover-border);
  transform: translateY(-1px);
}

body .custom-dropdown-action-btn:active {
  transform: translateY(0);
}

body .custom-dropdown-options {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
  min-width: 0;
}

body .custom-dropdown-options::-webkit-scrollbar {
  width: 8px;
}

body .custom-dropdown-options::-webkit-scrollbar-track {
  background: transparent;
}

body .custom-dropdown-options::-webkit-scrollbar-thumb {
  background: var(--eduloo-dd-scroll-thumb);
  border-radius: 999px;
}

body .custom-dropdown-options::-webkit-scrollbar-thumb:hover {
  background: var(--eduloo-dd-scroll-thumb-hover);
}

body .custom-dropdown-group {
  padding: 6px 10px 4px;
  margin-bottom: 4px !important;
  border-radius: 4px;
  border-bottom: 1px solid var(--eduloo-dd-group-bg);
  background: transparent;
  color: var(--eduloo-dd-group-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  user-select: none;
}

body .custom-dropdown-group:first-child {
  margin-top: 0;
}

body .custom-dropdown-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--eduloo-dd-text);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  user-select: none;
}

body .custom-dropdown-option + .custom-dropdown-option {
  margin-top: 3px !important;
}

body .custom-dropdown-option:last-child {
  margin-bottom: 0;
}

body .custom-dropdown-option:hover:not(.disabled) {
  background: var(--eduloo-dd-option-hover-bg);
}

body .custom-dropdown-option.focused:not(.disabled) {
  background: var(--eduloo-dd-option-focused-bg);
  box-shadow: inset 0 0 0 1px var(--eduloo-dd-option-focused-border);
  outline: none;
}

body .custom-dropdown-option.selected:not(.disabled) {
  background: var(--eduloo-dd-option-selected-bg);
  box-shadow: inset 0 0 0 1px var(--eduloo-dd-option-selected-border);
  color: var(--eduloo-dd-option-selected-text);
  font-weight: 700;
}

body .custom-dropdown-option.selected:not(.disabled)::before {
  content: none;
}

body .custom-dropdown-option.disabled {
  opacity: 0.54;
  cursor: not-allowed;
  background: transparent !important;
}

body .custom-dropdown-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

body .custom-dropdown-option.disabled .custom-dropdown-checkbox {
  cursor: not-allowed;
}

body .custom-dropdown-option-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

body .custom-dropdown-option-image {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex-shrink: 0;
}

body .custom-dropdown-option-image.circle {
  border-radius: 999px;
}

body .custom-dropdown-option-image.square {
  border-radius: 8px;
}

body .custom-dropdown-option-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: var(--eduloo-dd-icon);
  font-size: 14px;
}

body .custom-dropdown-option-text {
  flex: 1;
  min-width: 0;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body .custom-dropdown-option-text mark {
  background: var(--eduloo-dd-mark-bg);
  color: var(--eduloo-dd-mark-text);
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 700;
}

body .custom-dropdown-option .status-badge {
  margin-left: auto;
  flex-shrink: 0;
}

body .custom-dropdown-no-results {
  padding: 14px;
  text-align: center;
  color: var(--eduloo-dd-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 768px) {
  body .custom-dropdown-panel {
    max-height: min(360px, 60vh);
    max-width: calc(100vw - 16px);
  }

  body .custom-dropdown-option {
    min-height: 42px;
    padding: 10px;
  }

  body .custom-dropdown-trigger {
    min-height: 42px;
    padding: 0 12px;
  }

  body .custom-dropdown-action-btn {
    min-height: 40px;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  body .custom-dropdown-panel {
    left: 0;
    max-height: min(420px, 70vh);
    max-width: calc(100vw - 14px);
  }
}

@media print {
  body .custom-dropdown {
    display: none;
  }

  body select[data-dropdown] {
    display: block !important;
  }
}

@media (prefers-contrast: high) {
  body .custom-dropdown-trigger {
    box-shadow: inset 0 0 0 2px var(--eduloo-dd-trigger-border) !important;
  }

  body .custom-dropdown-option.focused:not(.disabled) {
    box-shadow: inset 0 0 0 2px var(--eduloo-dd-option-focused-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  body .custom-dropdown-panel,
  body .custom-dropdown-chevron,
  body .custom-dropdown-option,
  body .custom-dropdown-trigger,
  body .custom-dropdown-action-btn {
    animation: none;
    transition: none;
  }
}

body.theme-dark {
  --eduloo-dd-trigger-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 84%,
    var(--primary-container) 16%
  );
  --eduloo-dd-trigger-bg-hover: color-mix(
    in srgb,
    var(--surface-container-highest) 70%,
    var(--primary-container) 30%
  );
  --eduloo-dd-trigger-bg-open: color-mix(
    in srgb,
    var(--surface-container-highest) 62%,
    var(--primary-container) 38%
  );
  --eduloo-dd-trigger-border: color-mix(
    in srgb,
    var(--outline-variant) 80%,
    rgba(255, 255, 255, 0.2) 20%
  );
  --eduloo-dd-trigger-border-hover: color-mix(
    in srgb,
    var(--eduloo-dd-trigger-border) 62%,
    var(--primary) 38%
  );
  --eduloo-dd-trigger-border-open: color-mix(
    in srgb,
    var(--primary) 44%,
    var(--eduloo-dd-trigger-border) 56%
  );
  --eduloo-dd-focus-ring: color-mix(in srgb, var(--primary) 52%, transparent);
  --eduloo-dd-panel-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 90%,
    var(--primary-container) 10%
  );
  --eduloo-dd-panel-border: color-mix(
    in srgb,
    var(--outline-variant) 82%,
    rgba(255, 255, 255, 0.2) 18%
  );
  --eduloo-dd-panel-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.36);
}

body.theme-dark .custom-dropdown-trigger {
  border: 1px solid var(--eduloo-dd-trigger-border) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 16px -12px rgba(0, 0, 0, 0.34) !important;
}

body.theme-dark .custom-dropdown-trigger:hover:not(:disabled) {
  filter: none !important;
}

body.theme-dark .custom-dropdown.open .custom-dropdown-trigger,
body.theme-dark .custom-dropdown-trigger:focus:not(:disabled),
body.theme-dark .custom-dropdown-trigger:focus-visible:not(:disabled) {
  border-color: var(--eduloo-dd-trigger-border-open) !important;
}

body.theme-dark .custom-dropdown-panel {
  border: 1px solid var(--eduloo-dd-panel-border) !important;
}

body.theme-dark {
  --eduloo-dd-trigger-bg: var(--eduloo-input-inset-bg);
  --eduloo-dd-trigger-border: var(--eduloo-input-inset-border);
  --eduloo-dd-trigger-bg-hover: color-mix(
    in srgb,
    var(--eduloo-input-inset-bg) 72%,
    var(--primary-container) 28%
  );
  --eduloo-dd-panel-bg: var(--eduloo-dark-surface-panel);
  --eduloo-dd-panel-border: color-mix(
    in srgb,
    var(--outline-variant) 80%,
    rgba(255, 255, 255, 0.2) 20%
  );
}

body.theme-dark .custom-dropdown.open .custom-dropdown-trigger,
body.theme-dark .custom-dropdown-trigger:focus:not(:disabled),
body.theme-dark .custom-dropdown-trigger:focus-visible:not(:disabled) {
  background: var(--eduloo-dd-trigger-bg-open) !important;
  border-color: var(--eduloo-dd-trigger-border-open) !important;
  box-shadow: 0 0 0 2px var(--eduloo-dd-focus-ring) !important;
  filter: none !important;
  transform: none !important;
}

body.theme-dark {
  --eduloo-dd-trigger-bg: var(--eduloo-input-unified-bg);
  --eduloo-dd-trigger-bg-hover: var(--eduloo-input-unified-bg-hover);
  --eduloo-dd-trigger-bg-open: var(--eduloo-input-unified-bg-focus);
  --eduloo-dd-trigger-border: var(--eduloo-input-unified-border);
  --eduloo-dd-trigger-border-hover: var(--eduloo-input-unified-border-hover);
  --eduloo-dd-trigger-border-open: var(--eduloo-input-unified-border-focus);
  --eduloo-dd-focus-ring: var(--eduloo-input-unified-ring);
  --eduloo-dd-panel-bg: color-mix(
    in srgb,
    var(--surface-container-highest) 80%,
    var(--surface-container-high) 20%
  );
}

body.theme-dark .custom-dropdown-trigger {
  border: 1px solid var(--eduloo-dd-trigger-border) !important;
  background: var(--eduloo-dd-trigger-bg) !important;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease !important;
}

body.theme-dark .custom-dropdown-trigger:hover:not(:disabled) {
  background: var(--eduloo-dd-trigger-bg-hover) !important;
  border-color: var(--eduloo-dd-trigger-border-hover) !important;
  filter: none !important;
  transform: none !important;
}

body.theme-dark .custom-dropdown-panel {
  background: var(--eduloo-dd-panel-bg) !important;
  border: 1px solid var(--eduloo-dd-panel-border) !important;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.34) !important;
}

body .custom-dropdown-search .search-field__input,
body .custom-dropdown-search input[type='search'],
body .custom-dropdown-search input[type='text'] {
  border-radius: 999px !important;
}

body.theme-dark .custom-dropdown-action-btn {
  background: var(--eduloo-dd-action-bg) !important;
  border: 1px solid var(--eduloo-dd-action-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  color: var(--eduloo-dd-action-text) !important;
}

body.theme-dark .custom-dropdown-action-btn:hover {
  background: var(--eduloo-dd-action-hover-bg) !important;
  border-color: var(--eduloo-dd-action-hover-border) !important;
  color: var(--eduloo-dd-action-hover-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

body[data-mobile] .custom-dropdown-action-btn {
  background: var(--eduloo-dd-action-bg) !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px var(--eduloo-dd-action-border) !important;
  color: var(--eduloo-dd-action-text) !important;
  font-weight: 700 !important;
  min-height: 40px !important;
}

body[data-mobile] .custom-dropdown-action-btn:hover,
body[data-mobile] .custom-dropdown-action-btn:active,
body[data-mobile] .custom-dropdown-action-btn:focus,
body[data-mobile] .custom-dropdown-action-btn:focus-visible {
  background: var(--eduloo-dd-action-bg) !important;
  border: none !important;
  box-shadow: inset 0 0 0 1px var(--eduloo-dd-action-border) !important;
  color: var(--eduloo-dd-action-text) !important;
  transform: none !important;
}

body[data-mobile] .custom-dropdown-option:hover:not(.disabled):not(.selected),
body[data-mobile]
  .custom-dropdown-option.focused:not(.disabled):not(.selected) {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--eduloo-dd-text) !important;
}

body[data-mobile] .custom-dropdown-option.selected:not(.disabled):hover,
body[data-mobile] .custom-dropdown-option.selected:not(.disabled).focused {
  background: var(--eduloo-dd-option-selected-bg) !important;
  box-shadow: inset 0 0 0 1px var(--eduloo-dd-option-selected-border) !important;
  color: var(--eduloo-dd-option-selected-text) !important;
}
