/* QChatInput Global Styles */

/* Fix line breaks - override Lexical's flex display on paragraphs */
.qchat-editor .lexical-paragraph,
.qchat-editor p {
    display: block !important;
    margin: 0;
    padding: 0;
}

/* Ensure line breaks work correctly */
.qchat-editor br {
    display: block;
    content: "";
    margin: 0.25em 0;
}

/* Mention dropdown menu - ensure it's visible above all containers */
.lexical-mention-dropdown {
    position: fixed !important;
    z-index: 2147483647 !important;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-height: 250px;
    overflow-y: auto;
    padding: 0.25rem;
    min-width: 220px;
}

/* Mention item */
.lexical-mention-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.lexical-mention-item:hover {
    background-color: #f3f4f6;
}

.lexical-mention-item.selected {
    background-color: #dbeafe;
}

/* Avatar placeholder */
.lexical-mention-avatar-placeholder {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Text container */
.lexical-mention-text {
    flex: 1;
    min-width: 0;
}

/* Mention name */
.lexical-mention-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.25;
}

/* Mention type */
.lexical-mention-type {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.25;
}

/* QChat Editor Container */
.qchat-input-container {
    position: relative;
}

/* Editor styling */
.qchat-editor {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    min-height: 2.5rem;
    max-height: 150px;
    overflow-y: auto;
    transition: border-color 0.15s ease-in-out;
}

.qchat-editor:focus-within {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.qchat-editor.theme-compact {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}
