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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    background-color: #f5f5f5;
}

.chat-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 4rem);
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    outline: none;
}

#chat-messages:focus {
    box-shadow: inset 0 0 0 2px #007bff;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    max-width: 80%;
    outline: none;
    position: relative;
}

.message:focus,
.message.message-focused {
    box-shadow: 0 0 0 2px #007bff;
}

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

.ai-message {
    background-color: #f0f0f0;
    color: #333;
    margin-right: auto;
}

.input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}

#user-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    height: 60px;
    font-family: inherit;
}

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

#user-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

#send-button {
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

#send-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

#send-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
} 