/* .NET Project Wizard — brand-aligned theme (ink + amber), matching the landing page.
   Everything is scoped under .wizard-shell so it never leaks into other Bootstrap pages. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@500;600;700&display=swap');

.wizard-shell {
    --w-ink: #0D1117;
    --w-line: #E2E7ED;
    --w-paper: #F2F4F7;
    --w-signal: #FFC24B;
    --w-signal-600: #E8A21F;
    --w-dim: #5A6675;
    font-family: 'Inter', system-ui, sans-serif;
    color: #14122B;
    background: var(--w-paper);
    padding-bottom: 2rem;
}

.wizard-shell h1, .wizard-shell h2, .wizard-shell h3,
.wizard-shell h4, .wizard-shell h5, .wizard-shell h6 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.wizard-shell .font-monospace, .wizard-shell code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- Hero header ---------- */
.wizard-shell .wizard-hero {
    background: linear-gradient(180deg, #0D1117, #11161f);
    border-bottom: 1px solid #232A33;
}
.wizard-shell .wizard-hero h1 { font-weight: 800; }
.wizard-shell .wizard-hero .bi-magic { color: var(--w-signal); }
.wizard-shell .wizard-hero .badge.bg-light {
    background: rgba(255, 194, 75, 0.15) !important;
    color: var(--w-signal) !important;
    border: 1px solid rgba(255, 194, 75, 0.30);
    font-weight: 700;
}

/* ---------- Progress + step indicators ---------- */
.wizard-shell .progress { background: #E2E7ED; border-radius: 999px; }
.wizard-shell .progress-bar { transition: width 0.6s ease; }
.wizard-shell .progress-bar.bg-success {
    background: linear-gradient(90deg, var(--w-signal), var(--w-signal-600)) !important;
}
.wizard-shell .step-indicator {
    transition: all 0.3s ease;
    font-weight: 700;
    border: 1px solid var(--w-line);
}
.wizard-shell .step-indicator.bg-dark { background: var(--w-ink) !important; color: #fff !important; border-color: var(--w-ink); }
.wizard-shell .step-indicator.bg-success { background: var(--w-signal) !important; color: var(--w-ink) !important; border-color: var(--w-signal); }
.wizard-shell .step-indicator.bg-light { background: #fff !important; color: var(--w-dim) !important; }

/* ---------- Cards ---------- */
.wizard-shell .card { border: 1px solid var(--w-line); border-radius: 14px; animation: wzfade 0.35s ease-out; }
.wizard-shell .card.shadow-sm { box-shadow: 0 4px 18px rgba(20, 18, 43, 0.06) !important; transition: box-shadow 0.3s ease; }
.wizard-shell .card.shadow-sm:hover { box-shadow: 0 10px 30px rgba(20, 18, 43, 0.10) !important; }
.wizard-shell .card-header { border-bottom: 1px solid var(--w-line); border-radius: 14px 14px 0 0 !important; }
.wizard-shell .card-header.bg-light { background: #F7F8FA !important; border-bottom: 1px solid var(--w-line); }
.wizard-shell .card-header.bg-dark { background: var(--w-ink) !important; }
.wizard-shell .card-header.bg-success { background: var(--w-ink) !important; } /* step 4 header → ink, not green */
.wizard-shell .card-header.bg-dark .step-header-icon,
.wizard-shell .card-header.bg-success .step-header-icon { color: var(--w-signal); }
.wizard-shell .card.bg-light { background: #F7F8FA !important; }

/* ---------- Sidebar navigation ---------- */
.wizard-shell .list-group-item-action { border: none; }
.wizard-shell .list-group-item-action:hover { background: #F0F2F5; color: var(--w-ink); }
.wizard-shell .list-group-item-action.active,
.wizard-shell .list-group-item-action.active:hover {
    background: var(--w-ink) !important; border-color: var(--w-ink) !important; color: #fff !important;
}
.wizard-shell .list-group-item-success { background: rgba(255, 194, 75, 0.10) !important; }
.wizard-shell .step-nav-indicator { width: 32px; height: 32px; border-radius: 50%; font-weight: 700; transition: all 0.3s ease; }
.wizard-shell .step-nav-indicator.bg-dark { background: var(--w-ink) !important; color: #fff !important; }
.wizard-shell .step-nav-indicator.bg-success { background: var(--w-signal) !important; color: var(--w-ink) !important; }
.wizard-shell .list-group-item-action:hover .step-nav-indicator { transform: scale(1.08); }
.wizard-shell .list-group-item-action.active .step-nav-indicator { box-shadow: 0 0 0 3px rgba(255, 194, 75, 0.40); }

/* ---------- Section groups ---------- */
.wizard-shell .section-group { border-left: 3px solid var(--w-line); padding-left: 1rem; transition: border-color 0.3s ease; }
.wizard-shell .section-group:hover { border-left-color: var(--w-signal); }
.wizard-shell .section-title { font-size: 1.05rem; font-weight: 700; color: var(--w-ink); margin-bottom: 1rem; }
.wizard-shell .step-header-icon { font-size: 2rem; opacity: 0.95; }

/* ---------- Selection cards (platform / .NET / UI framework) ---------- */
.wizard-shell .card.border-primary, .wizard-shell .card.border-success,
.wizard-shell .card.border-warning, .wizard-shell .card.border-info,
.wizard-shell .card.border-secondary { border-color: var(--w-line) !important; transition: all 0.25s ease; }
.wizard-shell .card.border-primary:hover, .wizard-shell .card.border-success:hover,
.wizard-shell .card.border-warning:hover, .wizard-shell .card.border-info:hover {
    transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 18, 43, 0.10); border-color: #CBD3DC !important;
}
/* selected state → unified amber tint + amber border */
.wizard-shell .card.bg-opacity-10 {
    background: rgba(255, 194, 75, 0.10) !important;
    border-color: var(--w-signal) !important;
    border-width: 2px !important;
}

/* ---------- Forms ---------- */
/* WCAG AA SC 1.4.11 (non-text contrast): border ≥3:1 against white. #6C7280 = 4.3:1. */
.wizard-shell .form-control,
.wizard-shell .form-select {
    border: 1.5px solid #6C7280;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Placeholder clearly lighter than real input (#14122B) so it reads as a hint, not a value.
   opacity:1 overrides Firefox's built-in placeholder opacity reduction. */
.wizard-shell .form-control::placeholder,
.wizard-shell .form-select::placeholder {
    color: #9CA3AF;
    opacity: 1;
}
.wizard-shell .form-control:focus, .wizard-shell .form-select:focus {
    border-color: var(--w-signal); box-shadow: 0 0 0 0.2rem rgba(255, 194, 75, 0.25);
}
.wizard-shell .form-check-input:checked { background-color: var(--w-ink); border-color: var(--w-ink); }
.wizard-shell .form-check-input:focus { border-color: var(--w-signal); box-shadow: 0 0 0 0.2rem rgba(255, 194, 75, 0.25); }
.wizard-shell .form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.38 1.38'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.wizard-shell .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* ---------- Badges ---------- */
.wizard-shell .badge.bg-success { background: var(--w-signal) !important; color: var(--w-ink) !important; }
.wizard-shell .badge.bg-secondary { background: #E2E7ED !important; color: var(--w-dim) !important; }

/* ---------- Buttons ---------- */
.wizard-shell .btn-lg { padding: 0.75rem 1.5rem; font-size: 1.05rem; font-weight: 700; border-radius: 0.6rem; transition: all 0.2s ease; }
.wizard-shell .btn-lg:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 18, 43, 0.12); }
.wizard-shell .btn-dark { background: var(--w-ink); border-color: var(--w-ink); }
.wizard-shell .btn-dark:hover { background: #1b2230; border-color: #1b2230; }
.wizard-shell .btn-outline-dark { color: var(--w-ink); border-color: var(--w-line); }
.wizard-shell .btn-outline-dark:hover { background: var(--w-ink); border-color: var(--w-ink); color: #fff; }
.wizard-shell .btn-success { background: var(--w-signal); border-color: var(--w-signal); color: var(--w-ink); }
.wizard-shell .btn-success:hover, .wizard-shell .btn-success:focus { background: var(--w-signal-600); border-color: var(--w-signal-600); color: var(--w-ink); }
.wizard-shell .btn-outline-success { color: var(--w-signal-600); border-color: var(--w-signal); }
.wizard-shell .btn-outline-success:hover { background: var(--w-signal); border-color: var(--w-signal); color: var(--w-ink); }
.wizard-shell .btn-outline-secondary { color: var(--w-dim); border-color: var(--w-line); }
.wizard-shell .btn-link { color: var(--w-dim); }

/* ---------- Tooltips / misc ---------- */
.wizard-shell .tooltip { font-size: 0.875rem; }
.wizard-shell .tooltip-inner { max-width: 300px; text-align: left; }
.wizard-shell .spinner-border-sm { width: 1rem; height: 1rem; }
.wizard-shell .alert { border-radius: 0.6rem; border: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }

/* ---------- Constrained width ---------- */
.wizard-container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Left rail: vertical stepper ---------- */
.wizard-shell .wizard-rail { position: sticky; top: 1.25rem; }
.wizard-shell .wsteps { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.wizard-shell .wstep { position: relative; }
.wizard-shell .wstep:not(:last-child)::before {
    content: ""; position: absolute; left: 14px; top: 30px; bottom: -2px;
    width: 2px; background: var(--w-line); z-index: 0;
}
.wizard-shell .wstep.is-done:not(:last-child)::before { background: var(--w-signal); }
.wizard-shell .wstep-btn {
    display: flex; gap: 0.85rem; align-items: flex-start; width: 100%; text-align: left;
    background: none; border: none; padding: 0.35rem 0 0.95rem; cursor: pointer;
}
.wizard-shell .wstep-btn:disabled { cursor: default; opacity: 0.85; }
.wizard-shell .wstep-dot {
    position: relative; z-index: 1; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
    background: #fff; border: 2px solid var(--w-line); color: var(--w-dim); transition: all 0.2s ease;
}
.wizard-shell .wstep.is-current .wstep-dot {
    background: var(--w-ink); border-color: var(--w-ink); color: #fff; box-shadow: 0 0 0 4px rgba(13, 17, 23, 0.10);
}
.wizard-shell .wstep.is-done .wstep-dot { background: var(--w-signal); border-color: var(--w-signal); color: var(--w-ink); }
.wizard-shell .wstep-text { display: flex; flex-direction: column; padding-top: 3px; }
.wizard-shell .wstep-title {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem;
    color: var(--w-dim); line-height: 1.2; transition: color 0.2s ease;
}
.wizard-shell .wstep.is-current .wstep-title, .wizard-shell .wstep.is-done .wstep-title { color: var(--w-ink); }
.wizard-shell .wstep-btn:not(:disabled):hover .wstep-title { color: var(--w-ink); }
.wizard-shell .wstep-desc { font-size: 0.78rem; color: var(--w-dim); margin-top: 2px; }

/* Compact summary */
.wizard-shell .wizard-summary { border: 1px solid var(--w-line); border-radius: 12px; padding: 1rem 1.1rem; background: #fff; }
.wizard-shell .wizard-summary-name {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--w-ink);
    margin-bottom: 0.7rem; word-break: break-word;
}
.wizard-shell .wizard-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.8rem; margin: 0; font-size: 0.82rem; }
.wizard-shell .wizard-summary dt { color: var(--w-dim); font-weight: 500; }
.wizard-shell .wizard-summary dd { margin: 0; color: var(--w-ink); font-weight: 600; text-align: right; word-break: break-word; }

@keyframes wzfade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .wizard-shell .step-indicator { width: 32px !important; height: 32px !important; font-size: 0.8rem; }
    .wizard-shell .section-group {
        border-left: none; border-top: 3px solid var(--w-line);
        padding-left: 0; padding-top: 1rem; margin-top: 1rem;
    }
    .wizard-shell .section-group:hover { border-top-color: var(--w-signal); border-left-color: transparent; }
}
