/* Smart Prompts Dropdown */
.wrapper {
  position: relative;
  display: inline-flex;
  -webkit-app-region: no-drag;
}

.trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.trigger:hover {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
}

.triggerActive {
  background: var(--bg-highlight);
  color: var(--accent);
  border-color: var(--accent);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  width: 320px;
  max-height: min(500px, calc(100vh - 80px));
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.searchWrapper {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.searchInput {
  width: 100%;
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg-primary);
  font-size: var(--font-base);
  font-family: inherit;
  outline: none;
}

.searchInput:focus {
  border-color: var(--accent);
}

.searchInput::placeholder {
  color: var(--fg-muted);
  opacity: 0.5;
}

.statusBanner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: var(--font-xs);
  color: var(--warning, #e5a300);
  background: rgba(229, 163, 0, 0.08);
  border-bottom: 1px solid var(--border);
}

.statusIcon {
  flex-shrink: 0;
}

.list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.categoryHeader {
  padding: 8px 12px 4px;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--fg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.item:hover {
  background: var(--bg-highlight);
}

.itemDisabled {
  opacity: 0.5;
  cursor: default;
}

.itemContent {
  flex: 1;
  min-width: 0;
}

.itemName {
  display: block;
  font-size: var(--font-base);
  color: var(--fg-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itemDesc {
  display: block;
  font-size: var(--font-xs);
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.itemShortcut {
  flex-shrink: 0;
  font-size: var(--font-2xs);
  color: var(--fg-muted);
  background: var(--bg-tertiary);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.footer {
  padding: 6px 10px;
  border-top: 1px solid var(--border);
}

.manageLink {
  background: none;
  border: none;
  color: var(--fg-secondary);
  font-size: var(--font-xs);
  cursor: pointer;
  padding: 2px 0;
}

.manageLink:hover {
  color: var(--accent);
}

.empty {
  padding: 16px 10px;
  text-align: center;
  font-size: var(--font-sm);
  color: var(--fg-muted);
}
