/* ── VlagOnline Editor – Wizard stylesheet ──────────────────────────────────── */

/* ── Body scroll lock ───────────────────────────────────────────────────────── */
body.vlo-no-scroll { overflow: hidden; }

/* ── Productpagina: Ontwerpen-knop ──────────────────────────────────────────── */
.vlo-product-editor-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.vlo-ontwerpen-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #009fe3;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.vlo-ontwerpen-btn:hover { background: #007bb5; }
.vlo-design-status {
    font-size: 0.875rem;
    color: #2d6a4f;
    font-weight: 600;
}

/* ── Overlay ────────────────────────────────────────────────────────────────── */
.vlo-wizard-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #fff;
}
.vlo-wizard-overlay.vlo-overlay--visible {
    display: flex;
    flex-direction: column;
}
.vlo-wizard-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.vlo-wizard-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    height: 60px;
    background: #009fe3;
    color: #fff;
    border-bottom: 2px solid #007bb5;
}
.vlo-wizard-brand {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}
.vlo-wizard-steps {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
    overflow: hidden;
}
.vlo-step-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    transition: color 0.2s;
}
.vlo-step-indicator.vlo-step--active  { color: #fff; font-weight: 700; }
.vlo-step-indicator.vlo-step--done    { color: rgba(255,255,255,0.85); }
.vlo-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 0.2s, border-color 0.2s;
}
.vlo-step--active  .vlo-step-num { background: #007bb5; border-color: #007bb5; color: #fff; }
.vlo-step--done    .vlo-step-num { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }
.vlo-step-connector {
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
    margin: 0 4px;
    transition: background 0.2s;
}
.vlo-step-connector.vlo-connector--done { background: rgba(255,255,255,0.7); }
.vlo-wizard-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
    margin: unset;
}
.vlo-wizard-close:hover { color: #fff; }

/* ── Body (scrollable steps 1/2/4) ──────────────────────────────────────────── */
.vlo-wizard-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
}
/* Canvas step: no scroll, flex column */
.vlo-wizard-body--canvas {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.vlo-wizard-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
}
.vlo-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.vlo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vlo-btn--secondary { background: #e8e8e8; color: #333; border: 1px solid #bbb; }
.vlo-btn--secondary:hover:not(:disabled) { background: #d4d4d4; }
.vlo-btn--primary { background: #009fe3; color: #fff; }
.vlo-btn--primary:hover:not(:disabled)   { background: #007bb5; }
.vlo-btn--success { background: #007bb5; color: #fff; }
.vlo-btn--success:hover:not(:disabled)   { background: #007bb5; }

/* ── Shared step content ────────────────────────────────────────────────────── */
.vlo-step-section { margin-bottom: 36px; }
.vlo-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #009fe3;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bb5;
    display: inline-block;
}

/* ── Tiles (step 1) ──────────────────────────────────────────────────────────── */
.vlo-tile-grid {
    display: grid;
    grid-template-columns: repeat( 4, 1fr );
    gap: 12px;
}
.vlo-tile-grid--small { grid-template-columns: repeat( 5, 1fr ); }
.vlo-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    text-align: center;
}
.vlo-tile:hover { border-color: #009fe3; background: #f0f4f8; }
.vlo-tile--selected {
    border-color: #007bb5;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}
.vlo-tile-icon  { font-size: 1.6rem; }
.vlo-tile-label { font-size: 0.82rem; font-weight: 600; color: #333; }
.vlo-tile--formaat .vlo-tile-label { font-size: 0.78rem; }

/* ── Material cards (step 2) ────────────────────────────────────────────────── */
.vlo-card-list { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.vlo-material-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}
.vlo-material-card:hover { border-color: #009fe3; background: #f0f4f8; }
.vlo-material-card.vlo-card--selected {
    border-color: #007bb5;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}
.vlo-card-title { font-size: 1rem; color: #009fe3; }
.vlo-card-desc  { font-size: 0.82rem; color: #666; }

/* ── Richting cards (step 2) ────────────────────────────────────────────────── */
.vlo-richting-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.vlo-richting-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.vlo-richting-card:hover { border-color: #009fe3; background: #f0f4f8; }
.vlo-richting-card.vlo-card--selected {
    border-color: #007bb5;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}
.vlo-richting-visual {
    display: flex;
    align-items: stretch;
    height: 64px;
    gap: 0;
}
.vlo-richting-pole {
    width: 10px;
    background: #555;
    border-radius: 2px;
}
.vlo-richting-flag {
    width: 52px;
    height: 64px;
    background: #007bb5;
    border-radius: 0 4px 4px 0;
}
.vlo-richting-links .vlo-richting-flag  { border-radius: 4px 0 0 4px; }
.vlo-richting-label { font-size: 0.9rem; font-weight: 600; color: #333; }

/* ── Canvas step ────────────────────────────────────────────────────────────── */
.vlo-canvas-toolbar {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
    padding: 6px 12px;
    min-height: 42px;
    justify-content: center;
}
.vlo-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.vlo-toolbar-row * {
    margin: unset;
}
#vlo-text-tools {
    display: none;
    align-items: center;
    gap: 6px;
}
.vlo-toolbar-hint {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    padding: 2px 0;
}
.vlo-toolbar-sep {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #ccc;
    margin: 0 2px;
    vertical-align: middle;
}
.vlo-toolbar-btn {
    padding: 0 8px;
    height: 28px;
    box-sizing: border-box;
    font-size: 0.85rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    transition: background 0.1s;
    line-height: 26px;
}
.vlo-toolbar-btn:hover:not(:disabled)   { background: #e8e8e8; }
.vlo-toolbar-btn--active                { background: #009fe3; color: #fff; border-color: #009fe3; }
.vlo-btn-bold      { font-weight: 700; }
.vlo-btn-italic    { font-style: italic; }
.vlo-btn-underline { text-decoration: underline; }
.vlo-btn-danger    { border-color: #007bb5; color: #007bb5; }
.vlo-btn-danger:hover { background: #fff5f5; }
.vlo-toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #444;
    white-space: nowrap;
}
.vlo-select {
    padding: 0 6px;
    height: 28px;
    box-sizing: border-box;
    font-size: 0.8rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    color: #333;
}
.vlo-input {
    padding: 0 6px;
    height: 28px;
    box-sizing: border-box;
    font-size: 0.8rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    color: #333;
}
.vlo-input--xs { width: 60px; }
.vlo-range     { width: 80px; accent-color: #009fe3; margin: unset; }
.vlo-color     {
    padding: 2px;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 3px;
    cursor: pointer;
    background: none;
}

/* Canvas body: main area + sidebar */
.vlo-canvas-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}
.vlo-canvas-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #b0b0b0;
}
.vlo-canvas-area .canvas-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}
.vlo-canvas-area canvas { display: block; }
.vlo-canvas-sidebar {
    flex: 0 0 240px;
    overflow-y: auto;
    border-left: 1px solid #ddd;
    background: #fff;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vlo-sidebar-btn {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fafafa;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    margin: unset;
}
.vlo-sidebar-btn:hover { background: #f0f0f0; }
.vlo-sidebar-hr    { border: none; border-top: 1px solid #eee; margin: 4px 0; }
.vlo-sidebar-title { font-size: 0.8rem; font-weight: 700; color: #555; margin: 0; text-transform: uppercase; letter-spacing: 0.05em; }

/* Layer list */
.vlo-layer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.vlo-layer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    background: #fafafa;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.1s;
}
.vlo-layer-item:hover { background: #f0f4f8; }
.vlo-layer--active    { background: #eef2ff; border-color: #009fe3; }
.vlo-layer-handle { color: #aaa; font-size: 0.9rem; flex-shrink: 0; cursor: grab; }
.vlo-layer-handle:active { cursor: grabbing; }
.vlo-layer--dragging   { opacity: 0.4; }
.vlo-layer--drop-above { border-top: 2px solid #009fe3; }
.vlo-layer--drop-below { border-bottom: 2px solid #009fe3; }
.vlo-layer-name   { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.vlo-layer-del    {
    flex-shrink: 0;
    padding: 0 5px;
    font-size: 0.9rem;
    border: none;
    background: none;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.vlo-layer-del:hover { color: #007bb5; }
.vlo-scale-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
}
.vlo-scale-down { background: #d4edda; color: #1a6630; }
.vlo-scale-up   { background: #fff3cd; color: #856404; }

/* ── Step 4: Preview ────────────────────────────────────────────────────────── */
.vlo-preview-wrap {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.vlo-preview-meta { flex: 0 0 220px; }
.vlo-meta-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: 0.9rem;
    margin: 0;
}
.vlo-meta-list dt { font-weight: 700; color: #555; }
.vlo-meta-list dd { color: #222; margin: 0; }
.vlo-preview-img-wrap { flex: 1; min-width: 200px; }
.vlo-preview-img {
    max-width: 100%;
    max-height: 60vh;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: block;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media ( max-width: 700px ) {
    .vlo-wizard-header { gap: 8px; padding: 0 12px; }
    .vlo-step-label    { display: none; }
    .vlo-wizard-body   { padding: 16px; }
    .vlo-tile-grid     { grid-template-columns: repeat( 2, 1fr ); }
    .vlo-tile-grid--small { grid-template-columns: repeat( 3, 1fr ); }
    .vlo-canvas-sidebar { flex: 0 0 160px; padding: 8px; }
    .vlo-toolbar-row   { gap: 4px; }
    .vlo-range         { width: 60px; }
    .vlo-wizard-footer { padding: 8px 12px; }
}
