/* 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;
}

/* ==========================================================================
   Quick Command Bar & /report Action Pill
   ========================================================================== */
.quick-command-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-command-bar::-webkit-scrollbar {
    display: none;
}

.quick-cmd-pill {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px 5px 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.12) 100%);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 9999px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1f2937);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

:root[data-theme="dark"] .quick-cmd-pill {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(99, 102, 241, 0.18) 100%);
    border-color: rgba(96, 165, 250, 0.32);
    color: #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.quick-cmd-pill:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(99, 102, 241, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.22);
}

.quick-cmd-pill:active {
    transform: scale(0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-cmd-pill .pill-sparkle {
    font-size: 13px;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(234, 179, 8, 0.4));
}

.quick-cmd-pill .pill-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.18);
    color: #2563eb;
    letter-spacing: -0.2px;
}

:root[data-theme="dark"] .quick-cmd-pill .pill-badge {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.quick-cmd-pill .pill-title {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.quick-cmd-pill .pill-arrow {
    stroke: var(--text-secondary, #6b7280);
    opacity: 0.7;
    transition: transform 0.2s ease, stroke 0.2s ease;
    margin-left: 1px;
}

.quick-cmd-pill:hover .pill-arrow {
    stroke: var(--blue-accent, #3b82f6);
    transform: translateX(2px);
    opacity: 1;
}

/* Slash Command Dropdown Item */
.slash-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
}

.slash-item-icon {
    font-size: 18px;
    line-height: 1.2;
    flex-shrink: 0;
}

.slash-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.slash-item-label {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-accent, #3b82f6);
}

.slash-item-desc {
    font-size: 12px;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.3;
}

