/* ===================================================================
   GLIDE SELECT COMPONENT STYLES (React Bits Inspiration)
   Custom animated select chip with sliding highlight & pop animation
   =================================================================== */

.glide-select-wrapper {
  position: relative;
  display: inline-block;
  user-select: none;
  font-family: 'Outfit', 'Inter', sans-serif;
  z-index: 5;
}

.glide-select-wrapper.is-open {
  z-index: 99999 !important;
}

.glide-select-wrapper.is-open .glide-select-menu {
  z-index: 100000 !important;
}

/* Trigger Button / Chip */
.glide-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gs-surface, #27272a);
  color: var(--gs-text, #f5f5f5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--gs-radius, 10px);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.glide-select-trigger:hover {
  background: var(--gs-highlight, #3f3f46);
  border-color: rgba(255, 255, 255, 0.2);
}

.glide-select-trigger.is-open {
  border-color: var(--gold-primary, #06B6D4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.glide-select-flag,
.glide-option-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.flag-icon {
  width: 19px;
  height: 13.5px;
  border-radius: 2.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: block;
  flex-shrink: 0;
}

.glide-select-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-primary, #06B6D4);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.glide-select-chevron {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.glide-select-trigger.is-open .glide-select-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu Container */
.glide-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  width: var(--gs-menu-width, 176px);
  background: var(--gs-surface, #27272a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--gs-radius, 10px);
  padding: 5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(-6px);
  transform-origin: top right;
  transition: opacity var(--gs-pop-duration, 180ms) cubic-bezier(0.2, 0, 0, 1),
              transform var(--gs-pop-duration, 180ms) cubic-bezier(0.2, 0, 0, 1),
              visibility var(--gs-pop-duration, 180ms);
}

.glide-select-menu.align-right {
  right: 0;
  left: auto;
  transform-origin: top right;
}

.glide-select-menu.align-left {
  left: 0;
  right: auto;
  transform-origin: top left;
}

.glide-select-menu.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

/* Sliding Pill Highlight (Glide effect) */
.glide-select-highlight {
  position: absolute;
  top: 0;
  left: 5px;
  right: 5px;
  height: 38px;
  background: var(--gs-highlight, #3f3f46);
  border-radius: calc(var(--gs-radius, 10px) - 3px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform var(--gs-glide-duration, 220ms) cubic-bezier(0.2, 0, 0, 1),
              height 0.15s ease,
              opacity 0.15s ease;
}

.glide-select-highlight.is-active {
  opacity: 1;
}

/* Option Items */
.glide-select-option {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 38px;
  height: auto;
  border-radius: calc(var(--gs-radius, 10px) - 3px);
  font-size: 13px;
  font-weight: 600;
  color: var(--gs-text, #f5f5f5);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.glide-select-option:hover {
  color: #fff;
}

.glide-select-option.is-selected {
  color: var(--gold-light, #38bdf8);
  font-weight: 700;
}

.glide-option-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.glide-option-flag {
  font-size: 15px;
  line-height: 1;
}

.glide-option-tag {
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold-primary, #06B6D4);
}

.glide-select-option.is-selected .glide-option-tag {
  background: rgba(6, 182, 212, 0.2);
  color: var(--gold-light, #38bdf8);
}

/* ===================================================================
   FORM & COMPACT VARIANTS (Auto-applied to enhanced selects)
   =================================================================== */

/* Form full-width dropdown */
.glide-select-wrapper.glide-select-form {
  display: block !important;
  width: 100% !important;
  position: relative;
  z-index: 5;
}

.glide-select-wrapper.glide-select-form.is-open {
  z-index: 99999 !important;
}

.glide-select-wrapper.glide-select-form .glide-select-trigger {
  width: 100% !important;
  height: 42px;
  min-height: 42px;
  background: var(--bg-card, #0a1122);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-sm, 8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.glide-select-wrapper.glide-select-form .glide-select-trigger:hover {
  background: #0e172c;
  border-color: rgba(6, 182, 212, 0.4);
}

.glide-select-wrapper.glide-select-form .glide-select-trigger.is-open {
  border-color: var(--cyan-primary, #06B6D4);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

.glide-select-wrapper.glide-select-form .glide-select-menu {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  transform-origin: top center;
  background: #0a1122;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 15px rgba(6, 182, 212, 0.12);
  z-index: 100000 !important;
}

.glide-select-wrapper.glide-select-form .glide-select-highlight {
  top: 0;
  left: 5px;
  right: 5px;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 6px;
  height: 38px;
}

.glide-select-wrapper.glide-select-form .glide-select-option {
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glide-select-wrapper.glide-select-form .glide-select-option.is-selected {
  color: var(--cyan-light, #38bdf8);
  font-weight: 700;
}

/* Compact chip dropdown (for currency in tight inputs) */
.glide-select-wrapper.glide-select-compact {
  display: inline-block;
  width: auto;
}

.glide-select-wrapper.glide-select-compact .glide-select-trigger {
  height: 32px;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 6px;
  background: var(--bg-input, #040813);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glide-select-wrapper.glide-select-compact .glide-select-menu {
  min-width: 130px;
  width: auto;
  background: #0a1122;
}

