#chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

#chatbot-button:hover {
    transform: scale(1.1);
}

#chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 10px;
    display: none;
    z-index: 10000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-header {
    background-color: #4CAF50;
    color: white;
    padding: 12px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-title {
    font-weight: bold;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: #ffffff;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.message-time {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
    text-align: right;
}

.chat-footer {
    padding: 10px;
    background-color: white;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: border 0.3s;
}

.chat-input:focus {
    border-color: #4CAF50;
}

.chat-send-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-send-btn:hover {
    background-color: #3d8b40;
}

.chat-send-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.chat-close-btn {
    cursor: pointer;
    transition: transform 0.3s;
}

.chat-close-btn:hover {
    transform: rotate(90deg);
}

.loading-dots {
    display: inline-block;
    margin-left: 5px;
}

.loading-dots::after {
    content: '...';
    animation: dotAnimation 1.5s infinite;
}

@keyframes dotAnimation {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}