

.chat-btn {
    background-color: #f3f0ff;
    color: #6b46c1;
}


.phone-btn:hover, .chat-btn:hover {
    background-color: #e9d8fd;
    transform: scale(1.05);
}




/* Chat Modal Styles */
.chat-modal-content {
    max-width: 500px !important;
    height: 600px !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
}


.chat-header {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.chat-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}


.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    border: 2px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}


.chat-name {
    font-weight: 600;
    font-size: 1.1rem;
}


.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.message-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}


.message-sent {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}


.message-received {
    align-self: flex-start;
    background: white;
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}


.chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 10px;
    align-items: center;
}


.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 25px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}


.chat-input:focus {
    border-color: var(--primary-color);
}


/* RTL Adjustments */
[dir="rtl"] .message-sent {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 18px;
}


[dir="rtl"] .message-received {
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 18px;
}