/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: rgba(244, 63, 94, 0.4); /* Rose color */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 63, 94, 0.7); 
}

/* Chat bubble shapes */
.message-bubble {
    position: relative;
    max-width: 85%;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 15px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .message-bubble {
        max-width: 70%;
        font-size: 16px;
    }
}

/* incoming (left) bubble */
.message-incoming {
    background-color: #ffffff;
    border-radius: 16px 16px 16px 4px;
    margin-right: auto;
    border: 1px solid #fce7f3; /* pink-100 */
}

/* outgoing (right) bubble */
.message-outgoing {
    background-color: #ffe4e6; /* rose-100 */
    border-radius: 16px 16px 4px 16px;
    margin-left: auto;
    color: #881337; /* rose-900 */
}

/* Typing indicator animation */
.typing-dot {
    animation: typing 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Modal Animation classes */
.fade-in {
    animation: fadeIn 0.3s forwards;
}
.fade-out {
    animation: fadeOut 0.3s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}
