/* Base resets and scrollbar styling */
* {
    box-sizing: border-box;
}

body {
    /* Ensure font loading is smooth */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar for Webkit */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Utility for Markdown-like styling within messages */
.markdown-body p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.markdown-body strong {
    color: #1e293b;
    font-weight: 700;
}

/* Typing Indicator Dots */
.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); }
    40% { transform: scale(1); }
}

/* Product Card Hover Effect */
.product-card {
    transition: all 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Message Bubble Arrow */
.message-bubble-user {
    border-bottom-left-radius: 0;
}

.message-bubble-bot {
    border-bottom-right-radius: 0;
}

/* Input Focus Ring */
.input-focused:focus-within {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}