/* History Item Styles */
.history-item {
    @apply cursor-pointer;
    padding: var(--spacing-md) var(--spacing-lg);
    transition: background-color var(--animation-normal) ease;
    font-size: var(--font-size-md);
    line-height: 1.4;
    border-bottom: 1px solid oklch(from var(--color-white) l c h / 0.08);
    color: var(--text-primary);
}

.history-item:hover {
    background: oklch(from var(--color-white) l c h / 0.08);
}

/* Disable hover effect during keyboard navigation */
.history-list.keyboard-navigation .history-item:hover {
    background: transparent;
}

.history-item.flash {
    background: oklch(from var(--color-white) l c h / 0.08);
    animation: flashOut 0.6s ease-out;
}

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

.history-item.selected {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-blue);
}

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

.history-text {
    @apply overflow-hidden break-words;
    color: oklch(from var(--color-white) l c h / 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    margin-bottom: var(--spacing-xs);
}

.history-time {
    color: var(--text-tertiary);
    font-size: 11px;
}

.history-more {
    @apply text-center;
    padding: 8px 16px;
    color: oklch(from var(--color-white) l c h / 0.4);
    font-size: 11px;
    border-top: 1px solid oklch(from var(--color-white) l c h / 0.12);
}