:root {
    --brand-blue: #5E8AB4;
    --brand-off-white: #FBF6ED;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-arabic {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.bg-brand-blue {
    background-color: var(--brand-blue);
}

.text-brand-blue {
    color: var(--brand-blue);
}

.bg-brand-off-white {
    background-color: var(--brand-off-white);
}

.text-brand-off-white {
    color: var(--brand-off-white);
}

#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-blue) transparent;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--brand-blue);
    border-radius: 10px;
    border: 3px solid transparent;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: pop-in 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pop-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-bubble {
    background-color: #E5E7EB;
    color: #374151;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.agent-bubble {
    background-color: var(--brand-blue);
    color: var(--brand-off-white);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.agent-bubble .agent-cta {
    background-color: rgba(251, 246, 237, 0.2);
    border: 1px solid rgba(251, 246, 237, 0.4);
    color: var(--brand-off-white);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
}

.agent-bubble .agent-cta:hover {
    background-color: rgba(251, 246, 237, 0.3);
    transform: translateY(-1px);
}

.agent-bubble-rtl {
    direction: rtl;
    text-align: right;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 4px;
}

.agent-bubble-rtl ul {
    padding-right: 20px;
}

.quick-reply-chip {
    background-color: transparent;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.quick-reply-chip:hover {
    background-color: var(--brand-blue);
    color: var(--brand-off-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 138, 180, 0.3);
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-off-white);
    animation: typing-pulse 1.4s infinite ease-in-out both;
}

@keyframes typing-pulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    40% {
        transform: scale(1.0);
        opacity: 1;
    }
}
