#askawa-chatbot {
    min-width: 96%;
    max-width: 96%;
    margin: 2rem auto;
    border: 1px solid #444;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 70vh;
    background-color: #2d2d2d;
    font-family: sans-serif;
}

#askawa-messages {

    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.askawa-message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.5;
}

.askawa-message.user {
    background-color: #0056b3;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.askawa-message.bot {
    background-color: #3a3a3a;
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.askawa-message.bot .sources {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #555;
}

.askawa-message.bot .sources-title {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #ccc;
}

.askawa-message.bot .source-link {
    display: block;
    font-size: 0.85em;
    color: #8ab4f8;
    text-decoration: none;
    margin-bottom: 3px;
}
.askawa-message.bot .source-link:hover {
    text-decoration: underline;
}

#askawa-form {
    display: flex;
    padding: 15px;
    border-top: 1px solid #444;
}

#askawa-input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #333;
    color: #fff;
    font-size: 1rem;
}

#askawa-send {
    margin-left: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}
#askawa-send:hover {
    background-color: #0056b3;
}

.typing-indicator {
    display: flex;
    align-items: center;
}
.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.4s infinite both;
}
.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}