/* ==========================================================================
   Messaging Panel Styles (WhatsApp Style)
   ========================================================================== */

/* Messaging Panel */
#messageScrollArea {
    overscroll-behavior-y: contain;
}

/* Messaging Panel (WhatsApp Style) */
#conversationList .list-group-item {
    border-bottom: 1px solid #2d2d2d !important;
    padding: 0.8rem 1rem !important;
}

#conversationList .list-group-item:hover {
    background-color: #2a2a2a !important;
}

#conversationList .list-group-item.active-conversation {
    background-color: #333 !important;
}

#messageScrollArea {
    background-color: #0b0c10;
    background-image: url('data:image/svg+xml,%3Csvg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h16v2h-6v6h6v8H8v-6H2v6H0V0zm4 4h2v2H4V4zm8 8h2v2h-2v-2zm-8 0h2v2H4v-2zm8-8h2v2h-2V4z" fill="%23ffffff" fill-opacity="0.02" fill-rule="evenodd"/%3E%3C/svg%3E');
}

.bubble {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    padding: 8px 14px;
    word-wrap: break-word;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.bubble.incoming {
    background-color: #005c4b;
    color: #e9edef;
    align-self: flex-start;
    border-radius: 4px 12px 12px 12px;
}

.bubble.outgoing {
    background-color: #262d31;
    color: #e9edef;
    align-self: flex-end;
    border-radius: 12px 4px 12px 12px;
}

.bubble .timestamp {
    font-size: 0.75rem;
    color: rgba(233, 237, 239, 0.6);
    align-self: flex-end;
    margin-top: 4px;
    margin-left: 10px;
}

#replyBarWrapper {
    background-color: #202c33;
    border-top: 1px solid #2d2d2d !important;
}

#replyBarWrapper textarea {
    background-color: #2a3942 !important;
    color: #e9edef !important;
    border-radius: 20px !important;
    border: none !important;
    resize: none;
    padding-right: 45px;
}

#replyBarWrapper textarea::placeholder {
    color: #8696a0 !important;
}

#replyBarWrapper .btn-warning {
    background-color: var(--bs-yellow);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

#replyBarWrapper .position-relative {
    display: flex;
    align-items: center;
}

#emojiBtn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #8696a0;
    font-size: 1.3rem;
    padding: .25rem .5rem;
    z-index: 5;
}

#emojiBtn:hover {
    color: #e9edef;
}
