/* Chat container styles */
.chat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* Chat header */
.chat-header {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.chat-header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

/* Chat messages area */
#chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Message styles */
.message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    max-width: 80%;
}

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

.bot-message {
    background-color: #e9ecef;
    color: #333;
}

.message-header {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Input area */
.chat-input-container {
    position: sticky;
    bottom: 0;
    background-color: #ffffff;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

#chat-form {
    display: flex;
    gap: 10px;
}

#user-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
}

#user-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

button[type="submit"] {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    margin: 20px auto;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Code block styling */
pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

/* Markdown styling */
.bot-message p {
    margin: 0 0 10px 0;
}

.bot-message ul, .bot-message ol {
    margin: 10px 0;
    padding-left: 20px;
}

.bot-message ul li {
    list-style-type: disc;
}

.bot-message ol li {
    list-style-type: decimal;
} 