/* Luna Chat Styles */
.luna-actions {
    margin: 20px 0;
}

.luna-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Cinzel', serif;
}

.luna-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.chat-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px;
    border: 1px solid #e0e0e0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-history {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    max-width: 80%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-content {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.chat-message.bot .message-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
    color: #333;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #555;
    border-bottom-right-radius: 5px;
}

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

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: #3498db;
}

.chat-input-area button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.chat-input-area button:hover {
    background: #2980b9;
}

/* Loading Indicator */
.typing-indicator {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    color: #aaa;
    font-size: 0.8rem;
    font-style: italic;
}