/**
 * PlugeTune Setup Wizard Styles
 *
 * @package PlugeTune
 */

 .plugetune-hidden {
	display: none !important;
}

@keyframes plugetune-wizard-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.wizard-loading {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #e2e8f0;
	border-top: 2px solid #3858e9;
	border-radius: 50%;
	animation: plugetune-wizard-spin 0.8s linear infinite;
	margin-right: 8px;
	vertical-align: middle;
}

.plugetune-wizard-wrap {
	max-width: 1000px;
	margin: 50px auto;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Header */
.plugetune-wizard-header {
	text-align: center;
	margin-bottom: 30px;
}

.plugetune-wizard-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important; 
    background: transparent !important; 
    border: none !important;
}

.plugetune-wizard-header-icon img {
    width: 80px !important; 
    height: 80px !important;
    display: block;
    object-fit: contain;
}

.plugetune-wizard-header h1 {
	font-size: 24px;
	margin: 0;
	color: #131414;
	font-weight: bold;
}

.plugetune-wizard-header p {
	color: #64748b;
	margin: 8px 0 0;
}

/* Step indicator */
.plugetune-wizard-steps {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 30px;
}

.wizard-step {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 20px;
	background: #f1f5f9;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.wizard-step .step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.1);
	font-size: 12px;
}

.wizard-step.active {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: #fff;
}

.wizard-step.active .step-number {
	background: rgba(255, 255, 255, 0.3);
}

.wizard-step.completed {
	background: #22c55e;
	color: #fff;
}

.wizard-step.completed .step-number {
	background: rgba(255, 255, 255, 0.3);
}

/* Body */
.plugetune-wizard-body {
	background: #f8fafc;
	border-radius: 12px;
	padding: 30px;
	border: 1px solid #e2e8f0;
}

.plugetune-wizard-field {
	margin-bottom: 20px;
}

.plugetune-wizard-field label {
	display: block;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 6px;
	font-size: 14px;
}

.plugetune-wizard-field .required {
	color: #ef4444;
}

.plugetune-wizard-field input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.2s;
	background: #ffffff;
	box-sizing: border-box;
}

.plugetune-wizard-field input:focus {
	outline: none;
	box-shadow: 0 0 0 0.5px rgba(56, 88, 233, 0.2);  
}

.plugetune-wizard-field .field-hint {
	font-size: 13px;
	color: #94a3b8;
	margin-top: 5px;
}

.plugetune-wizard-field .field-hint a {
	color: #3858e9;
	text-decoration: none;
}

/* Wizard message */
#wizard-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-top: 15px;
	display: none;
	font-size: 14px;
	position: relative;
}

#wizard-message.success {
	background: #dcfce7;
	border: 1px solid #86efac;
	color: #166534;
	display: block;
}

#wizard-message.error {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #991b1b;
	display: block;
}

#wizard-message.info {
	background: #dbeafe;
	border: 1px solid #93c5fd;
	color: #1e40af;
	display: block;
}

/* Verification step */
.plugetune-wizard-verify {
	text-align: center;
	padding: 20px 0;
}

.plugetune-wizard-verify .verify-icon {
	font-size: 48px;
	color: #94a3b8;
	margin-bottom: 15px;
}

.plugetune-wizard-verify h3 {
	margin: 0 0 10px;
	color: #1e293b;
}

.plugetune-wizard-verify p {
	color: #64748b;
	margin: 0;
}

.plugetune-wizard-verify .spinner-wrap {
	margin-top: 20px;
}

/* Complete step */
.plugetune-wizard-complete {
	text-align: center;
	padding: 20px 0;
}

.plugetune-wizard-complete .complete-icon {
	font-size: 48px;
	color: #22c55e;
	margin-bottom: 15px;
}

.plugetune-wizard-complete h3 {
	margin: 0 0 10px;
	color: #1e293b;
}

.plugetune-wizard-complete p {
	color: #64748b;
	margin: 0;
}

.plugetune-wizard-complete-actions {
	margin-top: 20px;
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.plugetune-wizard-complete-actions .button-primary {
	padding: 12px 30px;
	border-radius: 8px;
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	display: inline-block;
	border: none;
}

.plugetune-wizard-complete-actions .button-secondary {
	padding: 12px 30px;
	border-radius: 8px;
	background: linear-gradient(135deg, #fcb257 0%, #ff8c00 100%);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	display: inline-block;
	border: none;
}

/* Footer actions */
.plugetune-wizard-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 25px;
	gap: 15px;
	flex-wrap: wrap;
}

.plugetune-wizard-footer-spacer {
	flex: 1;
}

#wizard-back-btn,
#wizard-next-btn,
#wizard-skip-btn {
	padding: 8px 30px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
}

#wizard-back-btn,
#wizard-skip-btn {
	border: 1px solid #d1d5db;
	background: #f1f5f9;
	color: #64748b;
	text-decoration: none;
}

#wizard-next-btn {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: #fff;
}

.plugetune-wizard-wrap .button-primary:hover {
	transform: translateY(-2px); 
	box-shadow: 0 4px 15px rgba(56, 88, 233, 0.5);
}

/* Notice in admin */
.plugetune-wizard-notice {
	border-left-color: #ff8c00;
	padding: 15px;
}

.plugetune-wizard-notice-inner {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.plugetune-wizard-notice-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.plugetune-wizard-notice-left i {
	font-size: 28px;
	color: #ff0000;
}

.plugetune-wizard-notice-text strong {
	font-size: 16px;
}

.plugetune-wizard-notice-text p {
	margin: 5px 0 0;
	color: #555;
}

.plugetune-wizard-notice-actions {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.plugetune-wizard-notice-actions .button-primary {
	border-radius: 5px;
	background: linear-gradient(135deg, #ff8c00, #e67e00);
	border-color: #e67e00;
}

.plugetune-wizard-notice-actions .button-secondary {
	border-radius: 5px;
}

.wizard-msg-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: transparent;
	border: none;
	color: #991b1b;
	font-size: 22px;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.wizard-msg-text {
	padding-right: 26px;
}

/**
 * PlugeTune Video Popup styles.
 */

body.plugetune-video-modal-open {
	overflow: hidden;
}

.plugetune-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.plugetune-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.8);
	cursor: pointer;
}

.plugetune-video-modal__box {
	position: relative;
	width: 100%;
	max-width: 900px;
	background: #000;
	border-radius: 12px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.plugetune-video-modal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
}

.plugetune-video-modal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.plugetune-video-modal__close {
	position: absolute;
	top: 5px;
	right: 3px;
	width: 28px;
	height: 28px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #ef4444;
	font-size: 40px;
	font-weight: 600;
	line-height: 28px;
	text-align: center;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
	cursor: pointer;
	opacity: 0.9;
	z-index: 3;
}

.plugetune-video-modal__close:hover,
.plugetune-video-modal__close:focus {
	background: transparent;
	color: #fff;
	opacity: 1;
	outline: none;
	box-shadow: none;
}

@media (max-width: 600px) {
	.plugetune-video-modal__close { top: -44px; right: 0; }
}