/**
 * Mer Gemini Chatbot (Pro) v2.0.0
 */

#mgc-chat-container {
    font-family: 'Poppins', 'Nunito', sans-serif;
    width: 100%;
    max-width: 450px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    height: 85vh;
    max-height: 750px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

/* Header */
#mgc-chat-header {
    background: linear-gradient(135deg, #F7B6D2, #B794DE);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(23, 35, 106, .5);
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05em;
    font-weight: 600;
    flex-shrink: 0;
}

.mgc-logo {
    width: 45px;
    height: 45px;
}

.mgc-header-title {
    flex: 1;
    margin-left: 10px;
}

/* Output */
#mgc-chat-output {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#mgc-chat-output::-webkit-scrollbar {
    width: 6px;
}

#mgc-chat-output::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#mgc-chat-output::-webkit-scrollbar-thumb {
    background: #B794DE;
    border-radius: 10px;
}

#mgc-chat-output::-webkit-scrollbar-thumb:hover {
    background: #5B67B1;
}

/* Messages */
.mgc-message {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 85%;
    line-height: 1.5;
    font-size: .95em;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mer {
    background: #fff;
    color: #17236A;
    border: 1px solid #F7B6D2;
    border-top-left-radius: 5px;
    align-self: flex-start;
}

.user {
    background: #5B67B1;
    color: #fff;
    border-bottom-right-radius: 5px;
    align-self: flex-end;
}

/* Input area */
#mgc-chat-input-area {
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    flex-shrink: 0;
}

#mgc-quick-suggestions {
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.mgc-suggestion-btn {
    background: transparent;
    color: #5B67B1;
    border: 1px solid #B794DE;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: .8em;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.mgc-suggestion-btn:hover {
    background: #B794DE;
    color: #fff;
    transform: translateY(-2px);
}

#mgc-input-wrapper {
    display: flex;
    align-items: flex-end;
}

#mgc-chat-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 1em;
    resize: none;
    transition: border-color .3s, height .2s ease;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.4;
}

#mgc-chat-input:focus {
    outline: none;
    border-color: #B794DE;
    box-shadow: 0 0 0 2px rgba(183, 148, 222, .2);
}

.mgc-icon-btn {
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color .3s, transform .2s;
    flex-shrink: 0;
    margin-left: 8px;
}

#mgc-send-button {
    background: #B794DE;
}

#mgc-send-button:hover {
    background: #5B67B1;
    transform: scale(1.05);
}

#mgc-send-button::before {
    content: '➤';
    font-family: sans-serif;
    transform: rotate(-30deg) translateY(1px);
}

/* Typing indicator */
.typing-indicator span {
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
    font-size: 1.5em;
    line-height: 0;
}

.typing-indicator span:nth-of-type(2) {
    animation-delay: .2s;
}

.typing-indicator span:nth-of-type(3) {
    animation-delay: .4s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }
}