/* Topic Dropdown Styles */
.topic-dropdown-container {
  flex-shrink: 1;
  min-width: 0;
  max-width: 200px;
}

.topic-dropdown {
  width: 100%;
  padding: 8px 32px 8px 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-dropdown:hover {
  background-color: rgba(99, 102, 241, 0.3);
  border-color: var(--primary);
}

.topic-dropdown:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.topic-dropdown option {
  background: var(--bg-gradient-start);
  color: var(--text-primary);
  padding: 8px;
}

/* Mobile adjustments for topic dropdown */
@media (max-width: 513px) {
  .topic-dropdown-container {
    max-width: 140px;
  }

  .topic-dropdown {
    padding: 6px 28px 6px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
  }
}
