* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    background-color: #f8f9fa;
}

.container {
    display: flex;
    height: 100vh;
}

.main-content {
    flex: 1;
    padding: 0 100px 0 200px;
    margin-left: 0;
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
}

.messages-container {
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px; /* Default padding, will be updated by JS */
    transition: padding-bottom 0.2s ease;
}

.message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user {
    background-color: #e3f2fd;
    color: #1a1a1a;
}

.assistant {
    background-color: #f8f9fa;
    color: #1a1a1a;
}

.system {
    background-color: #fff3e0;
    margin: 15px auto;
}

.message-role {
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9em;
}

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

.input-container {
    position: fixed;
    bottom: 0;
    left: 200px;
    right: 100px;
    padding: 15px 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,1) 100%);
    backdrop-filter: blur(5px);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.chat-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: inherit;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    overflow-y: auto;
}

.send-button,
.vibe-button{
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.send-button:hover,
.vibe-button:hover {
    background-color: #0052a3;
}

.model-display {
    color: #666;
    font-size: 0.85em;
    text-align: right;
    padding-top: 5px;
}

.language {
    background-color: #333333;
    color: #e5e5e5;
    padding: 0.2em 0.4em;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
    font-size: 0.9em;
    position: relative;
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: -1px;
    z-index: 0;
}

.message-content pre {
    background-color: #1a1a2e;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 15px;
    margin: 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #2a2a4e;
    z-index: 1;
}

.message-content code {
    background-color: #1a1a2e;
    color: #e0e0e0;
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
    font-size: 0.9em;
}

.message-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.loading-indicator {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.dots {
    display: flex;
    padding-top: 15px;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #666;
}

.dot:nth-child(1) {
    animation: bounce 0.8s infinite;
}

.dot:nth-child(2) {
    animation: bounce 0.8s infinite 0.2s;
}

.dot:nth-child(3) {
    animation: bounce 0.8s infinite 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Make sure these styles are applied to maintain the layout */
.input-wrapper {
    display: flex;
    position: relative;
    width: 100%;
}

.model-display {
    display: block;
    width: 100%;
    text-align: left;
    padding: 5px 0;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
