/* ==============================
   MUËCY Chatbot Styles
   ============================== */

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'DM Sans', sans-serif;
}

/* Chatbot Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c9a961, #b8986e);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.3);
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.chatbot-toggle:hover::before {
    left: 100%;
}

/* Notification dot */
.chatbot-toggle .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Chatbot Window */
.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    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.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chatbot-window.active {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,20 50,50 T100,50 L100,100 L0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { background-position: 0 0; }
    100% { background-position: 100px 0; }
}

.chatbot-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    position: relative;
    color: white;
    z-index: 1;
}

.chatbot-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin: 5px 0 0 0;
    position: relative;
    color: white;
    z-index: 1;
}

.chatbot-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Chat Messages - Now Chat Content for Menu */
.chatbot-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    scrollbar-width: thin;
    scrollbar-color: #c9a961 #f0f0f0;
}

.chatbot-content::-webkit-scrollbar {
    width: 6px;
}

.chatbot-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.chatbot-content::-webkit-scrollbar-thumb {
    background: #c9a961;
    border-radius: 3px;
}

.chatbot-content::-webkit-scrollbar-thumb:hover {
    background: #b8986e;
}

/* Menu Title */
.menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease;
    transition: opacity 0.3s ease;
}

/* Menu Options */
.menu-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 0.6s ease 0.2s both;
    transition: opacity 0.3s ease;
}

.menu-option {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.menu-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.2);
    border-color: #c9a961;
}

.option-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c9a961, #b8986e);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.option-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.option-arrow {
    color: #c9a961;
    font-size: 16px;
    flex-shrink: 0;
}

/* Back Navigation */
.back-navigation {
    padding: 15px 20px 0;
    background: #f8f9fa;
}

.back-button {
    background: white;
    border: 2px solid #c9a961;
    color: #c9a961;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.back-button:hover {
    background: #c9a961;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.back-button i {
    font-size: 12px;
}

/* Typing Indicator */
.typing-indicator {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.4s ease;
}

.typing-text {
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #c9a961;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Info Overlay */
.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.info-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.info-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.info-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c9a961, #b8986e);
    border-radius: 50%;
    color: white;
}

.info-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.info-close {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-close:hover {
    background: #f0f0f0;
    color: #333;
}

.info-body {
    padding: 20px;
}

.info-body p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.info-actions {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.info-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.whatsapp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.close-btn {
    background: #f0f0f0;
    color: #666;
}

.close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Close Button */
.chatbot-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 2;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    
    .chatbot-window {
        width: calc(100vw - 30px);
        height: 450px;
        bottom: 65px;
        right: -10px;
    }
    
    .chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .menu-option {
        padding: 12px;
        gap: 12px;
    }
    
    .option-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .option-title {
        font-size: 15px;
    }
    
    .option-description {
        font-size: 12px;
    }
    
    .info-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        height: 400px;
    }
    
    .chatbot-content {
        padding: 15px;
    }
    
    .menu-option {
        padding: 10px;
        gap: 10px;
    }
    
    .option-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* Welcome Animation - Now for Menu */
.menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Service Links */
.service-link {
    color: #c9a961;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #c9a961;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #b8986e;
    border-bottom-style: solid;
}