/* =========================
   CHAT WIDGET
========================= */

#mira-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 660px;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    z-index: 999999;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

/* =========================
   HEADER
========================= */

#mira-chat-header {
    background: #08142f;
    color: white;
    padding: 18px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
}

#mira-chat-header button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

/* =========================
   BODY
========================= */

#mira-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f5f7fb;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =========================
   MESSAGES
========================= */

.bot-message,
.user-message {
    max-width: 85%;
    padding: 14px 16px;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 16px;
    word-wrap: break-word;
}

.bot-message {
    background: white;
    color: #111827;
    align-self: flex-start;
    border: 1px solid #dce3ee;
}

.user-message {
    background: #2f66ea;
    color: white;
    align-self: flex-end;
}

/* =========================
   INPUT AREA
========================= */

#mira-chat-input-area {
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    background: white;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================
   INPUT
========================= */

#mira-user-input {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
}

/* =========================
   SEND BUTTON
========================= */

#mira-send-btn {
    width: 78px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: #2f66ea;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

#mira-send-btn:hover {
    background: #1f52cc;
}

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

@media(max-width: 768px){

    #mira-chat-widget{
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        bottom: 10px;
        height: 92vh;
    }

}