/* ═══════════════════════════════════════════════════════════
   ALVI Dochádzka — Setup Wizard Styles
   WordPress-like prvotné nastavenie.
   ═══════════════════════════════════════════════════════════ */

.setup-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.setup-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    animation: setupBgPulse 8s ease-in-out infinite alternate;
}

@keyframes setupBgPulse {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(2deg); }
}

.setup-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    animation: setupCardIn 0.5s ease-out;
}

@keyframes setupCardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ─────────────────────────────────────── */
.setup-header {
    text-align: center;
    margin-bottom: 24px;
}

.setup-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--al-primary, #6366f1), var(--al-accent, #a855f7));
    color: white;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.setup-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.setup-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 4px 0 0 0;
}

/* ── Progress Bar ───────────────────────────────── */
.setup-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 0 0 16px 0;
    overflow: hidden;
}

.setup-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--al-primary, #6366f1), var(--al-accent, #a855f7));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Step Dots ──────────────────────────────────── */
.setup-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}

.setup-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.setup-step-dot span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.setup-step-dot.active span {
    background: linear-gradient(135deg, var(--al-primary, #6366f1), var(--al-accent, #a855f7));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

.setup-step-dot.done span {
    background: #10b981;
    color: white;
}

.setup-step-dot small {
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
}

.setup-step-dot.active small {
    color: var(--al-primary, #6366f1);
    font-weight: 600;
}

/* ── Step Content ───────────────────────────────── */
.setup-step {
    animation: setupStepIn 0.3s ease-out;
    min-height: 200px;
}

@keyframes setupStepIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.setup-step h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.setup-step p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* ── Welcome ────────────────────────────────────── */
.setup-welcome-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 12px;
}

.setup-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.setup-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
}

/* ── Messages ───────────────────────────────────── */
.setup-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.setup-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 12px;
    font-weight: 500;
}

.setup-hint {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-top: 16px;
}

/* ── Section Title ──────────────────────────────── */
.setup-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin: 20px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Summary (Step 5) ───────────────────────────── */
.setup-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.setup-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.setup-summary-item span {
    color: #64748b;
    font-size: 0.85rem;
}

.setup-summary-item strong {
    color: #0f172a;
    font-size: 0.9rem;
}

/* ── Navigation ─────────────────────────────────── */
.setup-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
    .setup-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .setup-steps-indicator {
        padding: 0;
    }

    .setup-step-dot small {
        display: none;
    }

    .setup-step-dot span {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
