@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #F3F4F6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* Slim scrollbar for sidebar */
.chat-scroll::-webkit-scrollbar {
    width: 4px;
}
.chat-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.chat-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.chat-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* Chat Bubbles */
.chat-bubble-user {
    background-color: #1E40AF;
    color: white;
    border-radius: 1rem 1rem 0 1rem;
}
.chat-bubble-assistant {
    background-color: white;
    color: #1F2937;
    border-radius: 1rem 1rem 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Markdown formatting in AI response */
.chat-bubble-assistant p {
    margin-bottom: 0.5rem;
}
.chat-bubble-assistant p:last-child {
    margin-bottom: 0;
}
.chat-bubble-assistant ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.chat-bubble-assistant ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.chat-bubble-assistant strong {
    font-weight: 600;
}

/* Typing Indicator */
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #9CA3AF;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 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 typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-blue {
    border-color: rgba(30, 64, 175, 0.2);
    border-top-color: #1E40AF;
}

/* Cards & Tokens */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-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);
}

.brand-primary { color: #1E40AF; }
.bg-brand-primary { background-color: #1E40AF; }
.border-brand-primary { border-color: #1E40AF; }

.brand-accent { color: #F59E0B; }
.bg-brand-accent { background-color: #F59E0B; }
.border-brand-accent { border-color: #F59E0B; }
