.arrow-left {
    transform: scaleX(-1);
}
/* Custom arrow icon for wizard navigation */
.custom-arrow-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('https://cdn-icons-png.flaticon.com/512/318/318476.png') no-repeat center center / contain;
    vertical-align: middle;
}

.wizard-arrow {
    /* Remove default padding for icon-only */
    padding: 0.3em 0.6em;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px; /* Match Select2 container height */
    min-height: 44px;
    margin-top: 0; /* Align with selector, not modifiers */
    align-self: flex-start; /* Stick to top of flex container */
}
/* Hide invisible wizard arrows */
.wizard-arrow.invisible {
    visibility: hidden;
}

/* Spacer to balance layout when only one arrow is present */
.wizard-arrow-spacer {
    visibility: hidden;
    pointer-events: none;
}

/* Inline Modifiers Styling */
.modifiers-inline {
    margin: 20px auto 0 auto; /* Center with auto margins */
    display: none; /* Hidden by default, shown when modifiers available */
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: min(480px, 90vw); /* Responsive width - smaller of 480px or 90% viewport */
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-sizing: border-box; /* Include padding in width calculation */
}

.modifiers-inline.visible {
    display: flex;
}

/* Responsive adjustments for small screens */
@media (max-width: 600px) {
    .modifiers-inline {
        max-width: 95vw; /* Even more space on small screens */
        padding: 15px;
        margin: 15px auto 0 auto;
    }
    
    .wizard-step.active {
        gap: 0.5em; /* Smaller gap on mobile */
        padding: 0 10px; /* Add padding to prevent edge touching */
        align-items: flex-start; /* Keep arrows aligned with selector */
    }
    
    .selector-wrapper {
        padding: 0 5px; /* Prevent edge touching */
    }
    
    .wizard-arrow {
        margin-top: 0; /* Keep arrows aligned with selector on mobile */
    }
}

.modifier-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.modifier-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    text-transform: capitalize;
    margin-bottom: 8px;
    text-align: left;
}

.modifier-slider-container {
    position: relative;
    width: 100%;
}

.modifier-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
}

.modifier-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.modifier-slider::-webkit-slider-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.modifier-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.modifier-slider::-moz-range-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.modifier-value {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
}

.modifier-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 9px;
}

.modifier-step {
    width: 2px;
    height: 8px;
    background: #ccc;
    border-radius: 1px;
}

.modifier-step.active {
    background: #007bff;
}
/* Wizard stepper fade animation */
.wizard-step,
#demo-preview {
    opacity: 1;
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1);
}
.wizard-step.fade-out,
#demo-preview.fade-out {
    opacity: 0;
    pointer-events: none;
}
.wizard-step.fade-in,
#demo-preview.fade-in {
    opacity: 1;
}
/* Wizard stepper styles */
.wizard-step {
    display: none;
    margin: 1.5em 0 1em 0;
}
.wizard-step.active {
    display: flex;
    align-items: flex-start; /* Align to top, let selector group center itself */
    justify-content: center;
    gap: 1em;
    width: 100%; /* Ensure full width for proper centering */
}
#demo-preview {
    margin: 2em 0 1em 0;
    display: none;
    text-align: center;
}
#demo-preview.active {
    display: flex;
    justify-content: center;
}

/* Black background container for demo models to ensure visibility during fade effects */
.bg-preview {
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    border: 2px dashed #0b0b0b;
}

.panel-left .display {
    font-size: 2.8rem;
}
@media (max-width: 900px) {
    .panel-inner, .right-inner {
        padding: 24px;
        width: 100vw;
        box-sizing: border-box;
    }
    .panel-left .display {
        font-size: 2.1rem;
    }
    .split-grid {
        align-items: flex-start;
    }
    .panel-left {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
    .panel-right {
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
}
@media (max-width: 600px) {
    .panel-inner, .right-inner {
        padding: 10px;
        width: 100vw;
        box-sizing: border-box;
    }
    .panel-left .display {
        font-size: 1.4rem;
    }
    .panel-left {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
    .panel-right {
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
}
/* Code block wrapper and toolbar */
.demo-code-block-wrapper {
    margin-top: 1.2em;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #0b0b0b;
    box-sizing: border-box;
}
.demo-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2em 0.7em 0.2em 0.7em;
    background: #0b0b0b;
    border: 1px solid #0b0b0b;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    min-width: 0;
    margin: 0;
}
.demo-code-lang {
    font-size: 0.97em;
    font-weight: 600;
    color: #f7c873;
    letter-spacing: 0.5px;
    background: #0b0b0b;
    border-radius: 4px;
    padding: 2px 10px;
    border: 1px solid #0b0b0b;
    margin-right: 0.5em;
}
#copy-code-btn {
    padding: 4px 14px;
    font-size: 0.97em;
    cursor: pointer;
    z-index: 2;
    background: #0b0b0b;
    color: #f7c873;
    border: 1px solid #0b0b0b;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
#copy-code-btn:hover, #copy-code-btn:focus {
    background: #f7c873;
    color: #0b0b0b;
}
.demo-code-block {
    background: #0b0b0b;
    color: #fff;
    padding: 1em;
    border-radius: 0 0 0 0;
    border: 1px solid #0b0b0b;
    border-top: none;
    overflow-x: auto;
    width: 100%;
    margin: 0;
    font-size: 1em;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    scrollbar-width: thin;
    scrollbar-color: #3d3d3d #0b0b0b;
    box-sizing: border-box;
    max-height: 320px;
    overflow-y: auto;
}
/* Responsive code block */
@media (max-width: 600px) {
    .right-inner {
        padding: 18px;
        max-width: 100%;
    }
    .demo-code-block, .demo-code-toolbar, .demo-code-block-wrapper {
        font-size: 0.95em;
        padding-left: 0.2em;
        padding-right: 0.2em;
    }
}
/* Custom scrollbar for code block */
.demo-code-block::-webkit-scrollbar {
    height: 8px;
    background: #0b0b0b;
    border-radius: 0 0 8px 8px;
}
.demo-code-block::-webkit-scrollbar-thumb {
    background: #0b0b0b;
    border-radius: 0 0 8px 8px;
    min-width: 8px;
    min-height: 8px;
    border: 2px solid #0b0b0b;
}
.panel-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.panel-right img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    transition: all .3s;
}
/* Wizard selector styling */
.selector-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to top */
    flex: 1;
    width: auto; /* Auto width for flexible centering */
    max-width: 100%; /* Full width available */
    margin: 0 auto;
    flex-direction: column; /* Stack selector and modifiers vertically */
    gap: 0; /* No gap initially, modifiers will add margin-top */
}

.effect-selector {
    display: block;
    margin: 0 auto 0 auto;
    font-size: 0.98rem;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #e1e5e9;
    background: white;
    color: #333;
    outline: none;
    width: min(300px, 80vw); /* Responsive width */
    max-width: 300px;
    text-align: center;
    min-height: 44px;
    box-sizing: border-box; /* Include padding in width */
}
.install-snippet {
    display: inline-block;
    background: #fffbe6;
    color: #0b0b0b;
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 0.95rem;
    padding: 0.35em 0.8em;
    border-radius: 0.5em;
    margin: 10px 0 0 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #ffe97a;
}
.btn-npm {
    background: #ffd84a;
    color: #0b0b0b;
    border: 2px solid #ffd84a;
}
.btn-npm:hover, .btn-npm:focus {
    background: #ffe97a;
    color: #222;
    border-color: #ffe97a;
}
/* Mocassin-style buttons for left panel actions */
.panel-actions {
    margin:32px 0 0;
    display: flex;
    gap: 18px;
    justify-content: center;
}
.btn {
    display:inline-block;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight:700;
    font-size:0.85rem;
    padding:0.28em 0.7em;
    border-radius:0.7em;
    border:none;
    text-decoration:none;
    cursor:pointer;
    transition:background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    outline:none;
}
.btn-download {
    background:#ffd84a;
    color:#0b0b0b;
}
.btn-download:hover, .btn-download:focus {
    background:#ffe97a;
    color:#222;
}
.btn-github {
    background:#0b0b0b;
    color:#ffd84a;
    border:2px solid #ffd84a;
}
.btn-github:hover, .btn-github:focus {
    background:#222;
    color:#ffe97a;
    border-color:#ffe97a;
}
:root{
    --phi: 1.61803398875;
    --small: 38.2%; /* golden ratio small column */
    --large: 61.8%; /* golden ratio large column */
    --max-width: 1100px;
    --bg: #ffd84a;
    --panel: #ffffff;
    --muted: #6b6b6b;
}

/* Base page */
body{
    margin:0;
    padding:0px;
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--bg);
    color: #1b1b1b;
    line-height:1.6;
}

.wrap{
    max-width:var(--max-width);
    margin:0 auto;
    padding:0 18px;
}

.site-header{
    text-align:center;
    margin-bottom:28px;
}
.site-header h1{ margin:0; font-size:2rem; }
.site-header .tagline{ margin:6px 0 0; color:var(--muted); font-size:0.95rem; }

/* Golden-ratio two-column layout */
.container{
    display:grid;
    grid-template-columns: 38.2% 1fr; /* keep the small column close to golden ratio */
    gap:32px;
    align-items:start;
    margin-bottom:28px;
}

.sidebar{
    background:var(--panel);
    padding:22px;
    border-radius:8px;
    box-shadow:0 1px 0 rgba(0,0,0,0.04);
}
.sidebar h2{ margin-top:0; font-size:1.1rem; }
.sidebar nav ul{ padding-left:1rem; margin:0; }
.sidebar nav a{ color:#0a58ca; text-decoration:none; }

.main{
    background:var(--panel);
    padding:22px;
    border-radius:8px;
    box-shadow:0 1px 0 rgba(0,0,0,0.04);
}

.demo-item{ margin-bottom:20px; }
.demo-box{
    border:1px solid #eee;
    padding:18px;
    border-radius:6px;
    transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease;
    background:linear-gradient(180deg, #fff, #fbfbfb);
}
.demo-box:hover{ transform:translateY(-6px); box-shadow:0 10px 20px rgba(0,0,0,0.06); }

.footer{ color:var(--muted); font-size:0.95rem; padding:20px 0 40px; }

/* Responsive: stack columns on smaller screens */
@media (max-width: 900px) {
    .split-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .panel-left { order: 1; }
    .panel-right { order: 2; }
    .right-inner {
        max-width: 98vw;
    }
}

/* Responsive: stack columns on small viewports */
@media (max-width: 860px){
    .container{ grid-template-columns: 1fr; }
    .sidebar{ order:2; }
    .main{ order:1; }
}

/* Small polish */
h2{ font-family: 'Helvetica Neue', Arial, sans-serif; margin-top:0; }
p{ margin:0 0 12px; }

/* Full viewport golden-ratio split; left black panel, right yellow panel */
html,body{ height:100%; }
.split-grid{
    min-height:100vh;
    display:grid;
    grid-template-columns: 38.2% 61.8%;
}
.panel{ display:flex; align-items:center; }
.panel-inner {
    padding: 48px;
    width: 100%;
    box-sizing: border-box;
}

/* Right panel inner: center and responsive */
.right-inner {
    padding: 56px;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Left (black) */
.panel-left{ background:#0b0b0b; color:#fff; text-align:center; }
.panel-left .display {
    font-family: 'Georgia', serif;
    line-height: 0.95;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
    /* Responsive font-size only via media queries */
}
.panel-left .lead{
    color:#e6e6e6;
    font-size:0.98rem;
    font-style:italic;
    font-family: Georgia, 'Times New Roman', serif;
    margin:0 0 14px;
}
.panel-left .credit{ color:#cfcfcf; font-size:0.9rem; margin-top:8px; }

/* Right (yellow) */
.panel-right{ background:#ffd84a; color:#0b0b0b; }
.panel-right h2{ font-family: 'Helvetica Neue', Arial, sans-serif; margin-top:0; }
.muted{ color:rgba(11,11,11,0.6); }

.examples{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:18px; margin-top:18px; }
.demo-box{ background: #fff; border: none; padding:18px; border-radius:8px; box-shadow: 0 6px 18px rgba(11,11,11,0.08); }

/* Responsive stack: left panel becomes top on small screens */
@media (max-width:880px){
    .panel-left .display{ font-size:2.1rem; }
}
@media (max-width:900px){
    .split-grid{ grid-template-columns: 1fr; grid-auto-rows: auto; }
    .panel-left{ order:1; }
    .panel-right{ order:2; }
}

/* Select2 Custom Styling */
.select2-container {
    margin-bottom: 0; /* Remove bottom margin for better alignment */
    width: 300px !important; /* Fixed width for all Select2 containers */
}

.select2-container--default .select2-selection--single {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 8px 12px;
    height: auto;
    min-height: 44px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #b3d4fc;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 1.4;
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #a0a4a8;
    font-style: italic;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 12px;
}

.select2-dropdown {
    border: 2px solid #007cba;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
}

.select2-container--default .select2-results__option {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
}

.select2-container--default .select2-results__option--highlighted {
    background: #f0f8ff;
    color: #333;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #007cba;
    color: white;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    margin: 8px;
    width: calc(100% - 16px);
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Optgroup styling for Select2 */
.select2-results__group {
    background: #f8f9fa;
    color: #007cba;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px 4px 14px;
    border-bottom: 1px solid #e1e5e9;
    margin: 0;
}

.select2-container--default .select2-results__option[role="group"] {
    padding: 0;
}

.select2-container--default .select2-results__option[aria-selected] .select2-results__option {
    padding-left: 20px;
}

.select2-container--default .select2-results__option--selectable {
    padding: 10px 14px;
}

/* Simple Solid Button Styling for Demo Examples - No Effects */
.my-btn {
    /* Reset default button styles */
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Brand colors - black background with yellow accent */
    background: #0b0b0b;
    color: #f7c873;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    border: 1px solid #ffd84a;
    
    /* Spacing and shape */
    padding: 12px 24px;
    border-radius: 8px;
    min-width: 120px;
    
    /* No transitions or effects - let Manyang.css handle the effects */
    transition: none;
    transform: none;
    box-shadow: none;
}

/* Only basic focus for accessibility */
.my-btn:focus {
    outline: 2px solid #f7c873;
    outline-offset: 2px;
}

/* .my-btn::before{
    background: #ffd84a !important;
}

.my-btn::after{
    border: 1px dashed black !important;
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: inherit;
    transition: none;
    z-index: 1;
    pointer-events: none;
} */


/* Simple solid styles for other elements too */
.my-img {
    border-radius: 8px;
    max-width: 200px;
    height: auto;
    border: 2px solid #f7c873;
    /* No effects - let Manyang.css handle animations */
    transition: none;
    transform: none;
    box-shadow: none;
}

.my-text {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #0b0b0b;
    padding: 8px 16px;
    /* No transitions - let Manyang.css handle effects */
    transition: none;
}

.my-icon {
    font-size: 24px;
    color: #f7c873;
    display: inline-block;
    /* No transitions or transforms - let Manyang.css handle effects */
    transition: none;
    transform: none;
}

.my-example-box {
    background: #0b0b0b;
    color: #f7c873;
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    min-width: 150px;
    border: 1px solid #f7c873;
    /* No effects - let Manyang.css provide the animations */
    transition: none;
    transform: none;
    box-shadow: none;
}