// Modern Wizards Design System
// ================================

// Design Tokens
:root {
    // Colors
    --wizard-primary: #4f46e5;
    --wizard-primary-light: #6366f1;
    --wizard-primary-dark: #3730a3;
    --wizard-secondary: #06b6d4;
    --wizard-success: #10b981;
    --wizard-warning: #f59e0b;
    --wizard-error: #ef4444;

    // Neutrals
    --wizard-white: #ffffff;
    --wizard-gray-50: #f9fafb;
    --wizard-gray-100: #f3f4f6;
    --wizard-gray-200: #e5e7eb;
    --wizard-gray-300: #d1d5db;
    --wizard-gray-400: #9ca3af;
    --wizard-gray-500: #6b7280;
    --wizard-gray-600: #4b5563;
    --wizard-gray-700: #374151;
    --wizard-gray-800: #1f2937;
    --wizard-gray-900: #111827;

    // Spacing
    --wizard-space-1: 0.25rem;
    --wizard-space-2: 0.5rem;
    --wizard-space-3: 0.75rem;
    --wizard-space-4: 1rem;
    --wizard-space-5: 1.25rem;
    --wizard-space-6: 1.5rem;
    --wizard-space-8: 2rem;
    --wizard-space-10: 2.5rem;
    --wizard-space-12: 3rem;
    --wizard-space-16: 4rem;
    --wizard-space-20: 5rem;

    // Typography
    --wizard-text-xs: 0.75rem;
    --wizard-text-sm: 0.875rem;
    --wizard-text-base: 1rem;
    --wizard-text-lg: 1.125rem;
    --wizard-text-xl: 1.25rem;
    --wizard-text-2xl: 1.5rem;
    --wizard-text-3xl: 1.875rem;
    --wizard-text-4xl: 2.25rem;

    // Line Heights
    --wizard-leading-none: 1;
    --wizard-leading-tight: 1.25;
    --wizard-leading-snug: 1.375;
    --wizard-leading-normal: 1.5;
    --wizard-leading-relaxed: 1.625;
    --wizard-leading-loose: 2;

    // Shadows
    --wizard-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --wizard-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --wizard-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --wizard-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --wizard-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    // Border Radius
    --wizard-radius-sm: 0.375rem;
    --wizard-radius: 0.5rem;
    --wizard-radius-md: 0.75rem;
    --wizard-radius-lg: 1rem;
    --wizard-radius-xl: 1.5rem;
    --wizard-radius-full: 9999px;

    // Transitions
    --wizard-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --wizard-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

// Modern Wizards Wrapper
.wizards-modern-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--wizard-gray-50) 0%, var(--wizard-white) 100%);
    padding: var(--wizard-space-6);

    @media (max-width: 768px) {
        padding: var(--wizard-space-4);
    }
}

// Main Container
.wcs_home_wizards {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 3rem);

    .wcs_home_wizardsContainer {
        width: 100%;
        max-width: 1200px;
        background: var(--wizard-white);
        border-radius: var(--wizard-radius-xl);
        box-shadow: var(--wizard-shadow-xl);
        overflow: hidden;
        position: relative;

        // Modern gradient border
        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--wizard-primary), var(--wizard-secondary), var(--wizard-success));
            z-index: 1;
        }
    }
}

// Modern Step Indicator
.modern-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--wizard-space-8) var(--wizard-space-6);
    background: var(--wizard-gray-50);
    border-bottom: 1px solid var(--wizard-gray-200);
    gap: var(--wizard-space-4);
    overflow-x: auto;

    .step-item {
        display: flex;
        align-items: center;
        gap: var(--wizard-space-3);
        padding: var(--wizard-space-3) var(--wizard-space-4);
        border-radius: var(--wizard-radius-lg);
        transition: var(--wizard-transition);
        cursor: pointer;
        min-width: 140px;
        position: relative;

        &.clickable:hover {
            background: var(--wizard-white);
            box-shadow: var(--wizard-shadow-md);
            transform: translateY(-2px);
        }

        &.current {
            background: var(--wizard-primary);
            color: var(--wizard-white);
            box-shadow: var(--wizard-shadow-lg);

            .step-circle {
                background: var(--wizard-white);
                color: var(--wizard-primary);
            }
        }

        &.completed {
            background: var(--wizard-success);
            color: var(--wizard-white);

            .step-circle {
                background: var(--wizard-white);
                color: var(--wizard-success);
            }
        }

        &.valid {
            background: var(--wizard-gray-100);

            .step-circle {
                background: var(--wizard-success);
                color: var(--wizard-white);
            }
        }
    }

    .step-circle {
        width: 40px;
        height: 40px;
        border-radius: var(--wizard-radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--wizard-gray-200);
        color: var(--wizard-gray-600);
        font-weight: 600;
        font-size: var(--wizard-text-sm);
        transition: var(--wizard-transition);
        flex-shrink: 0;

        .step-icon {
            width: 20px;
            height: 20px;
        }
    }

    .step-content {
        display: flex;
        flex-direction: column;
        gap: var(--wizard-space-1);

        .step-title {
            font-weight: 600;
            font-size: var(--wizard-text-sm);
            line-height: var(--wizard-leading-tight);
        }

        .step-description {
            font-size: var(--wizard-text-xs);
            opacity: 0.8;
            line-height: var(--wizard-leading-normal);
        }
    }

    .step-connector {
        width: 24px;
        height: 2px;
        background: var(--wizard-gray-300);
        margin: 0 var(--wizard-space-2);
        flex-shrink: 0;
    }

    @media (max-width: 768px) {
        padding: var(--wizard-space-4);
        gap: var(--wizard-space-2);

        .step-item {
            min-width: 120px;
            padding: var(--wizard-space-2) var(--wizard-space-3);
        }

        .step-circle {
            width: 32px;
            height: 32px;
        }

        .step-content {
            .step-title {
                font-size: var(--wizard-text-xs);
            }

            .step-description {
                display: none;
            }
        }

        .step-connector {
            width: 16px;
        }
    }
}

// Wizard Page Setup
.wizards-page-setup {
    padding: var(--wizard-space-8) var(--wizard-space-6);
    min-height: 600px;
    background: #f3f4f5;

    @media (max-width: 768px) {
        padding: var(--wizard-space-6) var(--wizard-space-4);
    }
}

// Step Container with Transitions
.step-container {
    .fade-enter {
        opacity: 0;
        transform: translateX(30px);
    }

    .fade-enter-active {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 400ms ease-out, transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .fade-exit {
        opacity: 1;
        transform: translateX(0);
    }

    .fade-exit-active {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 400ms ease-in, transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }
}

// Wizard Steps
.wizard-step {
    animation: fadeInUp 0.6s ease-out;

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    h3 {
        font-size: var(--wizard-text-3xl);
        font-weight: 700;
        color: var(--wizard-gray-900);
        margin-bottom: var(--wizard-space-6);
        text-align: center;
        line-height: var(--wizard-leading-tight);

        @media (max-width: 768px) {
            font-size: var(--wizard-text-2xl);
            margin-bottom: var(--wizard-space-4);
            line-height: var(--wizard-leading-snug);
        }
    }
}

// Welcome Section
.welcome-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wizard-space-12);
    align-items: center;
    margin-bottom: var(--wizard-space-10);

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: var(--wizard-space-6);
        text-align: center;
    }

    .welcome-message {
        h3 {
            text-align: left;
            margin-bottom: var(--wizard-space-4);
            line-height: var(--wizard-leading-tight);

            @media (max-width: 768px) {
                text-align: center;
                font-size: var(--wizard-text-xl);
                line-height: var(--wizard-leading-snug);
            }
        }

        p {
            font-size: var(--wizard-text-lg);
            color: var(--wizard-gray-600);
            line-height: var(--wizard-leading-relaxed);
            margin-bottom: var(--wizard-space-4);

            @media (max-width: 768px) {
                font-size: var(--wizard-text-base);
                line-height: var(--wizard-leading-normal);
            }
        }
    }

    .welcome-image {
        position: relative;

        &::before {
            content: "";
            position: absolute;
            inset: -20px;
            background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-secondary));
            border-radius: var(--wizard-radius-xl);
            opacity: 0.1;
            z-index: -1;
        }

        img {
            width: 55%;
            height: auto;
            border-radius: var(--wizard-radius-lg);
            transition: var(--wizard-transition-slow);

            &:hover {
                transform: translateY(-4px);
            }
        }
    }
}

// Plugin Steps Preview
.plugin-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--wizard-space-4);
    margin-top: var(--wizard-space-8);

    .step {
        background: var(--wizard-white);
        border: 2px solid var(--wizard-gray-100);
        border-radius: var(--wizard-radius-lg);
        padding: var(--wizard-space-6);
        text-align: center;
        transition: var(--wizard-transition);
        position: relative;
        overflow: hidden;

        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--wizard-primary), var(--wizard-secondary));
            transform: scaleX(0);
            transform-origin: left;
            transition: var(--wizard-transition);
        }

        &:hover {
            border-color: var(--wizard-primary);
            transform: translateY(-4px);
            box-shadow: var(--wizard-shadow-lg);

            &::before {
                transform: scaleX(1);
            }

            .step-number {
                background: var(--wizard-primary);
                color: var(--wizard-white);
                transform: scale(1.1);
            }
        }

        .step-number {
            width: 48px;
            height: 48px;
            border-radius: var(--wizard-radius-full);
            background: var(--wizard-gray-100);
            color: var(--wizard-gray-600);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: var(--wizard-text-lg);
            margin: 0 auto var(--wizard-space-4);
            transition: var(--wizard-transition);
        }

        p {
            font-weight: 500;
            color: var(--wizard-gray-700);
            margin: 0;
            line-height: var(--wizard-leading-normal);
        }
    }
}

// Webhook Panel
.wpnts-switch-sitessecurityissues {
    .webhooks-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--wizard-space-8);
        margin-top: var(--wizard-space-6);

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: var(--wizard-space-6);
        }
    }
}

// Webhook Settings Panel
.webhook-settings-panel {
    background: var(--wizard-gray-50);
    border: 1px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius-lg);
    padding: var(--wizard-space-6);

    .add-webhook,
    .test-webhook,
    .add-email {
        margin-bottom: var(--wizard-space-6);

        &:last-child {
            margin-bottom: 0;
        }
    }

    .formInput {
        margin-bottom: var(--wizard-space-4);

        label {
            display: flex;
            align-items: center;
            gap: var(--wizard-space-2);
            font-weight: 600;
            color: var(--wizard-gray-900);
            margin-bottom: var(--wizard-space-2);
            font-size: var(--wizard-text-sm);
            line-height: var(--wizard-leading-normal);

            .wcs_tooltip_icon {
                width: 16px;
                height: 16px;
                color: var(--wizard-gray-400);
                cursor: help;
                transition: var(--wizard-transition);

                &:hover {
                    color: var(--wizard-primary);
                }
            }
        }

        p {
            color: var(--wizard-gray-600);
            font-size: var(--wizard-text-sm);
            margin-bottom: var(--wizard-space-3);
            font-weight: 500;
            line-height: var(--wizard-leading-normal);
        }
    }

    .wpnts-setting {
        position: relative;

        input {
            width: 100%;
            padding: var(--wizard-space-3) var(--wizard-space-4);
            border: 2px solid var(--wizard-gray-200);
            border-radius: var(--wizard-radius);
            font-size: var(--wizard-text-base);
            color: var(--wizard-gray-900);
            background: var(--wizard-white);
            transition: var(--wizard-transition);

            &:focus {
                outline: none;
                border-color: var(--wizard-primary);
                box-shadow: 0 0 0 3px rgb(79 70 229 / 0.1);
            }

            &::placeholder {
                color: var(--wizard-gray-400);
            }
        }

        .passimg {
            position: absolute;
            right: var(--wizard-space-3);
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: var(--wizard-gray-400);
            transition: var(--wizard-transition);

            &:hover {
                color: var(--wizard-primary);
            }

            .passVisibility {
                width: 20px;
                height: 20px;
            }
        }
    }

    .save-webhook {
        background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-light));
        color: var(--wizard-white);
        border: none;
        border-radius: var(--wizard-radius);
        padding: var(--wizard-space-3) var(--wizard-space-6);
        font-weight: 600;
        font-size: var(--wizard-text-sm);
        cursor: pointer;
        transition: var(--wizard-transition);
        text-transform: uppercase;
        letter-spacing: 0.5px;

        &:hover {
            background: linear-gradient(135deg, var(--wizard-primary-dark), var(--wizard-primary));
            transform: translateY(-2px);
            box-shadow: var(--wizard-shadow-lg);
        }

        &:active {
            transform: translateY(0);
        }
    }
}

// Configure Features
.configure-feature {
    background: var(--wizard-white);
    border: 1px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius-lg);
    padding: var(--wizard-space-4);
    margin-bottom: var(--wizard-space-4);
    transition: var(--wizard-transition);

    &:hover {
        border-color: var(--wizard-gray-300);
        box-shadow: var(--wizard-shadow-sm);
    }

    .toggle-parent {
        display: flex;
        align-items: center;
        gap: var(--wizard-space-3);

        label {
            flex: 1;
            font-weight: 500;
            color: var(--wizard-gray-900);
            cursor: pointer;
            font-size: var(--wizard-text-base);
            line-height: var(--wizard-leading-normal);
        }

        .wcs_tooltip_icon {
            width: 18px;
            height: 18px;
            color: var(--wizard-gray-400);
            cursor: help;
            transition: var(--wizard-transition);

            &:hover {
                color: var(--wizard-primary);
                transform: scale(1.1);
            }
        }
    }
}

// Navigation
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--wizard-space-10);
    padding-top: var(--wizard-space-6);
    border-top: 1px solid var(--wizard-gray-200);

    .nav-spacer {
        flex: 1;
    }

    .nav-button {
        display: flex;
        align-items: center;
        gap: var(--wizard-space-2);
        padding: var(--wizard-space-3) var(--wizard-space-6);
        border: none;
        border-radius: var(--wizard-radius);
        font-weight: 600;
        font-size: var(--wizard-text-base);
        cursor: pointer;
        transition: var(--wizard-transition);
        position: relative;
        overflow: hidden;

        .nav-icon {
            width: 18px;
            height: 18px;
        }

        &.prev-button {
            background: var(--wizard-gray-100);
            color: var(--wizard-gray-700);

            &:hover {
                background: var(--wizard-gray-200);
                transform: translateY(-2px);
                box-shadow: var(--wizard-shadow-md);
            }
        }

        &.next-button {
            background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-light));
            color: var(--wizard-white);

            &:hover:not(.disabled) {
                background: linear-gradient(135deg, var(--wizard-primary-dark), var(--wizard-primary));
                transform: translateY(-2px);
                box-shadow: var(--wizard-shadow-lg);
            }


        }

        &.finish-button {
            background: linear-gradient(135deg, var(--wizard-success), #059669);
            color: var(--wizard-white);

            &:hover:not(.disabled) {
                background: linear-gradient(135deg, #059669, #047857);
                transform: translateY(-2px);
                box-shadow: var(--wizard-shadow-lg);
            }



            .loading-spinner {
                width: 16px;
                height: 16px;
                border: 2px solid transparent;
                border-top: 2px solid currentColor;
                border-radius: var(--wizard-radius-full);
                animation: spin 1s linear infinite;

                @keyframes spin {
                    to {
                        transform: rotate(360deg);
                    }
                }
            }
        }

        &:active:not(.disabled) {
            transform: translateY(0);
        }
    }
}

// Completion Step
.wizard-step.finished {
    text-align: center;

    .complete-msg {
        color: var(--wizard-success);
        font-size: var(--wizard-text-2xl);
        margin: var(--wizard-space-8) 0;

        @media (max-width: 768px) {
            font-size: var(--wizard-text-xl);
        }
    }

    .incomplete-msg {
        background: linear-gradient(135deg, #fef3c7, #fde68a);
        border: 1px solid #f59e0b;
        border-radius: var(--wizard-radius-lg);
        padding: var(--wizard-space-6);
        margin: var(--wizard-space-6) 0;

        h3 {
            color: #92400e;
            margin-bottom: var(--wizard-space-4);
            line-height: var(--wizard-leading-tight);
        }

        p {
            color: #92400e;
            margin-bottom: var(--wizard-space-4);
            line-height: var(--wizard-leading-normal);
        }

        .missing-settings {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--wizard-space-3);
            margin-top: var(--wizard-space-4);

            .setting-item {
                background: #fef2f2;
                border: 1px solid #fecaca;
                color: #991b1b;
                padding: var(--wizard-space-3) var(--wizard-space-4);
                border-radius: var(--wizard-radius);
                font-weight: 500;
                font-size: var(--wizard-text-sm);
                transition: var(--wizard-transition);
                line-height: var(--wizard-leading-normal);

                &:hover {
                    background: #fee2e2;
                    transform: translateY(-2px);
                    box-shadow: var(--wizard-shadow-sm);
                }
            }
        }
    }

    .congrats {
        margin: var(--wizard-space-12) 0;

        h1 {
            font-size: var(--wizard-text-4xl);
            color: var(--wizard-success);
            margin-bottom: var(--wizard-space-6);

            @media (max-width: 768px) {
                font-size: var(--wizard-text-3xl);
            }
        }

        .done {
            margin: var(--wizard-space-8) 0;

            .setup_complete {
                width: 120px;
                height: auto;
                animation: bounce 2s infinite;

                @keyframes bounce {

                    0%,
                    20%,
                    50%,
                    80%,
                    100% {
                        transform: translateY(0);
                    }

                    40% {
                        transform: translateY(-20px);
                    }

                    60% {
                        transform: translateY(-10px);
                    }
                }
            }
        }
    }
}

/* Modern Video Player Styles */
.modern-video-player {
    margin: 20px 0;
    border-radius: var(--wizard-radius-xl);
    overflow: hidden;
    box-shadow: var(--wizard-shadow-xl);
    background: var(--wizard-white);
    transition: var(--wizard-transition-slow);

    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    }
}

.video-thumbnail-container {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-secondary) 100%);

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--wizard-transition-slow);
    }

    &:hover img {
        transform: scale(1.05);
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--wizard-transition);

    &:hover {
        background: rgba(0, 0, 0, 0.4);
    }
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--wizard-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-gray-800);
    transition: var(--wizard-transition);
    box-shadow: var(--wizard-shadow-xl);
    z-index: 2;
    backdrop-filter: blur(10px);

    svg {
        width: 32px;
        height: 32px;
        margin-left: 4px;
    }

    &:hover {
        background: var(--wizard-white);
        transform: scale(1.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

.video-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.video-info {
    padding: var(--wizard-space-6);
    background: var(--wizard-white);

    .video-title {
        font-size: var(--wizard-text-xl);
        font-weight: 600;
        color: var(--wizard-gray-900);
        margin: 0 0 var(--wizard-space-2) 0;
        line-height: var(--wizard-leading-snug);
    }

    .video-description {
        font-size: var(--wizard-text-base);
        color: var(--wizard-gray-600);
        margin: 0 0 var(--wizard-space-4) 0;
        line-height: var(--wizard-leading-normal);
    }

    .video-meta {
        display: flex;
        gap: var(--wizard-space-4);
        font-size: var(--wizard-text-sm);
        color: var(--wizard-gray-500);

        .video-duration,
        .video-quality {
            display: flex;
            align-items: center;
            gap: var(--wizard-space-1);
            font-weight: 500;
        }

        .video-quality {
            color: var(--wizard-success);
        }
    }
}

/* Video Modal Styles */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--wizard-space-5);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.video-modal {
    background: var(--wizard-white);
    border-radius: var(--wizard-radius-xl);
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    max-width: 1200px;
    box-shadow: var(--wizard-shadow-xl);
    animation: slideUp 0.3s ease;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--wizard-space-4) var(--wizard-space-6);
    background: var(--wizard-gray-50);
    border-bottom: 1px solid var(--wizard-gray-200);

    h3 {
        margin: 0;
        font-size: var(--wizard-text-lg);
        font-weight: 600;
        color: var(--wizard-gray-900);
    }

    .close-button {
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: var(--wizard-radius);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--wizard-gray-500);
        cursor: pointer;
        transition: var(--wizard-transition);

        &:hover {
            background: var(--wizard-gray-200);
            color: var(--wizard-gray-900);
        }

        svg {
            width: 20px;
            height: 20px;
        }
    }
}

.video-modal-content {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: var(--wizard-gray-900);

    >div {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-video-player {
        margin: var(--wizard-space-4) 0;
        border-radius: var(--wizard-radius-lg);
    }

    .video-thumbnail {
        height: 200px;
    }

    .play-button {
        width: 60px;
        height: 60px;

        svg {
            width: 24px;
            height: 24px;
        }
    }

    .video-info {
        padding: var(--wizard-space-4);

        .video-title {
            font-size: var(--wizard-text-lg);
        }

        .video-description {
            font-size: var(--wizard-text-sm);
        }
    }

    .video-modal {
        margin: var(--wizard-space-3);
        max-width: calc(100vw - 1.5rem);
        max-height: calc(100vh - 1.5rem);
    }

    .video-modal-header {
        padding: var(--wizard-space-3) var(--wizard-space-4);

        h3 {
            font-size: var(--wizard-text-base);
        }
    }
}

@media (max-width: 480px) {
    .video-thumbnail {
        height: 180px;
    }

    .play-button {
        width: 50px;
        height: 50px;

        svg {
            width: 20px;
            height: 20px;
        }
    }

    .video-info {
        padding: var(--wizard-space-3);

        .video-meta {
            flex-direction: column;
            gap: var(--wizard-space-2);
        }
    }
}

/* Integration with existing styles */
.video-guide {
    .modern-video-player {
        margin: 0;
    }
}

// Responsive Design
@media (max-width: 1024px) {
    .welcome-section {
        gap: var(--wizard-space-8);
    }

    .plugin-steps {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .plugin-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--wizard-space-3);

        .step {
            padding: var(--wizard-space-4);

            .step-number {
                width: 40px;
                height: 40px;
                font-size: var(--wizard-text-base);
            }

            p {
                font-size: var(--wizard-text-sm);
            }
        }
    }

    .wizard-navigation {
        flex-direction: column;
        gap: var(--wizard-space-4);

        .nav-spacer {
            display: none;
        }

        .nav-button {
            width: 100%;
            justify-content: center;
        }
    }
}

@media (max-width: 480px) {
    .plugin-steps {
        grid-template-columns: 1fr;
    }

    .missing-settings {
        grid-template-columns: 1fr !important;
    }
}