/**
 * YZ Chatbot Admin Styles
 * Şık, modern ve profesyonel tasarım
 */

/* ═══════════════════════════════════════════════════════════
   Variables
   ═══════════════════════════════════════════════════════════ */
:root {
    --yz-primary: #6366f1;
    --yz-primary-hover: #4f46e5;
    --yz-primary-light: rgba(99, 102, 241, 0.1);
    --yz-secondary: #8b5cf6;
    --yz-cyan: #22d3ee;
    --yz-success: #10b981;
    --yz-warning: #f59e0b;
    --yz-error: #ef4444;
    --yz-bg: #0f172a;
    --yz-bg-card: #1e293b;
    --yz-bg-input: #334155;
    --yz-bg-hover: #475569;
    --yz-border: rgba(148, 163, 184, 0.15);
    --yz-text: #f1f5f9;
    --yz-text-muted: #94a3b8;
    --yz-text-dim: #64748b;
    --yz-radius: 16px;
    --yz-radius-sm: 12px;
    --yz-radius-xs: 8px;
    --yz-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --yz-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --yz-gradient: linear-gradient(135deg, var(--yz-primary), var(--yz-secondary));
}

/* ═══════════════════════════════════════════════════════════
   Base - Full Width Layout
   ═══════════════════════════════════════════════════════════ */
.yz-chatbot-admin {
    max-width: 100%;
    margin: 0;
    padding: 20px 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--yz-text);
    background: var(--yz-bg);
    min-height: 100vh;
}

/* WordPress admin override - full width */
.wrap.yz-chatbot-wrap {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

#wpcontent {
    padding-left: 0 !important;
}

.yz-chatbot-admin .wrap {
    margin: 0;
}

.yz-chatbot-admin * { box-sizing: border-box; }
.yz-chatbot-admin a { color: var(--yz-cyan); text-decoration: none; transition: 0.2s; }
.yz-chatbot-admin a:hover { color: var(--yz-primary); }

/* WordPress admin area dark theme override */
body.toplevel_page_yz-chatbot #wpbody-content,
body.toplevel_page_yz-chatbot #wpbody,
body.yz-chatbot_page_yz-chatbot-wizard #wpbody-content,
body.yz-chatbot_page_yz-chatbot-wizard #wpbody {
    background: var(--yz-bg) !important;
}

body.toplevel_page_yz-chatbot .notice,
body.toplevel_page_yz-chatbot .updated,
body.yz-chatbot_page_yz-chatbot-wizard .notice,
body.yz-chatbot_page_yz-chatbot-wizard .updated {
    margin: 20px 30px 0;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   Hero Header - Dark Theme
   ═══════════════════════════════════════════════════════════ */
.yz-hero {
    position: relative;
    padding: 40px;
    margin-bottom: 24px;
    border-radius: var(--yz-radius);
    overflow: hidden;
    background: var(--yz-bg-card);
    border: 1px solid var(--yz-border);
}

.yz-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.yz-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--yz-gradient);
}

.yz-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.yz-hero-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.yz-hero-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.yz-hero-text {
    flex: 1;
    min-width: 200px;
}

.yz-hero-text h1 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
    background: var(--yz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yz-hero-text p {
    margin: 0;
    color: var(--yz-text-muted);
    font-size: 14px;
}

.yz-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--yz-cyan);
}

.yz-badge-icon { font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   Welcome Section (New Users)
   ═══════════════════════════════════════════════════════════ */
.yz-welcome-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid var(--yz-border);
    border-radius: var(--yz-radius);
    padding: 40px;
    margin-bottom: 24px;
    text-align: center;
}

.yz-welcome-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--yz-text);
}

.yz-welcome-content > p {
    font-size: 16px;
    color: var(--yz-text-muted);
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.yz-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.yz-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--yz-bg-card);
    border-radius: var(--yz-radius-sm);
    border: 1px solid var(--yz-border);
}

.yz-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.yz-feature-text strong {
    display: block;
    font-size: 14px;
    color: var(--yz-text);
    margin-bottom: 2px;
}

.yz-feature-text span {
    font-size: 13px;
    color: var(--yz-text-muted);
}

.yz-cta-section {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.yz-trust-signals {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--yz-text-muted);
}

.yz-trust-signals span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════════════════════ */
.yz-card {
    background: var(--yz-bg-card);
    border: 1px solid var(--yz-border);
    border-radius: var(--yz-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.yz-card-connected {
    border-color: rgba(16, 185, 129, 0.3);
}

.yz-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--yz-border);
    background: rgba(255,255,255,0.02);
}

.yz-card-icon {
    font-size: 24px;
}

.yz-card-title {
    flex: 1;
}

.yz-card-title h2 {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 600;
    color: var(--yz-text);
}

.yz-card-title p {
    margin: 0;
    font-size: 13px;
    color: var(--yz-text-muted);
}

.yz-card-body {
    padding: 24px;
}

/* Status Badge */
.yz-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.yz-status-connected {
    background: rgba(16, 185, 129, 0.15);
    color: var(--yz-success);
}

.yz-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════════════
   Form Elements
   ═══════════════════════════════════════════════════════════ */
.yz-form-group {
    margin-bottom: 20px;
}

.yz-form-group:last-child {
    margin-bottom: 0;
}

.yz-form-group > label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--yz-text);
}

.yz-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--yz-bg-input);
    border: 1px solid var(--yz-border);
    border-radius: var(--yz-radius-xs);
    color: var(--yz-text);
    font-size: 14px;
    transition: 0.2s;
}

.yz-input:focus {
    outline: none;
    border-color: var(--yz-primary);
    box-shadow: 0 0 0 3px var(--yz-primary-light);
}

.yz-input::placeholder {
    color: var(--yz-text-dim);
}

.yz-input-mono {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.yz-input-small {
    width: 100px;
}

.yz-select {
    max-width: 300px;
    cursor: pointer;
}

textarea.yz-input {
    min-height: 80px;
    resize: vertical;
}

.yz-input-group {
    display: flex;
    gap: 10px;
}

.yz-input-group .yz-input {
    flex: 1;
}

.yz-help-text {
    margin-top: 8px;
    font-size: 13px;
    color: var(--yz-text-muted);
}

/* Verify Status */
.yz-verify-status {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--yz-radius-xs);
    font-size: 13px;
    font-weight: 500;
}

.yz-verify-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--yz-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.yz-verify-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--yz-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.yz-verify-status.loading {
    background: var(--yz-primary-light);
    color: var(--yz-primary);
}

.yz-verify-status .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--yz-border);
    border-top-color: var(--yz-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   Switch
   ═══════════════════════════════════════════════════════════ */
.yz-switch-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yz-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.yz-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.yz-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--yz-bg-input);
    border: 1px solid var(--yz-border);
    border-radius: 26px;
    transition: 0.3s;
}

.yz-switch-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.yz-switch input:checked + .yz-switch-slider {
    background: var(--yz-primary);
    border-color: var(--yz-primary);
}

.yz-switch input:checked + .yz-switch-slider:before {
    transform: translateX(22px);
}

.yz-switch-label {
    font-size: 14px;
    color: var(--yz-text-muted);
}

.yz-switch-label.active {
    color: var(--yz-success);
}

/* ═══════════════════════════════════════════════════════════
   Option Cards (Theme/Position)
   ═══════════════════════════════════════════════════════════ */
.yz-option-cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yz-option-card {
    flex: 1;
    min-width: 90px;
    max-width: 120px;
    padding: 16px 12px;
    background: var(--yz-bg-input);
    border: 2px solid var(--yz-border);
    border-radius: var(--yz-radius-sm);
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.yz-option-card:hover {
    border-color: var(--yz-primary);
}

.yz-option-card.selected {
    border-color: var(--yz-primary);
    background: var(--yz-primary-light);
}

.yz-option-card input { display: none; }

.yz-option-icon {
    display: block;
    font-size: 26px;
    margin-bottom: 8px;
}

.yz-option-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--yz-text);
}

/* Position Preview */
.yz-position-preview {
    width: 60px;
    height: 40px;
    margin: 0 auto 8px;
    background: var(--yz-bg);
    border: 1px solid var(--yz-border);
    border-radius: 4px;
    position: relative;
}

.yz-position-preview .dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--yz-primary);
    border-radius: 50%;
    bottom: 4px;
}

.yz-position-preview .dot.right { right: 4px; }
.yz-position-preview .dot.left { left: 4px; }

/* ═══════════════════════════════════════════════════════════
   Color Input
   ═══════════════════════════════════════════════════════════ */
.yz-color-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yz-color-input input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 2px;
    border: 2px solid var(--yz-border);
    border-radius: var(--yz-radius-xs);
    cursor: pointer;
    background: var(--yz-bg-input);
}

.yz-color-value {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--yz-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   Widget Preview
   ═══════════════════════════════════════════════════════════ */
.yz-widget-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--yz-bg) 100%);
    border: 1px solid var(--yz-border);
    border-radius: var(--yz-radius-sm);
    padding: 20px;
}

.yz-preview-screen {
    height: 120px;
    position: relative;
    border-radius: var(--yz-radius-xs);
    background: rgba(255,255,255,0.02);
}

.yz-preview-widget {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--yz-shadow-lg);
    transition: 0.3s;
}

.yz-preview-widget:hover {
    transform: scale(1.1);
}

.yz-preview-widget.bottom-right {
    bottom: 12px;
    right: 12px;
}

.yz-preview-widget.bottom-left {
    bottom: 12px;
    left: 12px;
}

/* ═══════════════════════════════════════════════════════════
   Settings Grid
   ═══════════════════════════════════════════════════════════ */
.yz-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.yz-settings-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.yz-divider {
    height: 1px;
    background: var(--yz-border);
    margin: 20px 0;
}

/* ═══════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════ */
.yz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--yz-radius-xs);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.yz-btn-primary {
    background: var(--yz-gradient);
    color: white;
}

.yz-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.yz-btn-secondary {
    background: var(--yz-bg-input);
    color: var(--yz-text);
    border: 1px solid var(--yz-border);
}

.yz-btn-secondary:hover {
    background: var(--yz-bg-hover);
    border-color: var(--yz-primary);
}

.yz-btn-glow {
    background: var(--yz-gradient);
    color: white;
    padding: 14px 32px;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.yz-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    color: white;
}

.yz-btn-outline {
    background: transparent;
    color: var(--yz-text);
    border: 2px solid var(--yz-border);
    padding: 12px 28px;
}

.yz-btn-outline:hover {
    border-color: var(--yz-primary);
    color: var(--yz-primary);
}

.yz-btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

.yz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   Submit Section
   ═══════════════════════════════════════════════════════════ */
.yz-submit-section {
    text-align: center;
    padding: 20px 0;
}

/* ═══════════════════════════════════════════════════════════
   Quick Links
   ═══════════════════════════════════════════════════════════ */
.yz-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.yz-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--yz-bg-card);
    border: 1px solid var(--yz-border);
    border-radius: var(--yz-radius-sm);
    transition: 0.2s;
    text-decoration: none;
}

.yz-quick-link:hover {
    border-color: var(--yz-primary);
    transform: translateY(-2px);
}

.yz-quick-icon {
    font-size: 24px;
}

.yz-quick-text strong {
    display: block;
    font-size: 14px;
    color: var(--yz-text);
}

.yz-quick-text small {
    font-size: 12px;
    color: var(--yz-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */
.yz-footer {
    text-align: center;
    padding: 24px;
    color: var(--yz-text-muted);
    font-size: 13px;
}

.yz-footer a {
    color: var(--yz-primary);
    font-weight: 500;
}

.yz-version {
    margin-top: 8px;
    font-size: 12px;
    color: var(--yz-text-dim);
}

/* ═══════════════════════════════════════════════════════════
   Collapsible Card
   ═══════════════════════════════════════════════════════════ */
.yz-card-toggle {
    cursor: pointer;
}

.yz-toggle-icon {
    color: var(--yz-text-muted);
    transition: 0.3s;
}

.yz-card-collapsed {
    display: none;
}

.yz-card-collapsible.open .yz-toggle-icon {
    transform: rotate(180deg);
}

.yz-card-collapsible.open .yz-card-collapsed {
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .yz-chatbot-admin { padding: 0 12px; }
    
    .yz-hero { padding: 24px; }
    .yz-hero-content { flex-direction: column; text-align: center; }
    .yz-hero-logo { width: 60px; height: 60px; }
    .yz-hero-text h1 { font-size: 22px; }
    
    .yz-welcome-section { padding: 24px; }
    .yz-welcome-content h2 { font-size: 20px; }
    
    .yz-card-body { padding: 20px; }
    
    .yz-settings-grid,
    .yz-settings-row {
        grid-template-columns: 1fr;
    }
    
    .yz-input-group {
        flex-direction: column;
    }
    
    .yz-cta-section {
        flex-direction: column;
    }
    
    .yz-trust-signals {
        flex-direction: column;
        gap: 8px;
    }
    
    .yz-quick-links {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   Wizard Styles
   ═══════════════════════════════════════════════════════════ */
.yz-wizard {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.yz-wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.yz-wizard-header .yz-mascot {
    margin-bottom: 16px;
}

.yz-wizard-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--yz-text);
    margin: 0 0 8px;
    background: var(--yz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yz-wizard-header p {
    font-size: 16px;
    color: var(--yz-text-muted);
    margin: 0;
}

/* Steps Indicator */
.yz-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.yz-wizard-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--yz-bg-input);
    border: 2px solid var(--yz-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.yz-wizard-step.active {
    background: var(--yz-primary);
    border-color: var(--yz-primary);
}

.yz-wizard-step.completed {
    background: var(--yz-success);
    border-color: var(--yz-success);
}

.yz-wizard-step-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--yz-text-muted);
}

.yz-wizard-step.active .yz-wizard-step-number,
.yz-wizard-step.completed .yz-wizard-step-number {
    color: white;
}

.yz-wizard-step-line {
    width: 60px;
    height: 2px;
    background: var(--yz-border);
}

/* Wizard Content */
.yz-wizard-content {
    background: var(--yz-bg-card);
    border: 1px solid var(--yz-border);
    border-radius: var(--yz-radius);
    padding: 32px;
}

/* Wizard Panels */
.yz-wizard-panel {
    display: none;
}

.yz-wizard-panel.active {
    display: block;
}

.yz-wizard-panel h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--yz-text);
    margin: 0 0 8px;
}

.yz-wizard-panel > p {
    font-size: 14px;
    color: var(--yz-text-muted);
    margin: 0 0 24px;
}

/* Form Row */
.yz-form-row {
    margin-bottom: 24px;
}

.yz-form-row:last-child {
    margin-bottom: 0;
}

.yz-form-row > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--yz-text);
    margin-bottom: 8px;
}

.yz-form-row input[type="text"],
.yz-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--yz-bg-input);
    border: 1px solid var(--yz-border);
    border-radius: var(--yz-radius-xs);
    color: var(--yz-text);
    font-size: 14px;
    transition: 0.2s;
}

.yz-form-row input[type="text"]:focus,
.yz-form-row textarea:focus {
    outline: none;
    border-color: var(--yz-primary);
    box-shadow: 0 0 0 3px var(--yz-primary-light);
}

.yz-form-row input::placeholder,
.yz-form-row textarea::placeholder {
    color: var(--yz-text-dim);
}

.yz-form-row .description {
    margin-top: 8px;
    font-size: 13px;
    color: var(--yz-text-muted);
}

.yz-form-row .description a {
    color: var(--yz-cyan);
}

/* Alert */
.yz-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--yz-radius-xs);
    margin-top: 20px;
}

.yz-alert-info {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.yz-alert .dashicons {
    color: var(--yz-cyan);
    font-size: 20px;
    margin-top: 2px;
}

.yz-alert strong {
    color: var(--yz-text);
    display: block;
    margin-bottom: 4px;
}

.yz-alert a {
    color: var(--yz-cyan);
}

/* Theme Selector */
.yz-theme-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.yz-theme-option {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    padding: 16px;
    background: var(--yz-bg-input);
    border: 2px solid var(--yz-border);
    border-radius: var(--yz-radius-sm);
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.yz-theme-option:hover {
    border-color: var(--yz-primary);
}

.yz-theme-option.selected {
    border-color: var(--yz-primary);
    background: var(--yz-primary-light);
}

.yz-theme-option input {
    display: none;
}

.yz-theme-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.yz-theme-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--yz-text);
}

/* Position Selector */
.yz-position-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.yz-position-option {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    padding: 16px;
    background: var(--yz-bg-input);
    border: 2px solid var(--yz-border);
    border-radius: var(--yz-radius-sm);
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.yz-position-option:hover {
    border-color: var(--yz-primary);
}

.yz-position-option.selected {
    border-color: var(--yz-primary);
    background: var(--yz-primary-light);
}

.yz-position-option input {
    display: none;
}

.yz-position-option .yz-position-preview {
    width: 70px;
    height: 50px;
    margin: 0 auto 8px;
    background: var(--yz-bg);
    border: 1px solid var(--yz-border);
    border-radius: 6px;
    position: relative;
}

.yz-position-option .yz-position-preview .dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--yz-primary);
    border-radius: 50%;
    bottom: 6px;
}

.yz-position-option .yz-position-preview .dot.bottom-right {
    right: 6px;
}

.yz-position-option .yz-position-preview .dot.bottom-left {
    left: 6px;
}

/* Color Picker */
.yz-color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yz-color-picker input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 2px;
    border: 2px solid var(--yz-border);
    border-radius: var(--yz-radius-xs);
    cursor: pointer;
    background: var(--yz-bg-input);
}

.yz-color-preview {
    padding: 8px 16px;
    border-radius: var(--yz-radius-xs);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: white;
}

/* Toggle */
.yz-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yz-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.yz-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.yz-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--yz-bg-input);
    border: 1px solid var(--yz-border);
    border-radius: 26px;
    transition: 0.3s;
}

.yz-toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.yz-toggle-switch input:checked + .yz-toggle-slider {
    background: var(--yz-primary);
    border-color: var(--yz-primary);
}

.yz-toggle-switch input:checked + .yz-toggle-slider:before {
    transform: translateX(22px);
}

.yz-toggle-status {
    font-size: 14px;
    font-weight: 500;
    color: var(--yz-text-muted);
}

.yz-toggle-status.active {
    color: var(--yz-success);
}

.yz-toggle-label {
    font-size: 14px;
    color: var(--yz-text-muted);
}

/* Preview Container */
.yz-preview-container {
    height: 120px;
    background: linear-gradient(135deg, #1a1a2e 0%, var(--yz-bg) 100%);
    border: 1px solid var(--yz-border);
    border-radius: var(--yz-radius-sm);
    position: relative;
}

.yz-preview-container .yz-preview-widget {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--yz-shadow-lg);
    transition: 0.3s;
}

.yz-preview-container .yz-preview-widget.bottom-right {
    bottom: 16px;
    right: 16px;
}

.yz-preview-container .yz-preview-widget.bottom-left {
    bottom: 16px;
    left: 16px;
}

/* Wizard Actions */
.yz-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--yz-border);
}

.yz-wizard-actions > div {
    display: flex;
    gap: 10px;
}

/* Wizard Responsive */
@media (max-width: 600px) {
    .yz-wizard {
        padding: 20px 10px;
    }
    
    .yz-wizard-header h1 {
        font-size: 22px;
    }
    
    .yz-wizard-content {
        padding: 20px;
    }
    
    .yz-wizard-step {
        width: 32px;
        height: 32px;
    }
    
    .yz-wizard-step-line {
        width: 30px;
    }
    
    .yz-theme-selector,
    .yz-position-selector {
        flex-direction: column;
    }
    
    .yz-theme-option,
    .yz-position-option {
        max-width: 100%;
    }
    
    .yz-wizard-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .yz-wizard-actions > div {
        width: 100%;
        justify-content: center;
    }
}


/* Wizard Success */
.yz-wizard-success {
    text-align: center;
    padding: 40px 20px;
}

.yz-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.yz-wizard-success h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--yz-text);
    margin: 0 0 12px;
}

.yz-wizard-success p {
    font-size: 16px;
    color: var(--yz-text-muted);
    margin: 0 0 24px;
}

.yz-wizard-success .yz-btn {
    margin: 0 6px;
}
