.composer-container {
    position: relative;
    width: 100%;
}

.composer-textarea {
    position: relative;
    z-index: 2 !important;
    background: var(--input-bg, #f7f9f9) !important;
    color: var(--text-color, #0f1419) !important;
    caret-color: var(--text-color, #0f1419) !important;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    /* Auto expand usually handles height */
    resize: none;
    font-family: inherit;
    font-size: 18px;
    /* Must match highlights */
    line-height: 1.5;
    padding: 16px 12px !important;
    /* Must match highlights */
    border: none;
    outline: none;
}

/* Dark mode adjustment for caret */
[data-theme="dark"] .composer-textarea {
    caret-color: #fff;
}

.composer-highlights {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1 !important;
    pointer-events: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 18px;
    /* Must match textarea */
    line-height: 1.5;
    padding: 16px 12px !important;
    /* Must match textarea */
    color: var(--text-color, #0f1419) !important;
    overflow: hidden;
}

.composer-highlights .mention {
    color: #800080 !important;
    /* Deep Purple */
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.composer-highlights .hashtag {
    color: var(--primary-color, #1d9bf0) !important;
    font-weight: bold;
}

.mention-suggestions {
    position: absolute;
    z-index: 9999;
    background: var(--bg-color, #fff);
    border: 1px solid var(--border-color, #ccc);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    width: 250px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mention-suggestion-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #eee);
}

.mention-suggestion-item:hover {
    background-color: var(--hover-bg, #f5f5f5);
}

.mention-suggestion-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.mention-suggestion-item .info {
    display: flex;
    flex-direction: column;
}

.mention-suggestion-item .name {
    font-weight: bold;
    font-size: 14px;
}

.mention-suggestion-item .username {
    color: var(--secondary-text, #536471);
    font-size: 12px;
}