
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background:#0e1b7b;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Chatbox */
#chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

/* Header */
#chat-header {
    background: #0e1b7b;
    color: white;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

/* Messages */
#chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f5f5f5;
}

.bot-message,
.user-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 12px;
}

.bot-message {
    background: #e1f0ff;

}

.user-message {
   background: #0e1b7b;
    color: white;
    margin-left: auto;
}

/* Input */
#chat-input-area {
    display: flex;
    border-top: 1px solid #ddd;
}

#user-input {
    flex: 1;
    padding: 10px;
    border: none;
}

#chat-input-area button {
    background: #0e1b7b;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

#chat-label{
    position: fixed;
    bottom: 92px;
    right: 25px;

    background: #0e1b7b;
    color: white;

    padding: 10px 14px;
    border-radius: 25px;

    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    animation: floatText 2s infinite ease-in-out;

    z-index: 999;
}

#chat-button{
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 60px;
    height: 60px;

    border-radius: 50%;
    background: #0e1b7b;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0,0,0,0.3);

    animation: pulse 2s infinite;

    z-index: 1000;
}

/* Floating animation */
@keyframes floatText {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.thinking{
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 15px;
}

.thinking span{
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.thinking span:nth-child(2){
    animation-delay: 0.2s;
}

.thinking span:nth-child(3){
    animation-delay: 0.4s;
}

@keyframes bounce{
    0%, 80%, 100%{
        transform: scale(0.6);
        opacity: 0.5;
    }

    40%{
        transform: scale(1);
        opacity: 1;
    }
}