/* SkyServers Sync — Setup wizard styles */

body.skyemag-wizard-fullscreen {
	background: #f6f7f7;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1d2327;
}

body.skyemag-wizard-fullscreen #adminmenumain,
body.skyemag-wizard-fullscreen #wpadminbar,
body.skyemag-wizard-fullscreen #wpfooter {
	display: none !important;
}

body.skyemag-wizard-fullscreen #wpcontent,
body.skyemag-wizard-fullscreen #wpbody-content {
	margin-left: 0 !important;
	padding: 0 !important;
}

.skyemag-wizard-shell {
	max-width: 720px;
	margin: 40px auto;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.skyemag-wizard-header {
	position: relative;
	padding: 24px 32px 16px;
	border-bottom: 1px solid #f0f0f1;
}

.skyemag-wizard-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
}

.skyemag-wizard-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #646970;
	cursor: pointer;
	padding: 4px 8px;
}

.skyemag-wizard-close:hover {
	color: #1d2327;
}

.skyemag-wizard-progress {
	display: flex;
	gap: 6px;
	margin-top: 16px;
}

.skyemag-wizard-dot {
	width: 28px;
	height: 6px;
	border-radius: 3px;
	background: #dcdcde;
}

.skyemag-wizard-dot.is-done {
	background: #2271b1;
}

.skyemag-wizard-dot.is-future {
	background: #dcdcde;
	opacity: 0.6;
}

.skyemag-wizard-dot.is-current {
	background: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.skyemag-wizard-step-label {
	font-size: 12px;
	color: #646970;
	margin: 6px 0 0;
}

.skyemag-wizard-content {
	padding: 28px 32px 32px;
}

.skyemag-wizard-content h2 {
	font-size: 22px;
	margin: 0 0 8px;
}

.skyemag-wizard-content h3 {
	font-size: 15px;
	margin: 16px 0 8px;
}

.skyemag-wizard-content p {
	font-size: 14px;
	line-height: 1.55;
	margin: 8px 0;
}

.skyemag-wizard-content label {
	display: block;
	font-weight: 600;
	margin: 12px 0 4px;
}

.skyemag-wizard-content input[type=text],
.skyemag-wizard-content input[type=password],
.skyemag-wizard-content input[type=number],
.skyemag-wizard-content select {
	width: 100%;
	max-width: 420px;
	padding: 8px 10px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
}

.skyemag-wizard-content input[disabled] {
	background: #f0f0f1;
	color: #646970;
}

.skyemag-pro-pill {
	display: inline-block;
	background: #f0e7fd;
	color: #6e2dd1;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 8px;
	vertical-align: middle;
}

.skyemag-wizard-footer {
	padding: 18px 32px;
	border-top: 1px solid #f0f0f1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fafafa;
}

/* Detect row (Brand / EAN source on Step 5) — input + button on same line */
.skyemag-detect-row {
	display: flex;
	gap: 8px;
	align-items: center;
	max-width: 520px;
}

.skyemag-detect-row input[type=text] {
	flex: 1;
}

.skyemag-detect-status {
	font-size: 12px;
	margin: 4px 0 12px;
	min-height: 1em;
}

/* Skip link in footer — discreet text on the left, separated from Back/Next on the right */
.skyemag-wizard-skip-link {
	background: transparent;
	border: 0;
	color: #646970;
	cursor: pointer;
	font-size: 13px;
	padding: 8px 4px;
	text-decoration: none;
}

.skyemag-wizard-skip-link:hover,
.skyemag-wizard-skip-link:focus {
	color: #1d2327;
	text-decoration: underline;
	outline: none;
}

.skyemag-wizard-footer-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.skyemag-wizard-footer .button-link {
	color: #646970;
	text-decoration: underline;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 13px;
}

.skyemag-wizard-content .button-primary {
	font-size: 14px;
	padding: 8px 22px;
}

/* Showcase card (Free only) */
.skyemag-showcase-card {
	background: #fbfaff;
	border: 1px solid #e5dffb;
	border-radius: 6px;
	padding: 14px 18px;
	margin: 18px 0;
}

.skyemag-showcase-card h4 {
	font-size: 13px;
	font-weight: 600;
	color: #6e2dd1;
	margin: 0 0 6px;
}

.skyemag-showcase-card ul {
	margin: 0;
	padding-left: 20px;
	list-style: disc;
	font-size: 13px;
	color: #2c3338;
}

.skyemag-showcase-card a.button-link {
	color: #6e2dd1;
	font-weight: 600;
	display: inline-block;
	margin-top: 8px;
}

/* Skip modal */
.skyemag-modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 99998;
}

.skyemag-modal-backdrop.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
}

.skyemag-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 420px;
	width: 90%;
	padding: 22px 24px;
	z-index: 99999;
}

.skyemag-modal h2 {
	font-size: 18px;
	margin: 0 0 8px;
}

.skyemag-modal p {
	font-size: 14px;
	color: #50575e;
	margin: 0 0 18px;
}

.skyemag-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Recap box (Done step) */
.skyemag-wizard-recap {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 14px 18px;
	margin: 16px 0;
	font-size: 13px;
}

.skyemag-wizard-recap ul {
	margin: 6px 0 0;
	padding-left: 20px;
}

/* Bootstrap progress bar */
.skyemag-progress-bar {
	width: 100%;
	max-width: 420px;
	height: 14px;
	background: #f0f0f1;
	border: 1px solid #c3c4c7;
	border-radius: 7px;
	overflow: hidden;
	margin: 8px 0;
}

.skyemag-progress-bar-fill {
	height: 100%;
	background: #2271b1;
	width: 0%;
	transition: width 0.3s ease-out;
}

/* IP copy button */
.skyemag-ip-display {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	padding: 8px 14px;
	border-radius: 4px;
	font-family: monospace;
	font-size: 16px;
	margin: 8px 0;
}

/* Indeterminate progress (used during Bootstrap import) */
.skyemag-progress-bar-fill.is-indeterminate {
	width: 30% !important;
	animation: skyemag-indeterminate 1.4s linear infinite;
}

@keyframes skyemag-indeterminate {
	0%   { margin-left: -30%; }
	100% { margin-left: 100%; }
}

/* Mobile */
@media (max-width: 768px) {
	.skyemag-wizard-shell { margin: 20px 12px; }
	.skyemag-wizard-header { padding: 18px 20px 12px; }
	.skyemag-wizard-content { padding: 20px; }
	.skyemag-wizard-footer { padding: 14px 20px; flex-direction: column; gap: 10px; }
	.skyemag-wizard-content input[type=text],
	.skyemag-wizard-content input[type=password],
	.skyemag-wizard-content input[type=number],
	.skyemag-wizard-content select { max-width: 100%; }
}
