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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.chat-container {
    width: 100%;
    max-width: 600px;
    height: 80vh;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background-color: #232f3e;
    color: #ffffff;
    padding: 1rem 1.5rem;
    text-align: center;
}

.chat-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 80%;
}

.user-message {
    align-self: flex-end;
}

.bot-message {
    align-self: flex-start;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message .message-content {
    background-color: #0073bb;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background-color: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 4px;
}

.chat-input-form {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #0073bb;
}

.send-button {
    padding: 0.75rem 1.5rem;
    background-color: #0073bb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-button:hover {
    background-color: #005a94;
}

.send-button:active {
    background-color: #004a7a;
}
