/* Miss Sugar Wheels Chatbot Styles */

.msw-chatbot-container {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

/* Toggle Button */
.msw-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.msw-chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 157, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    }
}

/* Chat Window */
.msw-chatbot-window {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.msw-chatbot-window.msw-chatbot-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.msw-chatbot-header {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.msw-chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.msw-chatbot-header-content i {
    font-size: 20px;
}

.msw-chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.msw-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Messages Container */
.msw-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msw-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.msw-chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.msw-chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border-radius: 3px;
}

/* Messages */
.msw-chatbot-message {
    display: flex;
    margin-bottom: 10px;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msw-message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
}

.msw-bot-message .msw-message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.msw-user-message {
    justify-content: flex-end;
}

.msw-user-message .msw-message-content {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

/* Typing Indicator */
.msw-typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.msw-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c44569;
    animation: typing 1.4s infinite;
}

.msw-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.msw-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input Container */
.msw-chatbot-input-container {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
    gap: 10px;
}

.msw-chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.msw-chatbot-input:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.msw-chatbot-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.msw-chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.msw-chatbot-send:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .msw-chatbot-container {
        top: auto;
        bottom: 20px;
        left: auto;
        right: 20px;
    }

    .msw-chatbot-window {
        top: auto;
        bottom: 90px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: 500px;
    }

    .msw-chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .msw-chatbot-window {
        height: 450px;
    }

    .msw-message-content {
        max-width: 85%;
        font-size: 13px;
    }
}

/* Accessibility */
.msw-chatbot-toggle:focus,
.msw-chatbot-close:focus,
.msw-chatbot-send:focus,
.msw-chatbot-input:focus {
    outline: 2px solid #ff6b9d;
    outline-offset: 2px;
}

