/*!
 * Setup Wizard styles — Login Logout Menu & Redirect v4.1.0
 *
 * Loaded only on the wizard takeover screen. Scoped under .lmsc-wizard so it
 * doesn't leak into regular admin pages. Uses a system-font stack — no
 * external CDN.
 */

* { box-sizing: border-box; }

html, body.lmsc-wizard-body {
    margin: 0;
    padding: 0;
    background: #f1f1f1;
    color: #1d2327;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

.lmsc-wizard {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.lmsc-wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 0 20px;
    border-bottom: 1px solid #e2e4e7;
}
.lmsc-wizard-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(99,102,241,0.18);
    flex-shrink: 0;
}
.lmsc-wizard-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lmsc-wizard-header h1 { flex: 1; min-width: 0; }
.lmsc-wizard-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #1d2327;
}
.lmsc-wizard-skip a {
    color: #50575e;
    text-decoration: none;
    font-size: 13px;
}
.lmsc-wizard-skip a:hover { color: #2271b1; }

/* Progress */
.lmsc-wizard-progress {
    display: flex;
    list-style: none;
    margin: 24px 0 32px;
    padding: 0;
    gap: 8px;
    counter-reset: step;
}
.lmsc-wizard-progress li {
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e4e7;
    text-align: center;
    font-size: 13px;
    color: #50575e;
    counter-increment: step;
    position: relative;
}
.lmsc-wizard-progress li::before {
    content: counter(step);
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #50575e;
    margin-right: 8px;
    font-weight: 600;
    font-size: 12px;
}
.lmsc-wizard-progress li.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}
.lmsc-wizard-progress li.active::before {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.lmsc-wizard-progress li.done {
    background: #e7f4ea;
    border-color: #c3e6cb;
    color: #1e4620;
}
.lmsc-wizard-progress li.done::before {
    background: #46b450;
    color: #fff;
}

/* Card */
.lmsc-wizard-content {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
    padding: 32px;
}
.lmsc-wizard-step h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
}
.lmsc-wizard-step h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
}
.lmsc-wizard-lede {
    font-size: 14px;
    color: #50575e;
    margin: 0 0 24px;
}

/* Goals (step 1) */
.lmsc-wizard-goal {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.lmsc-wizard-goal:hover { background: #fafafa; }
.lmsc-wizard-goal.is-checked {
    border-color: #2271b1;
    background: #f0f6fc;
}
.lmsc-wizard-goal input[type=checkbox] {
    margin: 3px 0 0;
    flex-shrink: 0;
}
.lmsc-wizard-goal-icon {
    color: #2271b1;
    font-size: 22px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.lmsc-wizard-goal-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.lmsc-wizard-goal-desc { color: #50575e; font-size: 13px; }

/* Step 2 blocks */
.lmsc-wizard-block {
    padding: 20px 0;
    border-top: 1px solid #f0f0f1;
}
.lmsc-wizard-block:first-of-type { border-top: 0; padding-top: 0; }
.lmsc-wizard-radio-group {
    border: 0;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lmsc-wizard-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
}
.lmsc-wizard-radio-group label:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}
.lmsc-wizard-url-field { margin-top: 8px; }
.lmsc-wizard-url-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #50575e;
}
.lmsc-wizard-url-field input[type=url],
#lmsc-wizard-test-username {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.lmsc-wizard-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.lmsc-wizard-roles label {
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.lmsc-wizard-no-goals {
    padding: 18px;
    background: #fff8e1;
    border: 1px solid #f7df8e;
    border-radius: 4px;
    color: #6b5b00;
}

/* Step 3 */
.lmsc-wizard-test-form { display: grid; gap: 12px; margin-bottom: 16px; }
.lmsc-wizard-test-mode {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 16px;
}
.lmsc-wizard-test-mode label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#lmsc-wizard-test-btn {
    justify-self: start;
}
.lmsc-wizard-test-result {
    padding: 16px;
    border-radius: 6px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    font-size: 13px;
    line-height: 1.6;
}
.lmsc-wizard-test-result.is-error {
    background: #fcf0f1;
    border-color: #f1c0c4;
    color: #761923;
}
.lmsc-wizard-test-result h4 { margin: 0 0 10px; font-size: 14px; }
.lmsc-wizard-test-result ul { margin: 0; padding-left: 20px; }
.lmsc-wizard-test-result .step-match { color: #1e4620; font-weight: 600; }
.lmsc-wizard-test-result .step-skip { color: #757575; }

/* Step 4 */
.lmsc-wizard-done-icon {
    text-align: center;
    margin-bottom: 16px;
}
.lmsc-wizard-done-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #46b450;
}
.lmsc-wizard-done-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 16px;
    justify-content: center;
}
.lmsc-wizard-rerun-hint {
    text-align: center;
    font-size: 13px;
    color: #50575e;
    margin: 8px 0 0;
}

/* Actions footer */
.lmsc-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
    gap: 12px;
}
.lmsc-wizard-actions .button-large {
    height: auto;
    padding: 10px 22px;
    font-size: 14px;
}
.lmsc-wizard-skip-link { color: #757575; }
.button .dashicons {
    vertical-align: middle;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .lmsc-wizard { padding: 16px 12px 48px; }
    .lmsc-wizard-content { padding: 20px; }
    .lmsc-wizard-progress li { font-size: 11px; padding: 6px 8px; }
    .lmsc-wizard-progress li::before { width: 18px; height: 18px; line-height: 18px; font-size: 11px; }
}
