body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cd3f51, #292b52, #d13f50);
    background-size: 500% 500%;
    animation: gradientBackground 60s ease infinite;
    font-family: Roboto, sans-serif;
}

@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#chat-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding-bottom: 80px; 
    position: relative;
}

.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 20px;
    margin: 5px 0;
    word-wrap: break-word;
    display: inline-block;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.user-message {
    align-self: flex-end;
    background: #a83242;
    color: white;
    border-bottom-right-radius: 0;
}

.bot-message {
    align-self: flex-start;
    background: #f1f1f1;
    color: #444;
    border-bottom-left-radius: 0;
}

.bot-message a {
    color: #1E90FF; 
    text-decoration: underline;
}

.bot-message a:hover {
    color: #0056b3; 
}

#chat-input-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: #a83242;
    color: white;
    border-bottom-right-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#chat-input {
    flex-grow: 1;
    padding: 24px 12px;
    border: none;
    background: transparent;
    outline: none;
    color: white;
    font-size: 16px;
    caret-color: white;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#send-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
}

#send-btn:hover {
    opacity: 0.8;
}

.message:last-child {
    margin-bottom: 100px;
}

.loading-indicator {
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #444;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@media (max-width: 600px) {
    #chat-input-container {
        bottom: 0;
        max-width: 100%;
    }
}

