/* Conversation History Dropdown */

.history-btn-wrapper {
  position: relative;
}

/* #history-btn styled via .icon-btn in header.css */

.history-dropdown {
  position: fixed;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}


.history-dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.history-item:last-child {
  border-bottom: none;
}

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

.history-item-current {
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}

.history-item-content {
  flex: 1;
  min-width: 0;
}

.history-item-title {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.history-item-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.history-item:hover .history-item-delete {
  opacity: 1;
}

.history-item-delete:hover {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}
