@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

#model-selector {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

#model-selector option {
    background-color: #1e293b;
    color: #f1f5f9;
    padding: 8px;
}

#model-selector:hover {
    background-color: rgb(51 65 85 / 0.9);
    border-color: rgb(71 85 105);
}

.chat-bubble {
    width: fit-content;
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
    word-wrap: break-word;
}

.chat-bubble-user {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble-ai {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.chat-bubble-ai code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #a5f3fc;
}

.chat-bubble-ai pre {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 10px;
    margin: 6px 0;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-bubble-ai pre code {
    background: transparent;
    padding: 0;
}

.chat-bubble-ai strong {
    font-weight: 600;
    color: #fbbf24;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1);
    }
}

.animate-wave {
    animation: wave 1s ease-in-out infinite;
}

#chat-scroll-area::-webkit-scrollbar {
    width: 4px;
}

#chat-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

#chat-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

#chat-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
    .chat-bubble {
        font-size: 13px;
        padding: 9px 12px;
        max-width: 90%;
    }
}