/* @ Mention dropdown */
.claudian-mention-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 4px;
  background: var(--background-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--background-modifier-border);
  border-radius: 6px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
}

.claudian-mention-dropdown.visible {
  display: block;
}

/* Fixed positioning for inline editor */
.claudian-mention-dropdown-fixed {
  position: fixed;
  z-index: 10001;
}

.claudian-mention-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.claudian-mention-item:hover,
.claudian-mention-item.selected {
  background: var(--background-modifier-hover);
}

.claudian-mention-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.claudian-mention-icon svg {
  width: 14px;
  height: 14px;
}

.claudian-mention-path {
  font-size: 13px;
  color: var(--text-normal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claudian-mention-empty {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Scrollbar for mention dropdown */
.claudian-mention-dropdown::-webkit-scrollbar {
  width: 6px;
}

.claudian-mention-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.claudian-mention-dropdown::-webkit-scrollbar-thumb {
  background: var(--background-modifier-border);
  border-radius: 3px;
}

/* MCP items in @-mention dropdown */
.claudian-mention-item.mcp-server .claudian-mention-icon {
  color: var(--interactive-accent);
}

.claudian-mention-item.vault-folder .claudian-mention-icon {
  color: var(--text-muted);
}

.claudian-mention-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.claudian-mention-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--interactive-accent);
}

.claudian-mention-desc {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Context file items in @-mention dropdown */
.claudian-mention-item.context-file .claudian-mention-icon {
  color: var(--claudian-brand);
}

.claudian-mention-item.context-file .claudian-mention-text {
  flex-direction: row;
  overflow: hidden;
  white-space: nowrap;
}

.claudian-mention-item.context-file .claudian-mention-name-context {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Context folder filter items in @-mention dropdown */
.claudian-mention-item.context-folder .claudian-mention-icon {
  color: var(--text-muted);
}

.claudian-mention-name-folder {
  color: var(--text-normal);
  font-weight: 500;
}

.claudian-mention-name-context {
  color: var(--text-normal);
}

/* Agent folder items in @-mention dropdown */
.claudian-mention-item.agent-folder .claudian-mention-icon {
  color: var(--link-color);
}

.claudian-mention-name-agent-folder {
  color: var(--link-color);
  font-weight: 600;
}

/* Agent items in @-mention dropdown (inside @Agents/) */
.claudian-mention-item.agent .claudian-mention-icon {
  color: var(--link-color);
}

.claudian-mention-item.agent .claudian-mention-text {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.claudian-mention-item.agent .claudian-mention-name-agent {
  color: var(--text-normal);
  font-size: 13px;
  flex-shrink: 0;
}

.claudian-mention-item.agent .claudian-mention-agent-desc {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
