/* ==========================================
   Floating Chatbot Widget Styles
   ========================================== */
#mkp-chat-widget {
    position: fixed;
    bottom: 80px; /* Above mobile tab bar if present */
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#mkp-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#mkp-chat-toggle:hover {
    transform: scale(1.1);
}

#mkp-chat-toggle i {
    font-size: 24px;
}

#mkp-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mkp-chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#mkp-chat-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mkp-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#mkp-chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

#mkp-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mkp-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.mkp-message.user {
    background: #1a1a2e;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.mkp-message.bot {
    background: #ffffff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

#mkp-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#mkp-chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#mkp-chat-input:focus {
    border-color: #1a1a2e;
}

#mkp-chat-send {
    background: #1a1a2e;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

#mkp-chat-send:hover {
    background: #e94560;
}

.mkp-typing-indicator {
    display: none;
    align-self: flex-start;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.mkp-typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    margin: 0 2px;
    animation: mkp-bounce 1.4s infinite ease-in-out both;
}

.mkp-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.mkp-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes mkp-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #mkp-chat-widget {
        bottom: 70px;
        right: 15px;
    }
    
    #mkp-chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        z-index: 10000;
        transform: translateY(100%);
    }
    
    #mkp-chat-header {
        border-radius: 0;
    }
}

/* ==========================================
   Dedicated Full Page Chat Styles
   ========================================== */
.chat-page-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-page-container #mkp-chat-messages {
    background: #fff;
}

.chat-page-container #mkp-chat-input-area {
    padding: 20px;
}
