/* MAZE AI ASSISTANT Widget */
.maze-assistant-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.maze-assistant-btn:hover { transform: scale(1.1); }
.maze-assistant-btn.hidden { display: none; }
.maze-assistant-btn svg { width: 28px; height: 28px; fill: white; }

.maze-assistant-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: #0f0f1a;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}
.maze-assistant-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.maze-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}
.maze-assistant-header-info { display: flex; align-items: center; gap: 12px; }
.maze-assistant-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex; align-items: center; justify-content: center;
}
.maze-assistant-avatar svg { width: 22px; height: 22px; fill: white; }
.maze-assistant-title h3 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.maze-assistant-title span { font-size: 12px; color: #10b981; }
.maze-assistant-header-btn {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: rgba(255, 255, 255, 0.1); cursor: pointer;
}
.maze-assistant-header-btn:hover { background: rgba(255, 255, 255, 0.2); }
.maze-assistant-header-btn svg { width: 16px; height: 16px; fill: #a0a0a0; }

.maze-assistant-messages {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 16px;
}
.maze-assistant-message { display: flex; gap: 10px; animation: msgSlide 0.3s ease; }
@keyframes msgSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.maze-assistant-message.user { flex-direction: row-reverse; }
.maze-assistant-message-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.maze-assistant-message.assistant .maze-assistant-message-avatar {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.maze-assistant-message.user .maze-assistant-message-avatar {
    background: rgba(255, 255, 255, 0.1); color: #fff;
}
.maze-assistant-message-content {
    max-width: 75%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5;
}
.maze-assistant-message.assistant .maze-assistant-message-content {
    background: rgba(99, 102, 241, 0.15); color: #e0e0e0;
}
.maze-assistant-message.user .maze-assistant-message-content {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white;
}
.maze-assistant-typing { display: flex; gap: 4px; }
.maze-assistant-typing span {
    width: 8px; height: 8px; background: #6366f1; border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}
.maze-assistant-typing span:nth-child(2) { animation-delay: 0.2s; }
.maze-assistant-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.6); } 40% { transform: scale(1); } }

.maze-assistant-welcome { text-align: center; padding: 20px; color: #a0a0a0; }
.maze-assistant-welcome h4 { color: #fff; margin-bottom: 8px; }
.maze-assistant-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.maze-assistant-suggestion {
    padding: 8px 14px; background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 20px;
    font-size: 12px; color: #a0a0ff; cursor: pointer;
}
.maze-assistant-suggestion:hover { background: rgba(99, 102, 241, 0.25); }

.maze-assistant-input-area {
    padding: 16px; background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}
.maze-assistant-input-wrapper { display: flex; gap: 10px; align-items: flex-end; }
.maze-assistant-input {
    flex: 1; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 12px;
    padding: 12px 16px; color: #fff; font-size: 14px; resize: none;
    min-height: 44px; max-height: 120px; outline: none;
}
.maze-assistant-input:focus { border-color: #6366f1; }
.maze-assistant-send-btn {
    width: 44px; height: 44px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.maze-assistant-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.maze-assistant-send-btn svg { width: 20px; height: 20px; fill: white; }

@media (max-width: 480px) {
    .maze-assistant-panel { width: calc(100vw - 16px); right: 8px; bottom: 80px; height: calc(100vh - 100px); }
    .maze-assistant-btn { width: 54px; height: 54px; bottom: 16px; right: 16px; }
}
