/**
 * ModuLink AI Chat Widget - Custom CSS Override
 * Copy this to your styles.css file and customize as needed
 * All selectors use !important to override widget's inline styles
 */

/* ============================================
   MAIN ELEMENTS - IDs
   ============================================ */

/* Floating Action Button (FAB) - The chat bubble button */
#mlk-fab {
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4) !important;
}

#mlk-fab:hover {
    transform: scale(1.1) !important;
}

/* Chat Window Container */
#mlk-win {
    width: 450px !important;
    height: 650px !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3) !important;
}

/* Messages Container */
#mlk-msgs {
    padding: 16px !important;
}

/* Input Field */
#mlk-in {
    border-radius: 12px !important;
    padding: 12px 16px !important;
}

/* Send Button */
#mlk-go {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    border-radius: 12px !important;
    width: 44px !important;
    height: 44px !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Message Bubbles */
.mlk-m {
    margin-bottom: 14px !important;
}

/* Header Buttons (New, Full Page, Close) */
.mlk-hb {
    background: rgba(255, 255, 255, 0.12) !important;
    border: none !important;
    color: #fff !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

.mlk-hb:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Product Cards */
.mlk-cd {
    border-radius: 14px !important;
    overflow: hidden !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}

.mlk-cd:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

/* Action Buttons (inside messages) */
.mlk-ab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}

.mlk-ab:hover {
    filter: brightness(1.12) !important;
    transform: translateY(-1px) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes mlkPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
}

@keyframes mlkSlide {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

#mlk-msgs::-webkit-scrollbar {
    width: 5px !important;
}

#mlk-msgs::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.27) !important;
    border-radius: 4px !important;
}

#mlk-msgs::-webkit-scrollbar-track {
    background: transparent !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 500px) {
    #mlk-win {
        width: 100% !important;
        height: 100% !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
    }
    
    #mlk-fab {
        width: 60px !important;
        height: 60px !important;
    }
}
