body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #353b43; /* $dark-color */
    color: #afbac4; /* $light-color */
}

.chat-container {
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    background-color: #242930; /* $darkest-color */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #57cc8a; /* $primary-color */
}

.chat-header {
    padding: 20px;
    background-color: #57cc8a; /* $primary-color */
    color: #ffffff; /* $lightest-color */
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-header h1 {
    margin: 0;
    font-size: 1.5em;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.system-message {
    align-self: center;
    background-color: #353b43; /* $dark-color */
    color: #afbac4; /* $light-color */
    font-style: italic;
    font-size: 0.9em;
    max-width: 80%;
    text-align: center;
    border: 1px solid #57cc8a; /* $primary-color */
}

.user-message {
    align-self: flex-end;
    background-color: #57cc8a; /* $primary-color */
    color: #ffffff; /* $lightest-color */
}

.other-message {
    align-self: flex-start;
    background-color: #353b43; /* $dark-color */
    color: #afbac4; /* $light-color */
    border: 1px solid #57cc8a; /* $primary-color */
}

.message-text {
    display: block;
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.7em;
    opacity: 0.7;
}

.chat-input-container {
    display: flex;
    padding: 20px;
    border-top: 1px solid #353b43; /* $dark-color */
}

#messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #57cc8a; /* $primary-color */
    border-radius: 5px;
    font-size: 1em;
    background-color: #242930; /* $darkest-color */
    color: #afbac4; /* $light-color */
}

#messageInput:focus {
    outline: none;
    border-color: #57cc8a; /* $primary-color */
    box-shadow: 0 0 5px rgba(87, 204, 138, 0.5); /* $primary-color with opacity */
}

#sendButton {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #57cc8a; /* $primary-color */
    color: #ffffff; /* $lightest-color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#sendButton:hover {
    background-color: #45a049; /* slightly darker shade */
}

#sendButton:disabled {
    background-color: #353b43; /* $dark-color */
    cursor: not-allowed;
}