body {
    background-color: #f0f2f5;
}

.chat-container {
    height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

.message {
    max-width: 85%;
    margin: 15px 0;
    padding: 15px 20px;
    border-radius: 15px;
    line-height: 1.6;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.user-message {
    background-color: #007bff;
    color: white;
    margin-left: auto;
}

.assistant-message {
    background-color: white;
    margin-right: auto;
    border: 1px solid #e1e4e8;
}

.message-header {
    margin-bottom: 8px;
    font-size: 13px;
    opacity: 0.8;
}

.message-content {
    white-space: pre-wrap;
}

.message-content code {
    background-color: #f6f8fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    color: #24292e;
}

.message-content pre {
    background-color: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
    border: 1px solid #e1e4e8;
}

.typing-indicator {
    display: none;
    padding: 12px;
    color: #6e7681;
    background: white;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
}

.typing-indicator::after {
    content: "...";
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0% { content: "." }
    33% { content: ".." }
    66% { content: "..." }
}

.input-area {
    background: white;
    border-top: 1px solid #e1e4e8;
    padding: 15px;
    position: sticky;
    bottom: 0;
    border-radius: 0 0 8px 8px;
}

.form-select {
    border-color: #e1e4e8;
    font-size: 14px;
}

.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#prompt {
    resize: none;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    padding: 12px;
    max-height: 200px;
    border-color: #e1e4e8;
}

.btn-primary {
    padding: 12px 20px;
    font-size: 15px;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Scrollbar styling */
.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}