body {
    margin: 0;
    font-family: Arial, sans-serif;
}
.navbar {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.navbar img {
    height: 40px;
    margin-right: 200px;

}
.navbar a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.navbar input[type="text"] {
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-left: 20px;
    margin-right: 20px;
    width: 200px;
    height: 25px;
    font-size: 12px;
    font-family: monospace;
}

.navbar .token-input {
    width: 150px; /* Slightly narrower for token */
}

.navbar input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
}

.navbar button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-width: 80px;
    padding: 10px;
    font-size: 12px;
    margin: 20px;
}

.navbar button:hover {
    background-color: #0056b3;
}
.navbar a:hover {
    text-decoration: underline;
}
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.tokens-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.tokens-button:hover {
    background-color: #0056b3;
}

/* Chat specific styles */
body.chat {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
}

#sidebar {
    width: 300px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 60px;
}

#sidebar h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

#new-chat-button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
}

#new-chat-button:hover {
    background-color: #0056b3;
}

.conversation-item {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: background-color 0.2s;
}

.conversation-header {
    padding: 15px;
    margin: 10px 0;
    background-color: #e9ecef;
    border-radius: 5px;
    cursor: default;
}

.conversation-item:hover {
    background-color: #e9ecef;
}

.conversation-item.active {
    background-color: #007bff;
    color: white;
}

.conversation-item .timestamp {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.conversation-item.active .timestamp {
    color: rgba(255, 255, 255, 0.8);
}

.conversation-item .preview {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
    background-color: #ffffff;
    margin-left: 300px;
    width: calc(100% - 300px);
    padding-top: 60px; /* Add padding to account for fixed navbar */
}

.message {
    display: flex;
    gap: 12px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    /*align-items: center;*/
}

.message.user {
    background-color: #f0f0f0;
    color: #333;
}

.message.assistant {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 3px;
}

.avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
}

.content {
    flex: 1;
    white-space: pre-wrap;
    line-height: 1.5;
}

#input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: #40414f;
}

#input-form {
    /*max-width: 800px;*/
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

#model-select {
    width: 20%;
    min-width: 120px;
    margin-right: 10px;
}

#message-input {
    flex: 1;
    min-width: 200px;
}

#send-button {
    width: 100px;
    min-width: 100px;
}

#model-select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #40414f;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

#model-select:hover {
    background-color: #4a4b5a;
}

#message-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #40414f;
    color: white;
    font-size: 16px;
    resize: none;
    min-height: 44px;
    max-height: 200px;
}

#send-button {
    background-color: #10a37f;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    height: 48px;
    min-width: 100px;
}

#send-button:hover {
    background-color: #1a7f64;
}
