/* public/assets/style.css */

.chat-bubble {
    max-width: 80%;
    padding: 0.85rem 1.15rem;
    border-radius: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    will-change: transform, opacity;
}

.bubble-bot {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1f2937; /* gray-800 */
    border-bottom-left-radius: 0.25rem;
    border: 1px solid rgba(229, 231, 235, 0.5); /* gray-200 */
    backdrop-filter: blur(8px);
}

.bubble-customer {
    background-image: linear-gradient(135deg, #014A36 0%, #013325 100%);
    color: white;
    border-bottom-right-radius: 0.25rem;
    align-self: flex-end;
    box-shadow: 0 4px 6px -1px rgba(1, 74, 54, 0.2), 0 2px 4px -1px rgba(1, 74, 54, 0.1);
    border: 1px solid rgba(1, 74, 54, 0.1);
}

.bubble-system {
    background-color: rgba(243, 244, 246, 0.8); /* gray-100 */
    color: #6b7280; /* gray-500 */
    align-self: center;
    font-size: 0.85rem;
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    box-shadow: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(229, 231, 235, 0.3);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.quick-reply-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #C30F0E;
    color: #C30F0E;
    border-radius: 9999px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    backdrop-filter: blur(4px);
}

.quick-reply-btn:hover {
    background-color: #C30F0E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(195, 15, 14, 0.2);
}

.quick-reply-btn:active {
    transform: translateY(0);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1rem 1.25rem !important;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #9ca3af;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite both;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
    40% { transform: translateY(-4px); opacity: 1; }
}

/* Hide scrollbar for cleaner look */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(209, 213, 219, 0.5); /* gray-300 with opacity */
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.8); /* gray-400 with opacity */
}

/* Hide scrollbar for carousel */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
