#chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0078d4;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10000;
}

.floating-popup {
    position: fixed;
    right: 20px;
    z-index: 9999;
}

#chatbot-popup {
    display: none;
    width: 380px;
    max-height: 680px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    flex-direction: column;
}

.chat-header {
    background-color: #0078d4;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 10px;
    height: 600px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

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

.chat-input input {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
}

.chat-input button {
    padding: 8px 12px;
    background: #0078d4;
    color: white;
    border: none;
    cursor: pointer;
}

.message {
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
}

.message.bot {
    background-color: #e0f0ff;
}

.message.user {
    background-color: #d4f8cd;
    text-align: right;
}

.typing-indicator {
    width: 60px;
    height: 20px;
    margin: 5px 0;
    padding: 8px;
    background: #e0f0ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #0078d4;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: blink 1.4s infinite both;
}

.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;
    }
}
