/* Typing suggestions dropdown for the chat input.
   Positioned above the input box (the composer sits at the bottom of the screen). */

.input-container {
    position: relative;
}

.suggestions-box {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 6px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestions-box[hidden] {
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.3;
    transition: background-color 0.12s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--hover-bg);
}

.suggestion-item .suggestion-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.suggestion-item .suggestion-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Highlight the part of the suggestion that matches what the user typed */
.suggestion-item .suggestion-match {
    color: var(--blue-accent);
    font-weight: 600;
}

/* Scrollbar (matches the app's subtle style) */
.suggestions-box::-webkit-scrollbar {
    width: 8px;
}

.suggestions-box::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 8px;
}
