.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.chat-toggle::before {
    content: "💬";
    font-size: 24px;
    transition: all 0.3s ease;
}

.chat-toggle.active::before {
    content: "✕";
    font-size: 18px;
    color: white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.chat-window.active {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, #fbe5ad, #f3d27a);
    color: #1e1e1e;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.chat-header::before {
    content: "👑";
    margin-left: 10px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    animation: slideIn 0.3s ease;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
}

.message.bot .message-bubble {
    background: #e9ecef;
    color: #333;
    border-bottom-right-radius: 4px;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border-bottom-left-radius: 4px;
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: none;        
    overflow-y: auto;    
    max-height: 100px; 
    scrollbar-width: none; 
}
.chat-input::-webkit-scrollbar {
    display: none; 
}

.chat-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.send-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ead193, #f3d27a);
    border: none;
    border-radius: 50%;
    color: #1e1e1e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: scale(1.1);
}

.send-btn::before {
    content: "➤";
    font-size: 16px;
}

.quick-actions {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: #f3d27a;
    color: #1e1e1e;
    border-color: #f3d27a;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 10px;
        right: 10px;
    }
    
    .chat-window {
        width: calc(100vw - 20px);
        height: 80vh;
        right: -15px;
    }
}