/* =========================================================
   VT ATS - Installer & Upgrader Styles  v1.0.0
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #e2e8f0;
    position: relative;
}

/* Animated background orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}
body::before { background: #3b82f6; top: -100px; left: -100px; }
body::after  { background: #8b5cf6; bottom: -100px; right: -100px; }

.wizard-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Header ── */
.wiz-header {
    text-align: center;
    margin-bottom: 28px;
}
.wiz-logo {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}
.wiz-header h1 { font-size: 26px; font-weight: 700; color: #fff; }
.wiz-header p  { color: #94a3b8; font-size: 14px; margin-top: 4px; }

/* ── Step Progress ── */
.step-track {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    gap: 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 56%;
    width: calc(100% - 12%);
    height: 2px;
    background: #334155;
    transition: background 0.3s;
    z-index: 0;
}
.step-item.completed::after { background: #22c55e; }
.step-item.active::after { background: linear-gradient(to right, #3b82f6, #334155); }

.step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #334155;
    background: #1e293b;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: #64748b;
    position: relative; z-index: 1;
    transition: all 0.3s;
}
.step-item.active .step-dot   { border-color: #3b82f6; background: #3b82f6; color: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,0.2); }
.step-item.completed .step-dot { border-color: #22c55e; background: #22c55e; color: #fff; }

.step-label {
    font-size: 11px; font-weight: 500; color: #64748b;
    margin-top: 6px; white-space: nowrap;
}
.step-item.active .step-label    { color: #93c5fd; }
.step-item.completed .step-label { color: #86efac; }

/* ── Card ── */
.wiz-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.wiz-card h2 { font-size: 20px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.wiz-card p.desc { font-size: 14px; color: #94a3b8; margin-bottom: 24px; }

/* ── Form ── */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { display: block; font-size: 13px; font-weight: 500; color: #cbd5e1; margin-bottom: 6px; }

input[type=text], input[type=email], input[type=password], input[type=url], input[type=number] {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px; color: #e2e8f0;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
input::placeholder { color: #475569; }

/* ── Requirements list ── */
.req-list { list-style: none; margin-bottom: 24px; }
.req-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(148,163,184,0.08);
    font-size: 14px; color: #cbd5e1;
}
.req-list li:last-child { border-bottom: none; }
.badge-ok   { color: #22c55e; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.badge-fail { color: #f87171; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.badge-warn { color: #fb923c; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.btn-primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,0.45); }
.btn-secondary { background: rgba(148,163,184,0.1); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.15); }
.btn-secondary:hover { background: rgba(148,163,184,0.2); }
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 4px 14px rgba(34,197,94,0.3); }
.btn-block { display: flex; width: 100%; }

/* ── Alert ── */
.alert {
    padding: 12px 16px; border-radius: 10px;
    font-size: 14px; margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 10px;
}
.alert-error   { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }
.alert-warning { background: rgba(251,146,60,0.12); border: 1px solid rgba(251,146,60,0.25); color: #fdba74; }
.alert-info    { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); color: #93c5fd; }

/* ── Log Output ── */
.log-output {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 10px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 20px;
    color: #94a3b8;
}
.log-ok   { color: #22c55e; }
.log-err  { color: #f87171; }
.log-warn { color: #fb923c; }
.log-info { color: #60a5fa; }

/* ── Finish / Success ── */
.finish-wrap { text-align: center; padding: 10px 0; }
.finish-icon { font-size: 60px; margin-bottom: 20px; }
.finish-wrap h2 { font-size: 24px; color: #22c55e; margin-bottom: 10px; }
.finish-wrap p  { color: #94a3b8; font-size: 15px; margin-bottom: 28px; }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Section divider ── */
.section-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; }
.section-divider span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; white-space: nowrap; }
.section-divider hr { flex: 1; border: none; border-top: 1px solid rgba(148,163,184,0.1); }

/* ── Version badge ── */
.version-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25); color: #a5b4fc; border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 600; margin-left: 8px; }

/* Migration table */
.migration-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(148,163,184,0.05); font-size: 13px; }
.migration-row:last-child { border-bottom: none; }
