/**
 * YOOAdmin - Setup wizard styles
 *
 * @package YOOAdmin
 */

/* ============================================
   FULLSCREEN WIZARD - COMPLETE ISOLATION
   ============================================ */

/* Force fullscreen background */
body.yooadmin-wizard-fullscreen {
    background: #e5e7eb !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
}

.yooadmin-wizard-wrap {
    padding: 0 !important;
    margin: 40px auto !important;
    max-width: 900px !important;
}

/* HIDE EVERYTHING - WordPress & YOOAdmin */
body.yooadmin-wizard-fullscreen #wpadminbar,
body.yooadmin-wizard-fullscreen #adminmenumain,
body.yooadmin-wizard-fullscreen #adminmenuback,
body.yooadmin-wizard-fullscreen #adminmenuwrap,
body.yooadmin-wizard-fullscreen .yooadmin-header,
body.yooadmin-wizard-fullscreen .yooadmin-sidebar,
body.yooadmin-wizard-fullscreen .yooadmin-main-content,
body.yooadmin-wizard-fullscreen .yooadmin-notification-icon,
body.yooadmin-wizard-fullscreen .yooadmin-breadcrumb,
body.yooadmin-wizard-fullscreen #wpfooter,
body.yooadmin-wizard-fullscreen #screen-meta,
body.yooadmin-wizard-fullscreen #screen-meta-links,
body.yooadmin-wizard-fullscreen .update-nag,
body.yooadmin-wizard-fullscreen .notice,
body.yooadmin-wizard-fullscreen .updated,
body.yooadmin-wizard-fullscreen .error {
    display: none !important;
    visibility: hidden !important;
}

/* Override WordPress notice colors with primary color */
.yooadmin-wizard .notice-info {
    border-left-color: #eda934 !important;
}

.yooadmin-wizard .notice-info::before {
    color: #eda934 !important;
}

/* Reset ALL WordPress margins/paddings */
body.yooadmin-wizard-fullscreen html.wp-toolbar {
    padding-top: 0 !important;
}

body.yooadmin-wizard-fullscreen #wpcontent {
    margin: 0 !important;
    padding: 0 !important;
}

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

body.yooadmin-wizard-fullscreen .wrap {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

body.yooadmin-wizard-fullscreen .wrap h1,
body.yooadmin-wizard-fullscreen .wrap h2 {
    display: none !important;
}

/* ============================================
   WIZARD HEADER (Same as Focus Mode popup)
   ============================================ */
.yooadmin-wizard-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 50px 40px 40px;
    text-align: center;
}

.yooadmin-wizard-logo {
    max-width: 220px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

.yooadmin-wizard-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ============================================
   WIZARD CONTAINER
   ============================================ */
.yooadmin-setup-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 600px;
}

/* Steps Navigation */
.yooadmin-setup-steps {
    background: #fff;
    padding: 40px 50px 30px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.yooadmin-setup-steps ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.yooadmin-setup-steps ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Connection Line BEHIND the steps */
.yooadmin-setup-steps ul::before {
    content: '';
    position: absolute;
    top: 19px; /* Center with step numbers */
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.yooadmin-setup-steps li {
    flex: 1;
    text-align: center;
    color: #9ca3af;
    position: relative;
    font-weight: 500;
    z-index: 1;
}

.yooadmin-setup-steps li.completed {
    color: #10b981;
}

.yooadmin-setup-steps li.completed .step-number {
    background: #10b981;
    color: #fff;
}

.yooadmin-setup-steps li.active {
    color: #1f2937;
}

.yooadmin-setup-steps li.active .step-number {
    background: #f59e0b;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.yooadmin-setup-steps .step-number {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.yooadmin-setup-steps .step-name {
    display: block;
    font-size: 13px;
    transition: all 0.3s ease;
}

/* Content */
.yooadmin-setup-content {
    padding: 50px 60px;
    min-height: 500px;
}

/* Step Header */
.wizard-step-header {
    text-align: center;
    margin-bottom: 20px;
}

.wizard-step-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #1d2327;
}

.wizard-subtitle {
    font-size: 16px;
    color: #646970;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.wizard-info-hint {
    font-size: 13px;
    color: #9ca3af;
    margin: 8px 0 0;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wizard-step-header .wizard-info-hint {
    text-align: center;
    justify-content: center;
}

.wizard-info-hint-center {
    display: block !important;
    text-align: center !important;
    margin: 20px 0 0 !important;
}

.wizard-info-hint .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Step Body */
.wizard-step-body {
    margin-bottom: 20px;
}

/* Message Box */
.wizard-message-box {
    background: #f3f4f6;
    border-left: 4px solid #eda934;
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.wizard-message-box.wizard-success {
    background: #edfaef;
    border-left-color: #46b450;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wizard-message-box .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #46b450;
}

.wizard-message-box h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.wizard-message-box p {
    margin: 0;
    font-size: 14px;
    color: #646970;
}

.privacy-message {
    font-size: 15px;
    color: #50575e;
    margin: 0;
}

/* Legacy checkbox styles (deprecated) */
.wizard-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

.wizard-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wizard-checkbox a {
    color: #eda934;
    text-decoration: none;
    font-weight: 500;
}

.wizard-checkbox a:hover {
    text-decoration: underline;
}

/* Branding */
.wizard-section {
    margin-bottom: 35px;
}

.wizard-section h3 {
    font-size: 18px;
    margin: 0 0 20px;
    color: #1d2327;
    transition: color 0.3s ease;
}

.logo-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}


.wizard-upload-logo {
    width: 100%;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.logo-preview {
    width: 100%;
    height: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    text-align: center;
    color: #999;
}

.logo-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.logo-placeholder p {
    margin: 5px 0 0;
    font-size: 13px;
}

.color-pickers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Grid layout for wizard colors */
.wizard-color-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

/* Branding layout - Logo and Colors side by side */
.wizard-branding-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 35px;
    align-items: stretch;
    margin-bottom: 0;
}

.wizard-logo-section {
    padding: 24px;
    margin-bottom: 0;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.wizard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wizard-section-header h3 {
    margin: 0;
}

.wizard-reset-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.wizard-reset-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.wizard-colors-section {
    padding: 24px;
    margin-bottom: 0;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.wizard-logo-section .wizard-section-header {
    margin-bottom: 16px;
}

.wizard-colors-section .wizard-section-header {
    margin-bottom: 8px;
}

.wizard-colors-section .description {
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
}

/* Compact color grid - 4 columns for better space usage */
.wizard-color-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex: 1;
}

.wizard-color-grid-compact .color-picker-group {
    background: #ffffff;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-color-grid-compact .color-picker-group:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wizard-color-grid-compact label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.wizard-color-grid-compact .wp-picker-container {
    display: flex;
    flex-direction: column;
}

.wizard-color-grid-compact .wp-color-result {
    height: 32px;
    width: 100%;
    order: 1;
}

.wizard-color-grid-compact .wp-picker-input-wrap {
    order: 2;
    margin-top: 8px !important;
}

.wizard-color-grid-compact .wp-picker-input-wrap input {
    width: 100% !important;
    margin: 0 !important;
}

.wizard-color-grid-compact .wp-picker-default {
    order: 3;
    margin-top: 6px !important;
    width: 100%;
}

/* Responsive for branding layout */
@media (max-width: 1024px) {
    .wizard-branding-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wizard-color-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .wizard-color-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wizard-logo-section,
    .wizard-colors-section {
        padding: 20px;
    }
}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-picker-group label {
    font-weight: 500;
    color: #1d2327;
    transition: color 0.3s ease;
}

/* Preview */
.wizard-preview {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.preview-box {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.preview-logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.preview-logo img {
    max-height: 100%;
}

.preview-logo span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.preview-button {
    margin: 20px;
    padding: 12px 24px;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

/* General Settings */
.wizard-settings-grid {
    display: grid;
    gap: 20px;
}

.wizard-setting-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    transition: background 0.2s;
}

.wizard-setting-item:hover {
    background: #f0f0f1;
}

.wizard-setting-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #1d2327;
}

.wizard-setting-info p {
    margin: 0;
    font-size: 14px;
    color: #646970;
}

/* Toggle Switch */
.wizard-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.wizard-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wizard-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.wizard-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.wizard-toggle input:checked + .wizard-toggle-slider {
    background: #10b981;
}

.wizard-toggle input:checked + .wizard-toggle-slider:before {
    transform: translateX(22px);
}

/* License */
.wizard-license-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.wizard-features-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.wizard-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 15px;
    color: #1d2327;
}

.wizard-features-list li:last-child {
    border-bottom: none;
}

.wizard-features-list .dashicons {
    /* Color will be set dynamically from primary color */
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wizard-license-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.wizard-activate-license {
    min-width: 200px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    /* Background color will be set dynamically from primary color */
}

.wizard-activate-license:hover,
.wizard-activate-license:focus,
.wizard-activate-license:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.wizard-activate-license .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

/* Launch */
.wizard-launch-content {
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wizard-launch-icon {
    margin-bottom: 30px;
    order: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.wizard-launch-text {
    font-size: 32px;
    font-weight: 600;
    color: #1d2327;
}

.wizard-launch-emoji {
    font-size: 48px;
    line-height: 1;
    display: inline-block;
}

.wizard-step-header-centered {
    order: 2;
    margin-bottom: 30px;
}

.wizard-launch-message {
    order: 3;
}

.wizard-launch-icon .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    /* Color set via inline CSS from primary color */
}

.wizard-launch-message h2 {
    font-size: 28px;
    margin: 0 0 15px;
    color: #1d2327;
}

.wizard-launch-message p {
    font-size: 16px;
    color: #646970;
    margin: 0;
}

/* Info Box */
.wizard-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff8e5;
    border-left: 4px solid #f0b849;
    border-radius: 4px;
    margin-top: 30px;
}

.wizard-info-box .dashicons {
    color: #f0b849;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wizard-info-box p {
    margin: 0;
    font-size: 14px;
    color: #646970;
}

/* Footer */
.wizard-step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.wizard-launch-footer {
    justify-content: center;
    gap: 20px;
}

.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    height: auto;
    line-height: 1.4;
}

.wizard-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wizard-btn-launch {
    padding: 16px 40px;
    font-size: 18px;
}

.wizard-btn-launch .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wizard-btn.loading {
    position: relative;
    color: transparent;
}

.wizard-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wizard-spin 0.6s linear infinite;
}

/* Launch Animation Overlay */
.wizard-launch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-launch-animation {
    text-align: center;
    color: #fff;
}

/* Building Stage */
.wizard-building-stage {
    min-width: 400px;
}

.wizard-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #eda934, #10b981);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

.wizard-progress-message {
    font-size: 18px;
    color: #fff;
    margin: 0;
}

/* Countdown Stage */
.wizard-countdown-stage {
    min-width: 400px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-countdown-number {
    font-size: 120px;
    font-weight: 700;
    color: #fff;
}

.wizard-countdown-number.wizard-countdown-animate {
    animation: wizard-countdown 1s ease-in-out;
    /* Force animation restart */
    animation-fill-mode: both;
}

.wizard-countdown-number.wizard-countdown-fadeout {
    animation: wizard-countdown-fadeout 0.5s ease-in-out forwards;
}

/* Animations */
@keyframes wizard-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes wizard-countdown {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wizard-countdown-fadeout {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* ============================================
   WELCOME STEP - PROFESSIONAL DESIGN
   ============================================ */

/* Welcome Main Message */
.yooadmin-wizard-welcome .wizard-main-message {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px;
    line-height: 1.4;
}

.yooadmin-wizard-welcome .wizard-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

/* Quick Info Box */
.wizard-quick-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff7ec;
    border-left: 4px solid #eda934;
    border-radius: 8px;
    margin: 16px 0 16px;
    box-shadow: 0 2px 6px rgba(232, 158, 67, 0.1);
}

.wizard-quick-info svg {
    flex-shrink: 0;
    color: #eda934;
    opacity: 0.9;
}

.wizard-quick-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wizard-quick-info-text strong {
    font-size: 15px;
    color: #4b5563;
    font-weight: 600;
    line-height: 1.4;
}

.wizard-quick-info-text span {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

/* Privacy Notice */
.wizard-privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f3f4f6;
    border-left: 3px solid #9ca3af;
    border-radius: 6px;
    margin: 16px 0 18px;
}

.wizard-privacy-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #6b7280;
}

.wizard-privacy-notice p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* Terms Acceptance */
.wizard-terms-acceptance {
    margin: 18px 0 0;
    display: flex;
    justify-content: center;
}

.wizard-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    text-align: left;
    max-width: 100%;
}

.wizard-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wizard-checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.wizard-checkbox-label:hover .wizard-checkbox-custom {
    border-color: #9ca3af;
}

.wizard-checkbox-label input[type="checkbox"]:checked + .wizard-checkbox-custom {
    background: #eda934;
    border-color: #eda934;
}

.wizard-checkbox-label input[type="checkbox"]:checked + .wizard-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wizard-checkbox-text {
    flex: 1;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

.wizard-checkbox-text a {
    color: #eda934;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.wizard-checkbox-text a:hover {
    border-bottom-color: #eda934;
}

/* Footer Buttons */
.wizard-step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
}

.wizard-footer-start,
.wizard-footer-end {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Button Styles */
.wizard-btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.4;
}

.wizard-btn-primary,
.wizard-btn-next {
    /* Background color is set via inline CSS from PHP based on saved colors */
    /* Don't set background-color here to avoid overriding */
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
}

.wizard-btn-primary:hover:not(:disabled),
.wizard-btn-next:hover:not(:disabled) {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    opacity: 0.9;
}

.wizard-btn-primary:disabled,
.wizard-btn-next:disabled {
    background: #d1d5db !important;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

.wizard-btn-text {
    background: transparent;
    color: #6b7280;
    padding: 12px 20px;
}

.wizard-btn-text:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.03);
}

.wizard-btn-exit {
    color: #6b7280;
    font-weight: 400;
}

.wizard-btn-exit:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.03);
}

/* Responsive */
@media (max-width: 782px) {
    .yooadmin-setup-wrapper {
        margin: 20px;
    }
    
    .yooadmin-setup-steps {
        padding: 20px;
    }
    
    .yooadmin-setup-steps .step-name {
        font-size: 11px;
    }
    
    .yooadmin-setup-content {
        padding: 30px 25px;
    }
    
    .wizard-step-header h1 {
        font-size: 24px;
    }
    
    .yooadmin-wizard-welcome .wizard-main-message {
        font-size: 20px;
    }
    
    .yooadmin-wizard-welcome .wizard-description {
        font-size: 14px;
    }
    
    .wizard-step-footer {
        padding: 20px 25px;
        flex-direction: column;
        gap: 10px;
    }
    
    .wizard-footer-start,
    .wizard-footer-end {
        width: 100%;
    }
    
    .wizard-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wizard-license-content {
        grid-template-columns: 1fr;
    }
    
    .wizard-building-stage {
        min-width: 300px;
    }
    
    .wizard-countdown-number {
        font-size: 80px;
    }
}

/* ============================================
   SKIP WIZARD POPUP
   ============================================ */

.yooadmin-wizard-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yooadmin-wizard-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.yooadmin-wizard-popup-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    z-index: 1;
}

.yooadmin-wizard-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
}

.yooadmin-wizard-popup-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.yooadmin-wizard-popup-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yooadmin-wizard-popup-close:hover {
    color: #1f2937;
}

.yooadmin-wizard-popup-close .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.yooadmin-wizard-popup-body {
    padding: 24px 28px;
}

.yooadmin-wizard-popup-message {
    margin: 0 0 24px;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

.yooadmin-wizard-popup-option {
    margin-bottom: 16px;
}

.yooadmin-wizard-popup-option:last-child {
    margin-bottom: 0;
}

.yooadmin-wizard-popup-radio {
    display: flex;
    align-items: flex-start;
    gap: 0; /* No gap needed - radio is now part of ::before */
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative; /* For custom radio positioning */
}

.yooadmin-wizard-popup-radio:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.yooadmin-wizard-popup-radio input[type="radio"] {
    /* Hide native radio - we'll use custom styling */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Custom radio button - outer circle */
.yooadmin-wizard-popup-radio input[type="radio"] + .yooadmin-wizard-popup-radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

/* Checked state - outer circle */
.yooadmin-wizard-popup-radio input[type="radio"]:checked + .yooadmin-wizard-popup-radio-label::before {
    border-color: #eda934;
    background: #fff;
}

/* Checked state - inner dot */
.yooadmin-wizard-popup-radio input[type="radio"]:checked + .yooadmin-wizard-popup-radio-label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #eda934;
}

/* Focus state */
.yooadmin-wizard-popup-radio input[type="radio"]:focus + .yooadmin-wizard-popup-radio-label::before {
    box-shadow: 0 0 0 3px rgba(232, 158, 67, 0.2);
}

.yooadmin-wizard-popup-radio-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative; /* For ::after positioning */
    padding-left: 30px; /* Space for custom radio */
}

.yooadmin-wizard-popup-radio-label strong {
    font-size: 15px;
    color: #1f2937;
    font-weight: 600;
}

.yooadmin-wizard-popup-radio-label small {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Checked state - highlight the entire box */
.yooadmin-wizard-popup-radio:has(input[type="radio"]:checked) {
    border-color: #eda934;
    background: #fffbf5;
}

.yooadmin-wizard-popup-terms {
    margin-top: 16px;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 6px;
    border-left: 3px solid #eda934;
}

.yooadmin-wizard-popup-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.yooadmin-wizard-popup-checkbox {
    position: relative;
    padding-left: 28px; /* Space for custom checkbox */
}

[dir="rtl"] .yooadmin-wizard-popup-checkbox {
    padding-left: 0;
    padding-right: 28px;
}

.yooadmin-wizard-popup-checkbox input[type="checkbox"] {
    /* Hide native checkbox */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Custom checkbox - box (::before on span) */
.yooadmin-wizard-popup-checkbox span {
    position: relative;
}

.yooadmin-wizard-popup-checkbox span::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    background: #fff;
    transition: all 0.2s ease;
}

[dir="rtl"] .yooadmin-wizard-popup-checkbox span::before {
    left: auto;
    right: -28px;
}

/* Checked state - box */
.yooadmin-wizard-popup-checkbox input[type="checkbox"]:checked + span::before {
    background: #eda934;
    border-color: #eda934;
}

/* Checked state - checkmark (::after on span) */
.yooadmin-wizard-popup-checkbox input[type="checkbox"]:checked + span::after {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

[dir="rtl"] .yooadmin-wizard-popup-checkbox input[type="checkbox"]:checked + span::after {
    left: auto;
    right: -21px;
}

.yooadmin-wizard-popup-checkbox a {
    color: #eda934;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.yooadmin-wizard-popup-checkbox a:hover {
    border-bottom-color: #eda934;
}

.yooadmin-wizard-popup-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
}

.yooadmin-wizard-popup-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.yooadmin-wizard-popup-btn-primary {
    background: #eda934;
    color: #fff;
    box-shadow: 0 1px 3px rgba(232, 158, 67, 0.3);
}

.yooadmin-wizard-popup-btn-primary:hover:not(:disabled) {
    background: #d68d3a;
    box-shadow: 0 2px 6px rgba(232, 158, 67, 0.4);
    transform: translateY(-1px);
}

.yooadmin-wizard-popup-btn-primary:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.yooadmin-wizard-popup-btn-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.yooadmin-wizard-popup-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

body.yooadmin-popup-active {
    overflow: hidden;
}

/* General Settings Compact Layout */
.wizard-general-section {
    padding: 20px;
    margin-bottom: 16px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.wizard-general-section .wizard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.wizard-general-section h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.wizard-section-hint {
    display: flex;
    gap: 12px;
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
}

.wizard-section-hint .yoo-hint {
    color: #eda934;
    font-weight: 500;
}

.wizard-section-hint .wp-hint {
    color: #9ca3af;
    font-weight: 500;
}

.wizard-settings-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.wizard-content-management-grid {
    grid-template-columns: repeat(4, 1fr);
}

.wizard-content-management-grid .wizard-compact-setting {
    padding: 10px 8px;
    font-size: 14px;
}

.wizard-compact-setting {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wizard-compact-setting:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wizard-compact-setting input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.wizard-compact-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Checkmark color set via inline CSS in class-setup-wizard.php */

.wizard-compact-setting input[type="checkbox"]:checked ~ .wizard-compact-checkmark::after {
    content: "✓";
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.wizard-compact-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2327;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Disabled state - use primary color instead of blue */
.wizard-compact-setting input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.wizard-compact-setting input[type="checkbox"]:disabled:focus ~ .wizard-compact-checkmark {
    outline: none;
    box-shadow: 0 0 0 2px #eda934;
}

.wizard-compact-setting:has(input[type="checkbox"]:disabled):focus-within {
    border-color: #eda934;
}

/* Tooltip styles */
.wizard-setting-with-tooltip {
    position: relative;
}

.wizard-info-icon {
    font-size: 14px;
    cursor: help;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    filter: grayscale(100%);
}

.wizard-setting-with-tooltip:hover .wizard-info-icon {
    opacity: 1;
}

.wizard-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #1d2327;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 99999;
    pointer-events: none;
    min-width: 280px;
    max-width: 320px;
}

.wizard-tooltip p {
    margin: 0 0 8px 0;
}

.wizard-tooltip p:last-child {
    margin-bottom: 0;
}

.wizard-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ffffff;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
}

.wizard-setting-with-tooltip:hover .wizard-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 12px);
}

.wizard-tooltip strong {
    color: #eda934;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.wizard-tooltip .tooltip-checked {
    color: #10b981;
    display: block;
}

.wizard-tooltip .tooltip-unchecked {
    color: #6b7280;
    display: block;
}

@media (max-width: 768px) {
    .wizard-settings-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wizard-settings-compact-grid {
        grid-template-columns: 1fr;
    }
}

/* Confetti animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}
