/* ai version selector - premium glassmorphism style */
.ai-version-select {
  appearance: none;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 6px 36px 6px 14px;
  /* extra right padding for arrow */
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 8px rgba(255, 255, 255, 0.15);
  margin-right: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ai-version-select::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-color);
  pointer-events: none;
}

.ai-version-select:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ai-version-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.ai-version-select option[disabled] {
  color: #888;
}


/* Additional styles for version-specific select */

.ai-version-select.pro-version {
  /* premium glassmorphism with vibrant gradient */
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.6), 0 0 24px rgba(0, 255, 255, 0.4);
  color: var(--text-color);
}


.ai-version-select.thinking-version {
  /* low-budget styling: muted colors */
  background: rgba(30, 30, 30, 0.2);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-weight: 300;
}

#chat-input-container .ai-version-select {
  flex-shrink: 0;
}

/* Thinking indicator animation */
.thinking-indicator {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.85rem;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  animation: fadeInOut 2s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  10% {
    opacity: 1;
    transform: scale(1);
  }

  90% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}