:root {
    --accent: 47 87 85;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#chat-container {
    width: 90%;
    max-width: 600px;
    height: 100dvh;
    background-color: #ffffff;
    /* border-radius: 8px; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chat-window {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #e0e0e0;
}

#message-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 100%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
}

.message > * {
    margin-block: 0.25rem;
}

.ai-message {
    background-color: #e9e9eb;
    color: #333;
    align-self: flex-start;
}

.user-message {
    background-color: rgb(var(--accent));
    color: #ffffff;
    align-self: flex-end;
}

#chat-form {
    display: flex;
    padding: 15px;
    background-color: #f9f9f9;
}

#message-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 16px;
    margin-right: 10px;
}

#message-input:focus {
    outline: none;
    border-color: rgb(var(--accent));
}

#chat-form button {
    background-color: rgb(var(--accent));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#chat-form button:hover {
    background-color: rgba(var(--accent) / 0.75);
}

.thinking-message {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
    background-color: #e9e9eb;
    color: #333;
    align-self: flex-start;
    border-radius: 18px;
    max-width: 75%;
}

.thinking-message::before,
.thinking-message::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
    animation: typing-pulse 1.4s infinite ease-in-out;
}

.thinking-message::before {
    animation-delay: 0s;
}

.thinking-message::after {
    animation-delay: 0.4s;
}

.thinking-message span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
    animation: typing-pulse 1.4s infinite ease-in-out;
    animation-delay: 0.2s;
}

@keyframes typing-pulse {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.knowledge-limiter-container {
    margin-block: 0.25rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    font-size: 0.75rem;
}