/* Chat UI Utilities (Light Mode) */

/* Sizing and Spacing */
.w-80 {
    width: 20rem;
}

@media (min-width: 768px) {
    .md\:w-96 {
        width: 24rem;
    }
}

.gap-2\.5 {
    gap: 0.625rem;
}

.max-w-\[320px\] {
    max-width: 320px;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.p-2\.5 {
    padding: 0.625rem;
}

.leading-1\.5 {
    line-height: 1.5;
}

/* Rings and Focus Styles */
.focus\:ring-emerald-500:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) #10b981;
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:border-emerald-500:focus {
    border-color: #10b981;
}

/* Rounded Corners Variants */
.rounded-e-xl {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.rounded-es-xl {
    border-bottom-left-radius: 0.75rem;
}

.rounded-s-xl {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.rounded-ee-xl {
    border-bottom-right-radius: 0.75rem;
}

/* Animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Stable Scrollable Container */
.chat-messages-container {
    flex: 1 1 0%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #10b981 #f3f4f6;
}

.chat-messages-container::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background-color: #10b981;
    border-radius: 20px;
}

/* RTL space-x-reverse */
.rtl\:space-x-reverse {
    --tw-space-x-reverse: 1;
}