body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background-color 0.3s ease;
}

.chat-container {
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
}

.chat-header-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.chat-header {
    background: linear-gradient(135deg, #6200ea, #9c27b0);
    color: white;
    text-align: center;
    font-size: 1.5em;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    width: 100%;
}

.chat-header h1 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.chat-box {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    margin-bottom: 92px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.chat-input-container {
    display: flex;
    justify-content: center;
    padding: 16px;
    width: 100%;
    background: transparent;
}

.chat-input {
    display: flex;
    padding: 16px;
    border-top: 1px solid #ccc;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    position: absolute;
    bottom: 32px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.chat-input button {
    background-color: #6200ea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background-color: #4500b0;
}

.message {
    padding: 8px;
    margin: 4px 0;
    border-radius: 4px;
    max-width: 70%;
    position: relative;
}

.message .sender {
    font-weight: bold;
    margin-bottom: 4px;
}

.message.user {
    background-color: #e0e0e0;
    align-self: flex-end;
}

.message.bot {
    background-color: #bbdefb;
    align-self: flex-start;
}

.typing-indicator {
    display: flex;
    align-items: center;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #333;
    border-radius: 50%;
    opacity: 0;
    animation: blink 1.4s infinite both;
}

.typing-indicator .dot:nth-child(1) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.4s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

.dark-mode body {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .chat-container {
    background-color: #1e1e1e;
}

.dark-mode .chat-input {
    background-color: #2c2c2c;
    border-color: #555;
}

.dark-mode .chat-input input {
    background-color: #3c3c3c;
    color: #ffffff;
    border-color: #555;
}

.dark-mode .chat-box {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode .message.user {
    background-color: #333333;
}

.dark-mode .message.bot {
    background-color: #2a9df4;
}

.toggle-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5em;
}