body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 40px;
    background-color: #f1f5f9;
    color: #333;
}

h1 {
    color: #0078d4;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

label {
    font-size: 1rem;
    font-weight: bold;
    color: #444;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="submit"],
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0078d4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    font-size: 1rem;
}

input[type="submit"]:hover,
.button:hover {
    background-color: #005a9e;
}

.result {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result h3 {
    color: #005a9e;
    margin-bottom: 10px;
}

.result p {
    margin: 5px 0;
    font-size: 1rem;
}

pre {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    white-space: pre-wrap; /* Wraps long strings */
    word-wrap: break-word; /* Ensures long words break */
    overflow-wrap: break-word; /* Ensures content doesn’t overflow */
}

a.button {
    background-color: #ff5722;
    margin-top: 20px;
}

a.button:hover {
    background-color: #e64a19;
}

.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

@media (max-width: 768px) {
    body {
        margin: 20px;
    }

    form, .result {
        padding: 15px;
    }
}

/* styles.css */

header {
    background-color: #0078d4;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e5e5ea;
}

/* Updated send button styles */
#send-button {
    /* Match chatns send button styles */
    background-color: #007bff; /* Example color */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
}

#send-button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

/* Rounded input box */
#messageInput {
    border-radius: 20px;
    padding: 10px 15px;
}

/* Rounded chat log area */
#chatLog {
    border-radius: 15px;
    height: 400px;
    overflow-y: scroll;
    background-color: #f8f9fa;
    width: 95%;
    padding: 20px;
    box-sizing: border-box;
}

/* Chat wrapper with enhanced drop shadow */
.chat-wrapper {
    background-color: white;
    border-radius: 15px; /* Increased for more pronounced rounding */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Enhanced shadow for better visibility */
    padding: 30px; /* Increased padding for spacious layout */
    max-width: 800px; /* Ensure consistent width */
    margin: 0 auto; /* Center the chat box */
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    margin-right: 10px;
}

.button-group {
    display: flex;
    gap: 5px;
}

/* Adjust chat-form to accommodate separated button group */
.chat-form {
    display: flex;
    flex-direction: column;
}

/* Style the separate button group */
.chat-form .button-group {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.status-indicator {
    padding: 5px 10px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

/* Markdown content styling */
.markdown-content {
    line-height: 1.6;
    width: 95%;
    max-width: none;
}

.markdown-content code {
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.markdown-content pre {
    background-color: #f8f8f8;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
}

.markdown-content a {
    color: #0078d4;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.markdown-content th {
    background-color: #f5f5f5;
}

.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

// ...existing code...
/* Remove or comment out any existing .oauth-card related styles if they exist */
// ...existing code...

/* Chat container and message styling */
.chat-container {
    width: 95%;
    max-width: 1200px;  /* Increased from 800px */
    margin: 0 auto;
    padding: 20px;
}

.message {
    width: 95%;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message .message-text {
    width: 95%;
}

.message.assistant .markdown-content,
.message.user .markdown-content {
    width: 95%;
    max-width: none;  /* Remove max-width constraint */
}