.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #a2d2b5;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    z-index: 9999;
    font-size: 28px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    display: none;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-messages {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    align-items: flex-start;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-input {
    display: flex;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
}

.chat-input button {
    padding: 10px 20px;
    background: #21509e;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background-color: #1a3d7b;
}

.message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    display: inline-block;
}

.user-message {
    background-color: #21509e;
    color: white;
    align-self: flex-end;
    box-shadow: 0 2px 6px rgba(33, 80, 158, 0.5);
}

.bot-message {
    background-color: #a2d2b5;
    color: #0a2b5f; 
    font-family: 'Rubik', sans-serif;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(220, 66, 38, 0.3);
}

.message a {
    color: #21509e;
    text-decoration: underline;
}

.chat-container.open {
    display: flex !important; /* override display:none */
    animation: fadeInUp 0.4s ease;
}
