.migrafacil-luna-container {
    font-family: inherit;
}

/* Floating Mode */
.migrafacil-luna-container.mode-floating {
    position: relative;
}

.luna-toggle-btn {
    background: #1E73BE;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.migrafacil-luna-container.mode-floating .luna-chat-window {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.migrafacil-luna-container.mode-floating .luna-chat-window.luna-hidden {
    display: none;
}

/* Page Mode */
.migrafacil-luna-container.mode-page .luna-chat-window {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

/* Shared Window Styles */
.luna-chat-header {
    background: #1E73BE;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.luna-chat-header h4 {
    margin: 0;
    font-size: 16px;
}

.luna-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.luna-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.luna-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.4;
    font-size: 14px;
}

.luna-message.bot {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.luna-message.user {
    background: #2ECC71;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.luna-message.loading {
    background: #f1f1f1;
    color: #999;
    font-style: italic;
    align-self: flex-start;
}

.luna-chat-form {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
}

#luna-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.luna-send-btn {
    background: #1E73BE;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 20px;
    cursor: pointer;
}

/* RTL Support is handled by appending .rtl-mode or parent body.rtl */
body.rtl .luna-message.bot {
    align-self: flex-end;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 2px;
}

body.rtl .luna-message.user {
    align-self: flex-start;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 2px;
}

body.rtl .luna-send-btn {
    margin-left: 0;
    margin-right: 10px;
}