body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    color: #1f2937;
    margin: 20px 0 10px;
}

#chat-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 700px;
    height: calc(100vh - 80px); /* adjust depending on header height */
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

#chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #f9fafb;
    align-content: flex-end;
}

.bot-message, .user-message {
    max-width: 100%;
    margin: 6px 0;
    padding: 12px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

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

.user-message {
    background-color: #d5d5d5;
    align-self: flex-end;
    text-align: right;
}
/*
form {
    display: flex;
    gap: 10px;
}
*/
form {
    display: flex;
    gap: 10px;
    padding: 12px;
    /*border-top: 1px solid #e5e7eb;*/
    background-color: #fff;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    outline: none;
}

button {
    background-color: #9795bb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4338ca;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
    margin-top: 5px;
    justify-content: flex-start;
    align-items: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #999;
    border-radius: 50%;
    animation: blink 1.4s infinite ease-in-out;
}

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

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

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}