/* wizard.css - Guided Configuration Wizard (chatbot-style popup) */

/* ===== WIZARD MODAL ===== */
.wizard-modal {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    height: 80vh;
    width: 92%;
    max-width: 420px;
}

.wizard-modal .modal-header {
    flex-shrink: 0;
}

/* ===== CHAT AREA ===== */
.wizard-chat {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

/* ===== MESSAGES ===== */
.wizard-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
    animation: wizardMsgIn 0.25s ease;
}

@keyframes wizardMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-msg-bot {
    align-self: flex-start;
    align-items: flex-start;
}

.wizard-msg-user {
    align-self: flex-end;
    align-items: flex-end;
}

.wizard-msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.wizard-bot-bubble {
    background: var(--bg-secondary);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.wizard-user-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

/* ===== SKIP BUTTON ===== */
.wizard-skip-btn {
    margin-top: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.15s ease;
}
.wizard-skip-btn:active {
    background: var(--border);
}

/* ===== PROPOSAL ACTION BUTTONS ===== */
.wizard-proposal-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.wizard-yes-btn {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.15s ease;
}
.wizard-yes-btn:active {
    background: var(--primary-hover);
}

/* ===== INPUT AREA ===== */
.wizard-input-area {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px calc(8px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.wizard-input {
    flex: 1;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text);
    font-family: var(--font);
    resize: none;
    outline: none;
    max-height: 100px;
    min-height: 36px;
    line-height: 1.4;
}
.wizard-input:focus {
    border-color: var(--primary);
}

.wizard-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.wizard-send-btn:active {
    background: var(--primary-hover);
}

/* ===== TYPING DOTS ===== */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-tertiary);
    animation: typingBounce 1.2s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}
