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

/* Custom scrollbar */
#chat-container::-webkit-scrollbar,
#history-container::-webkit-scrollbar {
    width: 6px;
}

#chat-container::-webkit-scrollbar-track,
#history-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

#chat-container::-webkit-scrollbar-thumb,
#history-container::-webkit-scrollbar-thumb {
    background-color: #4a4a4a;
    border-radius: 20px;
}

.sidebar {
    transition: transform 0.3s ease-in-out;
}

#user-input::placeholder {
    color: #d1d5db;
}

/* Animation for loading dots */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Code block styling */
pre {
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Message content styling */
.message-content p {
    margin: 0;
    line-height: 1.6;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin: 0.25rem 0;
}

/* Button hover effects */
button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Mobile viewport height fix */
#chat-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 90px;
}

/* Sticky footer for mobile */
footer {
    position: sticky;
    bottom: 0;
    background: #000;
    z-index: 999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #chat-container {
        padding: 1rem;
        padding-bottom: 90px;
    }
    
    .message-content {
        max-width: 100% !important;
    }
    
    footer {
        padding: 12px !important;
    }
}
