/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    background: linear-gradient(135deg, #6a0dad, #8a2be2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(106, 13, 173, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(106, 13, 173, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(106, 13, 173, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(106, 13, 173, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(106, 13, 173, 0.3);
    }
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    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;
    animation: slideUp 0.3s ease-out;
}

.chatbot-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #6a0dad, #8a2be2);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.chatbot-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message.bot {
    text-align: left;
}

.message.user {
    text-align: right;
}

.message-content {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
}

.message.bot .message-content {
    background: #6a0dad;
    color: white;
    border-bottom-left-radius: 5px;
}

.message.user .message-content {
    background: #e9ecef;
    color: #333;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
}

.input-group {
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
    border-color: #6a0dad;
}

.send-btn {
    background: linear-gradient(135deg, #6a0dad, #8a2be2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1);
}

.typing-indicator {
    display: none;
    padding: 10px 16px;
    background: #6a0dad;
    color: white;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.quick-action {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: #6a0dad;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 80vh;
        bottom: 90px;
        right: 20px;
        left: 20px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Demo content */
.demo-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.chatbot-container h1 {
    color: #6a0dad;
    text-align: center;
    margin-bottom: 20px;
}

.chatbot-container h2 {
    color: #333;
    margin-bottom: 15px;
}

.chatbot-container p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}