#chatbot-widget {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 9999;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Chatbot toggle button */
#chatbot-toggle {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(80,60,200,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

#chatbot-toggle:hover {
    box-shadow: 0 12px 32px rgba(80,60,200,0.30);
    transform: scale(1.08);
}

/* Chat window */
#chatbot-window {
    display: none;
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 18px 18px 8px 18px;
    box-shadow: 0 12px 36px rgba(80,60,200,0.20);
    overflow: hidden;
    flex-direction: column;
    border: 1.5px solid #e3e6f0;
    animation: chatbot-pop 0.3s;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    #chatbot-window {
        width: 90vw;
        max-height: 80vh;
        bottom: 72px;
        right: 5vw;
        border-radius: 12px;
    }

    #chatbot-messages {
        height: 55vh;
    }
}

@media (max-width: 480px) {
    #chatbot-widget {
        bottom: 10px;
        right: 10px;
    }

    #chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    #chatbot-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        max-height: none;
    }

    #chatbot-messages {
        height: calc(100vh - 120px);
    }
}

/* Animation */
@keyframes chatbot-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
#chatbot-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    padding: 16px 20px;
    font-weight: bold;
    text-align: left;
    font-size: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#chatbot-header .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#chatbot-header .close-btn:hover {
    opacity: 1;
}

/* Messages */
#chatbot-messages {
    padding: 16px 14px 12px 14px;
    height: 270px;
    overflow-y: auto;
    background: #f5f7fa;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-msg {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 18px 18px 18px 4px;
    margin-bottom: 2px;
    background: #e3e6f0;
    color: #333;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(80,60,200,0.05);
    word-break: break-word;
}

.chatbot-msg.user {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    align-self: flex-end;
    border-radius: 18px 18px 4px 18px;
}

/* Input area */
#chatbot-input-area {
    display: flex;
    border-top: 1px solid #e3e6f0;
    background: #f5f7fa;
    padding: 10px 12px;
}

#chatbot-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 20px;
    outline: none;
    background: #fff;
    margin-right: 8px;
    box-shadow: 0 1px 2px rgba(80,60,200,0.06);
}

#chatbot-send {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(80,60,200,0.08);
    transition: background 0.2s;
}

#chatbot-send:hover {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
}
