/* ==========================================================================
   1. APP RESET & HOOFD LAYOUT
   ========================================================================== */

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden; 
    scrollbar-gutter: stable;
}

.tekentool-app-body {
    background-color: #f0f2f5;
}

#vbm-tekentool-app {
    display: flex;
    flex-direction: column; 
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* De container onder de header */
.vbm-tool-main-layout {
    display: flex;
    flex: 1; 
    overflow: hidden;
    position: relative;
}

/* NIEUW: Rechter kolom wrapper voor Canvas + Footer */
.vbm-right-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Container voor het canvas middengebied */
.vbm-tool-main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e5e7eb;
}

/* ==========================================================================
   2. OVERLAY - START DASHBOARD (Templates & Mijn Ontwerpen)
   ========================================================================== */

/* Verberg het sneltoetsen-icoon standaard op desktop */
.wmstek-shortcut-icon {
    display: none;
}

.preview-box {
    background-color: #6d90be !important;
}

/* De hoofdcontainer die het hele scherm dekt - Standaard verborgen */
.wmstek-start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999; 
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

/* Geforceerde actieve status via JavaScript klasse */
.wmstek-start-overlay.active {
    display: flex !important;
}

/* Het witte dashboard paneel zelf */
.wmstek-start-modal {
    background: #fff;
    width: 95%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Header binnen de modal */
.wmstek-dashboard-header {
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 25px;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    position: relative;
}

#wmstek-dashboard-title {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

/* Handmatige sluitknop (kruisje) rechts in de dashboard header */
.wmstek-dashboard-header .wmstek-close-modal {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: #666;
    line-height: 1;
    transition: color 0.2s ease;
}

.wmstek-dashboard-header .wmstek-close-modal:hover {
    color: #ff3b30 !important;
}

/* Tabs navigatie */
.wmstek-dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-right: 40px; /* Ruimte reserveren zodat tabs niet over de sluitknop lopen */
}

.wmstek-tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f0f2f5;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.wmstek-tab-btn i {
    margin-right: 8px;
}

.wmstek-tab-btn:hover {
    background: #e4e6e9;
}

.wmstek-tab-btn.active {
    background: #0090e3;
    color: white;
}

/* Content gebied (scrollbaar) */
.wmstek-dashboard-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.wmstek-tab-content {
    display: none !important;
    animation: fadeIn 0.3s ease forwards;
}

.wmstek-tab-content.active {
    display: block !important;
}

/* Tekst voor als er nog geen ontwerpen zijn opgeslagen */
#dashboard-no-designs {
    display: none;
    color: #999;
    margin-top: 40px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   GRID STYLING (Geforceerd 3 kolommen)
   -------------------------------------------------------------------------- */

/* Grid voor Templates (gebruikt sidebar classes) */
.wmstek-dashboard-content .wmstek-flyout-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Exact 3 kolommen */
    gap: 15px !important;
    padding: 10px !important;
}

/* Grid voor 'Mijn Ontwerpen' */
.wmstek-start-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Exact 3 kolommen */
    gap: 20px;
    padding: 10px 0;
}

/* --------------------------------------------------------------------------
   ITEM STYLING (Templates/Velden)
   -------------------------------------------------------------------------- */

/* Overwrite voor sidebar items binnen het dashboard grid */
.wmstek-dashboard-content .wmstek-material-item.wmstek-material-grid-item {
    width: 100% !important;
    min-height: 160px !important; 
    max-height: 230px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
    cursor: pointer;
    transition: none;
}

.wmstek-dashboard-content .wmstek-material-item:hover {
    border-color: #0090e3;
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* De div-previews (de CSS-tekeningen met linear-gradients uit de sidebar) */
.wmstek-dashboard-content .wmstek-material-item > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 130px;
    border-radius: 4px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   STYLING VOOR 'MIJN ONTWERPEN' KAARTEN
   -------------------------------------------------------------------------- */

.wmstek-start-item {
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.wmstek-start-item:hover {
    border-color: #0090e3;
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wmstek-start-item .preview-box {
    width: 100%;
    flex-grow: 1;
    aspect-ratio: 16/10; 
    background: #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.wmstek-start-item span {
    font-weight: 600;
    font-size: 14px;
    color: #444;
    display: block;
    margin-top: auto;
}

/* Delete knop op design kaarten */
.delete-design-btn {
    transition: transform 0.2s;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
}

.delete-design-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 0.9) !important;
}

/* Beheerder Hartje Hover Effect */
.admin-heart-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 0.9) !important;
}

/* Animaties */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loader voor AJAX */
.loader {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* ==========================================================================
   2. CUSTOM HEADER (Blauwe bovenbalk)
   ========================================================================== */

.wmstek-header {
    height: 60px;
    background: #0090e3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    z-index: 1001;
    flex-shrink: 0;
}

.wmstek-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wmstek-header-title {
    font-weight: 700;
    font-size: 16px;
}

.wmstek-icon-btn {
	align-items: center;
    cursor: pointer;
    font-size: 20px;
    display: flex;
}

.wmstek-download-btn {
    background: white;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.wmstek-download-btn:hover {
    background: #f0f0f0;
}

/* --- MULTI-STEP DOWNLOAD POPUP STYLING --- */
.wmstek-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wmstek-radio-group.inline {
    flex-direction: row;
    gap: 15px;
}
.wmstek-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.wmstek-radio-group input[type="radio"] {
    margin: 0;
    cursor: pointer;
}
.wmstek-btn-primary {
    background-color: #1b8a3b;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.wmstek-btn-primary:hover { background-color: #146b2d; }
.wmstek-btn-secondary {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.wmstek-btn-secondary:hover { background-color: #ccc; }
#download-names-container::-webkit-scrollbar { width: 6px; }
#download-names-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* ==========================================================================
   MIJN ONTWERPEN POPUP - STRUCTUUR EN LAYOUT (Uitgelijnd naar links)
   ========================================================================== */

.wmstek-dashboard-header.wmstek-my-designs-popup-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Forceert alles strak naar links */
    gap: 20px; /* Ruimte tussen de titel en de bulk-knop */
}

#wmstek-my-designs-title {
    margin: 0;
}

.wmstek-bulk-delete-btn {
    display: flex; /* Standaard flex-lay-out voor icoon + tekst */
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.1s;
}

/* Bulletproof verbergen via deze specifieke klasse */
.wmstek-bulk-delete-btn.wmstek-js-hidden {
    display: none !important;
}

.wmstek-bulk-delete-btn:hover {
    background: #b91c1c;
}

.wmstek-bulk-delete-btn:active {
    transform: scale(0.97);
}

.wmstek-my-designs-popup-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%); /* Zorgt dat het kruisje perfect gecentreerd rechts blijft */
    cursor: pointer;
    font-size: 24px;
    color: #666;
    line-height: 1;
}

.wmstek-my-designs-popup-empty {
    display: none; 
    color: #999;
    margin-top: 40px;
    text-align: center;
}


/* ==========================================================================
   3D CHECKBOX DESIGN - BLAUW (#0090e3) MET VINKJE
   ========================================================================== */

.design-bulk-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; 
    
    width: 22px;
    height: 22px;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    cursor: pointer;
    
    background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 100%);
    border: 1px solid #bdaeae;
    border-radius: 5px;
    
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.2), 
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 2px rgba(0,0,0,0.05);
    
    transition: all 0.15s ease-in-out;
}

.design-bulk-checkbox:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-color: #999;
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.25), 
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.design-bulk-checkbox:checked {
    background-color: #0090e3;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
    
    border-color: #006b9e;
    
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.1), 
        inset 0 2px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
   3. SIDEBAR (Loopt nu door tot onderaan)
   ========================================================================== */

.wmstek-sidebar {
    width: 75px;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    z-index: 99999 !important;
    height: 100%;
    flex-shrink: 0;
}

.wmstek-sidebar-item {
    width: 58px;
    height: 58px;
    background: white;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wmstek-sidebar-item i, 
.wmstek-sidebar-item .dashicons {
    font-size: 18px;
    color: #333;
    margin-bottom: 2px;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wmstek-sidebar-item .label {
    font-size: 9px;
    font-weight: 600;
    color: #444;
    text-align: center;
    white-space: nowrap;
}

.wmstek-sidebar-item.active .label {
	color: #fff;
}

.wmstek-sidebar-item:hover {
    border: 2px solid #0a0a38;
    background: #fff;
}

.wmstek-sidebar-item.active {
	color: #fff;
    background: #0090e3;
    border-color: #0090e3;
    border-width: 1.5px;
}

.wmstek-sidebar-spacer {
    flex: 1;
}

.wmstek-sidebar-item i.fa-solid, 
.wmstek-sidebar-item i.fa-regular {
    line-height: 1;
}

/* ==========================================================================
   4. OPENKLAPPENDE PANELEN & ACCORDIONS
   ========================================================================== */

.wmstek-side-panel {
    position: absolute;
    left: 75px;
    top: 0;
    bottom: 0;
    width: 300px;
    background: white;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    z-index: 99998;
    pointer-events: none;
    display: none; 
    padding: 20px;
    border-right: 1px solid #eee;
    overflow-x: hidden; 
    overflow-y: auto;
    box-sizing: border-box;
    will-change: transform, opacity;
}

.wmstek-side-panel.active {
    display: flex;
    flex-direction: column;
    pointer-events: all;
}

.wmstek-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.wmstek-panel-title {
    font-weight: bold;
    font-size: 18px;
    color: #111827;
}

.wmstek-close-panel {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #999;
    transition: color 0.2s;
}

.wmstek-close-panel:hover {
    color: #000;
}

.wmstek-panel-scroll-area {
    height: calc(100% - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px 2px;
    scrollbar-gutter: stable; 
}

.wmstek-accordion-item {
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s ease;
    will-change: max-height;
    backface-visibility: hidden;
}

.wmstek-accordion-header {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.wmstek-accordion-header:hover {
    background-color: #f9fafb;
}

.wmstek-accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wmstek-sub-cat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.wmstek-accordion-title-wrap .dashicons {
    display: none;
}

.wmstek-sub-title {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.wmstek-accordion-header .arrow {
    font-size: 18px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.wmstek-accordion-item.open .arrow {
    transform: rotate(180deg);
}

.wmstek-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: none;
    overflow: hidden;
    padding: 0 10px;
    visibility: hidden;
    will-change: grid-template-rows;
}

.wmstek-accordion-item.open .wmstek-accordion-content {
    grid-template-rows: 1fr;
    padding: 10px;
    border-top: 1px solid #f3f4f6;
    visibility: visible;
}

.wmstek-accordion-content > div {
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.wmstek-flyout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.wmstek-flyout-grid p {
    margin: 10px 0;
    font-style: italic;
    text-align: center;
    width: 100%;
    grid-column: span 2;
    font-size: 11px;
    color: #999;
}

.wmstek-material-item {
    aspect-ratio: 1 / 1;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    padding: 10px;
    transition: all 0.2s ease;
}

.wmstek-material-item:hover {
    border-color: #0090e3;
    background: #f0f9ff;
}

.wmstek-material-item.active {
    border-color: #0090e3;
    background: #f0f9ff;
    border-width: 1.5px;
}

.wmstek-material-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* --- Specifieke stijl voor Tekst Preview knoppen in zijpaneel --- */
.wmstek-text-preview-btn {
    background: #f8f9fa; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    padding: 15px 20px; 
    margin-bottom: 12px;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start;
    transition: all 0.2s ease;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.wmstek-text-preview-btn:hover {
    background: #f0f9ff;
    border-color: #0090e3;
    transform: translateX(2px);
}

.wmstek-text-preview-btn h1 {
    margin: 0;
    font-size: 24px;
    color: #111827;
    font-weight: 800;
}

.wmstek-text-preview-btn h3 {
    margin: 0;
    font-size: 18px;
    color: #374151;
    font-weight: 700;
}

.wmstek-text-preview-btn p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

/* --- NUMMERS SECTIE (SIDEBAR) --- */
.wmstek-number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.wmstek-number-shape {
    width: 50px; 
    height: 50px; 
    flex: 0 0 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 24px;   
    max-width: 100%;
}

/* Vormen */
.wmstek-number-shape.circle { border-radius: 50%; }
.wmstek-number-shape.triangle { 
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    padding-top: 8px; /* Correctie voor driehoek-vorm */
}

/* Kleuren */
.wmstek-number-shape.black { background-color: #000; }
.wmstek-number-shape.red { background-color: #ff0000; }

/* Counter Controls */
.wmstek-number-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #eef2f6; 
    padding: 4px 6px;
    border-radius: 4px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.wmstek-number-controls .num-btn {
    border: none;
    background: #2c3e50;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 2px;
}

.wmstek-number-controls .num-val {
    font-size: 14px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    background: white;
    padding: 2px 5px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
}

.wmstek-number-item.active {
    border: 2px solid #0090e3 !important;
    background: #f0f9ff !important;
}

/* ==========================================================================
   5. CANVAS & VIEWPORT (Middengebied)
   ========================================================================== */

.wmstek-canvas-viewport {
    width: 100%;
    height: 100%;
    overflow: auto;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    touch-action: none;
}

#wmstek-resizer {
    transform-origin: center center;
    transform: scale(0.5); 
    transition: none; 
}

#vbm-main-canvas {
    background: #6d90be !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    cursor: default;
    display: block;
    shape-rendering: crispEdges;
    touch-action: none;
}

/* NIEUW: Veldlijnen styling (Hele en Halve velden) */
#canvas-field-lines {
    pointer-events: none; 
    display: block !important;
    visibility: visible !important;
}

#canvas-field-lines use,
#vbm-main-canvas symbol g {
    stroke: #ffffff !important;
    stroke-width: 8px;
    fill: none;
}

#wmstek-dropzone {
    position: relative; 
    width: 1420px; 
    height: 1190px; 
    pointer-events: auto;
}

#vbm-main-canvas {
    position: absolute; 
    top: 0; 
    left: 0; 
    pointer-events: none; 
    z-index: 1;
}

#wmstek-drawing-canvas {
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 10; 
    pointer-events: none;
    image-rendering: auto !important;
}

/* ==========================================================================
   6. PLACED ELEMENTS (Items op het veld) - VOLLEDIGE CONFIGURATIE
   ========================================================================== */

/* De container om het element en de handles */
.wmstek-placed-item {
    position: absolute;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    overflow: visible; 
    border: 2px solid transparent; 
    min-width: 5px;
    min-height: 5px;
    z-index: 10;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.draggable-element {
    cursor: move;
    touch-action: none !important;
    background-color: rgba(255, 255, 255, 0.01) !important; 
    pointer-events: auto !important;
}

/* Sta selectie alleen toe bij tekstbewerking */
.wmstek-placed-item [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Het witte kader (border) verschijnt bij selectie */
.wmstek-placed-item.active {
    border: 1px solid #ffffff; 
    z-index: 1000;
}

.wmstek-placed-item.active,
#wmstek-selection-bound-box {
    touch-action: none !important;
}

.wmstek-placed-item img,
.wmstek-placed-item svg,
.vbm-placed-content {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: fill !important; 
    pointer-events: none;
    opacity: 1 !important;
    visibility: visible !important;
    shape-rendering: geometricPrecision;
    pointer-events: none !important; 
    user-select: none;
    -webkit-user-drag: none;
}

.wmstek-placed-item polygon {
    stroke: none;
}

/* --- INTERACTIE HANDLES (Algemene Styling) --- */
.wmstek-resizer-handle {
    position: absolute;
    background: #2c3e50; /* Donkere kleur conform je interface[cite: 1] */
    color: #ffffff;      /* Witte iconen */
    border: 1px solid #ffffff;
    display: none;       /* Standaard verborgen, getoond via .active */
    align-items: center;
    justify-content: center;
    z-index: 1010;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

/* Toon alle handles wanneer het item geselecteerd is */
.wmstek-placed-item.active .wmstek-resizer-handle {
    display: flex;
}

/* --- 1. HOEK HANDLES (Vierkante actie-iconen) --- */
.handle-nw, .handle-ne, .handle-sw, .handle-se {
    width: 40px; 
    height: 40px; 
    border-radius: 4px; 
}

.wmstek-resizer-handle i {
    font-size: 16px; 
}

/* Posities voor de hoeken (gecentreerd op de rand van de box) */
.handle-nw { top: -42px; left: -42px; cursor: pointer; }     /* Dupliceren */
.handle-ne { top: -42px; right: -42px; cursor: pointer; }    /* Roteren */
.handle-sw { bottom: -42px; left: -42px; cursor: pointer; }  /* Verwijderen */
.handle-se { bottom: -42px; right: -42px; cursor: se-resize; } /* Proportioneel schalen */

/* --- 2. ZIJ HANDLES (Witte bolletjes voor as-specifiek stretchen) --- */
.wmstek-resizer-handle.handle-tm, 
.wmstek-resizer-handle.handle-bm, 
.wmstek-resizer-handle.handle-lm, 
.wmstek-resizer-handle.handle-rm {
    width: 18px !important;
    height: 18px !important;
    background: #ffffff !important;
    border: 1.5px solid #2c3e50 !important; 
    border-radius: 50% !important; 
    padding: 0;
}

.handle-tm { 
    top: -6px; 
    left: 50%; 
    transform: translateX(-50%); 
    cursor: ns-resize; 
}

.handle-bm { 
    bottom: -6px; 
    left: 50%; 
    transform: translateX(-50%); 
    cursor: ns-resize; 
}

.handle-lm { 
    left: -6px; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: ew-resize; 
}

.handle-rm { 
    right: -6px; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: ew-resize; 
}

/* Hover effect voor extra visuele feedback */
.wmstek-resizer-handle:hover {
    background: #0090e3 !important;
    border-color: #ffffff !important;
}

/* Schakel transities uit tijdens slepen voor maximale performance */
body.is-dragging-active .wmstek-placed-item {
    box-shadow: none !important;
    transition: none !important;
}

/* ==========================================================================
   FIX: TEKST BINNEN HET SELECTIEVAK HOUDEN (VERBETERDE VERSIE)
   ========================================================================== */

/* 1. Zorg dat het selectievak niet meer in elkaar klapt, zonder JS te blokkeren! */
.wmstek-placed-item.is-text {
    container-type: normal !important; 
    display: block !important;         
}

/* 2. Zorg dat het tekstveld meerekt wanneer je de handlers versleept */
.wmstek-placed-item.is-text [contenteditable] {
    position: relative !important;
    width: 100% !important; 
    height: 100% !important;
    min-height: unset !important;
    white-space: pre-wrap;
    padding: 10px; 
    box-sizing: border-box;
}

/* ==========================================================================
   NUMMERS PLAATSEN (CANVAS)
   ========================================================================== */

.wmstek-placed-item .wmstek-number-shape {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important; 
    font-weight: bold !important;
    color: #fff !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1 !important;
    margin: auto; 
}

/* Vormen */
.wmstek-placed-item .wmstek-number-shape.circle {
    border-radius: 50% !important;
}

.wmstek-placed-item .wmstek-number-shape.triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    padding-top: 15px !important;
}

.wmstek-placed-item {
    container-type: size;
}

/* 2. Laat de font-size schalen op basis van de container-breedte (cqw = container query width) */
.wmstek-placed-item .wmstek-number-shape {
    font-size: 50cqw !important; /* Dit schaalt het cijfer mee met de breedte van de vorm */
    line-height: 1 !important;
}

/* ==========================================================================
   7. ZOOM CONTROLS
   ========================================================================== */

.wmstek-zoom-bar {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: #ffffff;
    padding: 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    border: 1px solid #e0e0e0;
}

.wmstek-zoom-bar button {
    border: none;
    background: #f1f3f5;
    color: #1a1a1a;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.wmstek-zoom-bar button:hover {
    background: #e9ecef;
}

#zoom-reset {
    font-size: 12px;
    min-width: 55px;
}

.zoom-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
}

.wmstek-zoom-bar input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ced4da;
    background: #ffffff;
    font-weight: 800;
    font-size: 14px;
    color: #000;
    border-radius: 2px;
    outline: none;
}

.zoom-input-wrapper span {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
}

.wmstek-zoom-bar input::-webkit-outer-spin-button,
.wmstek-zoom-bar input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.wmstek-zoom-bar input[type=number] {
    -moz-appearance: textfield;
}

/* ==========================================================================
   8. LAGENPANEEL (Styling binnen het paneel)
   ========================================================================== */

.wmstek-layers-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.layer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.layer-item:hover {
    border-color: #0090e3;
    background: #f0f7ff;
}

.layer-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.layer-controls {
    display: flex;
    gap: 4px;
}

.layer-controls button {
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.layer-controls button:hover {
    background: #0090e3;
    color: white;
}

.layer-controls button.delete {
    color: #e74c3c;
}

.empty-msg {
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 12px;
    margin-top: 20px;
}

/* ==========================================================================
   9. CUSTOM FOOTER (Geoptimaliseerd conform tekentool.php)
   ========================================================================== */

.wmstek-bottom-bar {
    height: 130px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    gap: 10px;
    z-index: 999 !important;
    position: relative;
    flex-shrink: 0;
}

.wmstek-slides-container {
    display: flex;
    max-width: 90vw;
    gap: 15px; 
    overflow: visible;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 15px 10px;
}

/* Scrollbar styling */
.wmstek-slides-container::-webkit-scrollbar { height: 6px; }
.wmstek-slides-container::-webkit-scrollbar-track { background: #f0f2f5; }
.wmstek-slides-container::-webkit-scrollbar-thumb { background-color: #0090e3; border-radius: 10px; }

#wmstek-slides-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 7px;
    scrollbar-width: thin;
    scrollbar-color: #0090e3 #f0f2f5;
}

.wmstek-slide-thumbnail {
    width: 108px; 
    height: 90px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    /* CRUCIAAL: Overflow op visible laten voor de hoek-icoontjes */
    overflow: visible !important; 
}

.wmstek-slide-thumbnail.active {
    border-color: #0090e3;
    box-shadow: 0 0 0 2px rgba(0, 144, 227, 0.2);
    transform: translateY(-2px); /* Subtiele lift voor actieve slide */
}

.wmstek-slide-thumbnail:hover {
    border-color: #0090e3;
}

/* Container voor de mini-canvas */
.wmstek-slide-preview {
    width: 100%;
    height: 100%;
    overflow: hidden; /* De preview zelf kapt wel af */
    position: relative;
    border-radius: 4px;
    pointer-events: none;
    background: #f8f9fa;
}

.wmstek-mini-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 1420px;
    height: 1190px;
    transform-origin: 0 0;
    transform: scale(0.076);
    background-color: #6d90be !important;
    image-rendering: -webkit-optimize-contrast;
}

/* Verberg UI-elementen in thumbnails */
.wmstek-mini-canvas .wmstek-resizer-handle,
.wmstek-mini-canvas .wmstek-rotate-handle,
.wmstek-mini-canvas .wmstek-delete-item,
.wmstek-mini-canvas .wmstek-item-id-badge {
    display: none !important;
}

.wmstek-slide-number {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
}

/* --- Icoontjes op de hoeken (zoals in tekentool.php) --- */

/* Verwijder icoon (Linksboven) */
.wmstek-delete-slide {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 22px;
    height: 22px;
    background: #e74c3c;
    color: white !important;
    border-radius: 50%;
    display: none; /* Alleen tonen bij hover */
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 25;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.1s ease;
}

.wmstek-delete-slide:hover {
    transform: scale(1.1);
    background: #c0392b;
}

/* Drie puntjes / Opties (Rechtsboven) */
.wmstek-slide-options {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    color: #2c3e50;
    border-radius: 50%;
    display: none; /* Alleen tonen bij hover */
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 25;
    cursor: pointer;
    border: 2px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.1s ease;
}

.wmstek-slide-options:hover {
    border-color: #0090e3;
    color: #0090e3;
    transform: scale(1.1);
}

/* Tonen van icoontjes bij hover over de thumbnail */
.wmstek-slide-thumbnail:hover .wmstek-delete-slide,
.wmstek-slide-thumbnail:hover .wmstek-slide-options {
    display: flex;
}

/* --- Dropdown Menu (Zwevend portaal menu) --- */
.wmstek-slide-menu {
    position: fixed; /* Cruciaal voor gebruik met de portal-div */
    background: white;
    min-width: 170px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    border-radius: 8px;
    z-index: 20000000; /* Extreem hoog om boven alles te staan */
    padding: 6px 0;
    border: 1px solid #e0e0e0;
    display: none;
}

.wmstek-slide-menu.active {
    display: block;
    animation: wmstekFadeIn 0.15s ease-out;
}

@keyframes wmstekFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.wmstek-slide-menu-item {
    padding: 10px 15px;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.wmstek-slide-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.wmstek-slide-menu-item:hover {
    background: #f0f7ff;
    color: #0090e3;
}

.wmstek-slide-menu-item.danger {
    color: #e74c3c;
}

.wmstek-slide-menu-item.danger:hover {
    background: #fff0f0;
    color: #c0392b;
}

.wmstek-menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

/* Plus knop voor nieuwe slide */
.wmstek-add-slide-btn {
    width: 50px;
    height: 90px;
    background: #ffffff;
    border: 2px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 5px;
}

.wmstek-add-slide-btn:hover {
    border-color: #0090e3;
    color: #0090e3;
    background: #f8f9fa;
    transform: scale(1.02);
}

/* Custom Modal Overlay */
.wmstek-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    display: none; /* Standaard uit */
    align-items: center;
    justify-content: center;
    z-index: 10000000; /* Boven alles */
}

.wmstek-modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    overflow: hidden;
    animation: wmstekModalBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes wmstekModalBounce {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wmstek-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.wmstek-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.wmstek-modal-close {
    cursor: pointer;
    font-size: 24px;
    color: #999;
}

.wmstek-modal-body {
    padding: 25px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    text-align: center;
}

.wmstek-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: #f8f9fa;
}

/* Knoppen in de modal */
.wmstek-btn {
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: 0.2s;
}

.wmstek-btn.primary {
    background: #e74c3c; /* Rood voor gevaarlijke acties */
    color: #fff;
}

.wmstek-btn.primary:hover { background: #c0392b; }

.wmstek-btn.secondary {
    background: #ddd;
    color: #333;
}

.wmstek-btn.secondary:hover { background: #ccc; }

/* ==========================================================================
   10. Instellingen (Standaardwaarden, Sneltoetsen & Hoofdmenu)
   ========================================================================== */

/* Overlay die het hele scherm bedekt (Gedeeld door Settings, Shortcuts & Menu) */
.wmstek-modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.5); 
    z-index: 99999999 !important;
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(2px);
}

.wmstek-modal-overlay.active { 
    display: flex; 
}

/* Het witte pop-up venster basis */
.wmstek-modal { 
    background: white; 
    width: 90%; 
    max-width: 800px; 
    max-height: 85vh; 
    border-radius: 12px; 
    padding: 0; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); 
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Header */
.wmstek-modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 24px; 
    border-bottom: 1px solid #eee; 
    background: #fcfcfc;
}

.wmstek-modal-title { 
    font-size: 18px; 
    font-weight: 700; 
    color: #111827; 
}

.wmstek-close-modal { 
    cursor: pointer; 
    font-size: 28px; 
    color: #9ca3af; 
    line-height: 1;
}

.wmstek-close-modal:hover { color: #111827; }

/* Modal Body */
.wmstek-modal-body { 
    padding: 24px; 
    overflow-y: auto; 
    flex: 1; 
}

/* --- HOOFDMENU GRID STYLING --- */
.wmstek-menu-modal-content {
    width: 650px; 
    max-width: 95%;
}

.wmstek-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 5px;
}

.wmstek-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #374151;
    padding: 20px 10px;
    border-radius: 12px;
    text-align: center;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.wmstek-menu-item:hover {
    background-color: #f0f9ff;
    border-color: #0090e3;
    color: #0a0a38;
    transform: translateY(-2px);
}

.wmstek-menu-item.active {
    background-color: #f0f9ff;
    border-color: #0090e3;
    color: #0090e3;
    transform: translateY(0);
}

.wmstek-menu-item + .wmstek-menu-paneel {
    display: none;
}

.wmstek-menu-item.active + .wmstek-menu-paneel {
    display: block;
}

.wmstek-menu-item .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #0a0a38;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wmstek-menu-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

/* --- SHORTCUTS & SETTINGS SPECIFIEK --- */
.wmstek-shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wmstek-shortcut-row {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.wmstek-shortcut-row:hover {
    background-color: #f9fafb;
}

.wmstek-shortcut-row:active {
    background-color: #e5e7eb;
}

.wmstek-kbd {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.wmstek-settings-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 16px; 
}

.wmstek-setting-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    border: 1px solid #e5e7eb; 
    padding: 10px 12px;
    border-radius: 8px; 
    background: #f9fafb;
}

.wmstek-setting-item img { 
    width: 58px !important; 
    height: 58px !important;
    object-fit: contain; 
    flex-shrink: 0; 
    background: white; 
    padding: 4px; 
    border: 1px solid #eee; 
    border-radius: 4px;
}

/* --- INVOERVELDEN BINNEN INSTELLINGEN (Standaardwaarden) --- */

/* 1. Zorg dat het 'rechter gedeelte' (waar de velden in zitten) de overgebleven ruimte pakt */
.wmstek-setting-item > div {
    flex: 1; /* Vult alle ruimte naast de afbeelding */
    display: flex;
    flex-direction: column;
    gap: 6px; /* Compacte afstand tussen de B: en H: regel */
}

/* 2. De labels (B: en H:) en flex-uitlijning */
.wmstek-setting-item label {
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin: 0; 
}

/* 3. Het inputveld: Nu op volledige overgebleven breedte */
.wmstek-setting-item input[type="number"],
.wmstek-setting-item input[type="text"] {
    flex: 1; /* DIT IS DE TRUC: Rekt het veld maximaal uit naast de letters 'B:' en 'H:' */
    min-width: 0; /* Voorkomt layout-bugs bij flexbox */
    padding: 5px 10px; /* Iets minder hoge padding in het veld zelf */
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    font-size: 14px;
    color: #374151;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* Focus status: de blauwe hoofdkleur als je erin klikt */
.wmstek-setting-item input[type="number"]:focus,
.wmstek-setting-item input[type="text"]:focus {
    border-color: #0090e3;
    box-shadow: 0 0 0 3px rgba(0, 144, 227, 0.15); 
}

/* Verberg de standaard browser-pijltjes */
.wmstek-setting-item input[type="number"]::-webkit-outer-spin-button,
.wmstek-setting-item input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.wmstek-setting-item input[type="number"] {
    -moz-appearance: textfield;
}

/* ==========================================================================
   11. ITEM STYLING BAR (Floating Toolbar)
   ========================================================================== */

/* Hoofdcontainer van de zwevende bar */
#wmstek-pencil-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    padding: 8px 18px;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 11000;
    display: none;   
    opacity: 0;         
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    pointer-events: none;
}

#wmstek-pencil-bar.is-visible {
    display: flex;     
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Groepering van knoppen binnen de bar */
.wmstek-pencil-tool-group {
    display: flex;
    align-items: center;
    position: relative;
}

/* Label styling in de bar */
.wmstek-bar-label {
    font-size: 13px;
    font-weight: 600;
    margin-left: 6px;
    cursor: pointer;
    color: #444;
}

.wmstek-bar-label i {
    font-size: 10px;
    margin-left: 5px;
}

/* Algemene bar knop styling */
.wmstek-bar-item-btn { 
    color: #444; 
    cursor: pointer; 
    padding: 6px; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    transition: 0.2s; 
    font-size: 18px;
}

.wmstek-bar-item-btn:hover { 
    background: #f0f0f0; 
}

.wmstek-bar-item-btn.active { 
    color: #0090e3; 
    background: #eef0f5; 
}

/* --- KLEUREN & PICKERS --- */

/* Wrapper voor de ronde kleurkiezer (Potlood) */
.wmstek-color-circle-wrapper {
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    overflow: hidden; 
    border: 2px solid #fff; 
    box-shadow: 0 0 0 1px #ddd; 
    cursor: pointer; 
    position: relative;
}

#wmstek-pencil-color {
    position: absolute; 
    top: -10px; 
    left: -10px; 
    width: 60px; 
    height: 60px; 
    cursor: pointer; 
    border: none; 
    padding: 0; 
    background: none;
}

/* Wrapper voor geselecteerde item kleuren */
.wmstek-item-colors-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #eee;
}

.wmstek-color-picker-wrapper {
    width: 24px; 
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

.wmstek-color-picker-wrapper:hover { 
    transform: scale(1.1); 
}

.wmstek-color-picker-wrapper input[type="color"] {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    border: none; padding: 0; margin: 0;
    cursor: pointer;
}

.wmstek-width-dropdown, 
.wmstek-mirror-dropdown {
    display: none; 
    position: fixed; 
    top: 50px; 
    left: 50%; 
    transform: translateX(-50%);
    background: white; 
    padding: 15px; 
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 12000; 
    border: 1px solid #eee; 
    min-width: 220px;
}

.wmstek-width-dropdown.active, 
.wmstek-mirror-dropdown.active { 
    display: block; 
}

/* Labels binnen de dropdowns */
.wmstek-width-dropdown label,
.wmstek-mirror-dropdown label { 
    display: block; 
    font-size: 11px; 
    margin-bottom: 10px; 
    color: #9ca3af; 
    font-weight: 700; 
    text-align: center; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Container voor de knoppen-rij (-90, +90, 180) */
.wmstek-rotate-buttons-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

/* De individuele "Snel Roteren" knoppen */
.wmstek-rotate-quick-btn,
.wmstek-mirror-quick-btn {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 2px;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.wmstek-rotate-quick-btn:hover,
.wmstek-mirror-quick-btn:hover {
    background: #f0f9ff;
    border-color: #0090e3;
    color: #0090e3;
    transform: translateY(-1px);
}

.wmstek-rotate-quick-btn:active,
.wmstek-mirror-quick-btn:active {
    transform: translateY(0);
    background: #eef0f5;
}

/* Divider tussen knoppen en slider */
.wmstek-menu-divider {
    height: 1px;
    background: #eee;
    margin: 12px 0;
}

/* Container voor de slider-sectie */
.wmstek-rotate-slider-container {
    padding-top: 5px;
}

.wmstek-rotate-slider-container label {
    margin-bottom: 5px;
    color: #6b7280;
}

/* De Slider styling */
#wmstek-rotate-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: #f0f2f5;
    border-radius: 10px;
    outline: none;
    margin: 10px 0;
}

#wmstek-rotate-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #0090e3;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}

#wmstek-rotate-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* --- TEKST BEWERKING TOOLS --- */

#wmstek-text-tools {
    display: none; /* Wordt flex via JS */
    align-items: center;
    gap: 5px;
    border-right: 1px solid #eee;
    margin-right: 10px;
    padding-right: 10px;
}

.wmstek-fontsize-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.wmstek-fontsize-btn {
    background: #f8f9fa;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

#wmstek-fontsize-input {
    width: 35px;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-size: 13px;
    padding: 4px 0;
}

/* --- LAGEN BEHEER IN BAR --- */

.wmstek-item-layers-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid #eee;
}

/* --- ROTATIE SLIDER --- */

#wmstek-rotate-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #f0f2f5;
    border-radius: 2px;
    margin-top: 10px;
}

#wmstek-rotate-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #0090e3;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.wmstek-bar-group {
    display: none;
    align-items: center;
    gap: 15px;
}

#item-tools {
    display: none; /* Wordt via JS overschreven naar flex indien actief */
    align-items: center;
    gap: 12px;
}

#wmstek-item-colors:empty {
    display: none !important;
}

/* Styling voor de nieuwe Kleuren Reset knop */
#wmstek-btn-reset-colors {
    white-space: nowrap;
    font-weight: 700;
    color: #4b5563;
    border-color: #d1d5db !important;
    transition: all 0.2s ease;
}

#wmstek-btn-reset-colors:hover {
    background-color: #f3f4f6 !important;
    color: #111827;
    border-color: #9ca3af !important;
}

/* Divider tussen tool-groepen */
.wmstek-bar-divider {
    width: 1px;
    height: 24px;
    background: rgba(0,0,0,0.1);
}

/* Wrapper voor tekst tools */
.wmstek-text-tools-wrap {
    display: none; /* Wordt flex via JS bij tekstselectie */
    align-items: center;
    gap: 5px;
    border-right: 1px solid #eee;
    margin-right: 10px;
    padding-right: 10px;
}

/* Slider container in dropdown */
.wmstek-slider-wrap {
    padding: 10px 15px;
}

/* Specifieke gevaar-kleur voor delete */
.btn-danger {
    color: #e74c3c !important;
}

/* Menuscheiding */
.wmstek-menu-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.wmstek-mobile-overlay {
    position: fixed !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100vw !important; 
    height: 100vh !important;
    display: none; 
    z-index: 9999998 !important; /* Ligt over de header en toolbar heen */
}

@media only screen and (max-width: 768px) {
    .wmstek-mobile-overlay.active {
        display: block !important;
    }
}

/* ==========================================================================
   12. MOBIELE STYLING
   ========================================================================== */

@media only screen and (max-width: 768px) {
    
    /* 12.1 HOOFD LAYOUT AANPASSING */
    /* Toon het sneltoetsen-icoon op mobiel en maak het net zo groot als de rest */
    .wmstek-header-title .wmstek-shortcut-icon {
        display: block !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }
    
    .vbm-tool-main-layout {
        flex-direction: column !important;
        padding-bottom: 80px !important; 
        height: calc(100dvh - 60px) !important;
    }
    
    /* Verberg de tekst in de header op mobiel */
    .wmstek-header .wmstek-btn-text {
        display: none !important;
    }

    /* Forceer beide knoppen op exact dezelfde afmetingen */
    .wmstek-header .wmstek-download-btn {
        padding: 0 !important;          /* Gooi variabele padding weg */
        width: 46px !important;         /* Exacte breedte */
        height: 38px !important;        /* Exacte hoogte */
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    /* Zorg dat de verschillende iconen (FontAwesome & Dashicons) exact even groot schalen */
    .wmstek-header .wmstek-download-btn i,
    .wmstek-header .wmstek-download-btn .dashicons {
        font-size: 18px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 12.2 SIDEBAR ALS HORIZONTALE SCROLLBAR */
    .wmstek-sidebar {
        width: 100vw !important;
        height: 80px !important;
        flex-direction: row !important;
        padding: 5px 10px !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 200000 !important;
        justify-content: flex-start !important; 
        box-sizing: border-box !important;
        background: #f2f7fc !important;
    }

    /* 12.3 MENU MODAL RESPONSIVE */
    .wmstek-menu-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .wmstek-menu-item {
        padding: 15px 5px;
    }

    /* 12.4 PANELEN & SIDEBAR ITEMS */
    .wmstek-side-panel {
        display: none !important;
        left: 0 !important;
        right: 0 !important; 
        width: 100% !important;
        max-width: 100vw !important;
        position: fixed !important;
        bottom: 80px !important;
        top: 60px !important;
        height: calc(100dvh - 140px) !important;
        z-index: 2500000 !important;
        box-sizing: border-box !important;
    }

    .wmstek-side-panel.active {
        display: flex !important;
    }

    .wmstek-sidebar-item {
        width: 65px !important;
        height: 60px !important;
        flex-shrink: 0 !important; 
        margin-bottom: 0 !important;
        display: inline-flex !important; 
    }

    .wmstek-sidebar-item .label {
        font-size: 10px !important;
        display: block !important;
    }

    .wmstek-sidebar-spacer {
        display: none !important;
    }

    /* 12.5 CANVAS SCHALING & VIEWPORT */
    #wmstek-resizer {
        transform-origin: center center !important;
    }
    
    .wmstek-zoom-bar {
    	bottom: 5px;
        z-index: 3000000 !important; 
        right: 75px;
    }

    .vbm-tool-main-content {
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .wmstek-sidebar::-webkit-scrollbar {
        height: 4px;
    }
    .wmstek-sidebar::-webkit-scrollbar-thumb {
        background: #0090e3;
        border-radius: 10px;
    }
    
    .wmstek-resizer-handle.handle-tm, .wmstek-resizer-handle.handle-bm, .wmstek-resizer-handle.handle-lm, .wmstek-resizer-handle.handle-rm {
        width: 28px !important;
        height: 28px !important;
    }

    /* 12.6 START DASHBOARD OVERLAY */
    .wmstek-start-overlay {
        z-index: 300000 !important; 
    }

    .wmstek-start-modal {
        width: 100% !important;
        height: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important; 
        padding: 15px !important; 
        box-sizing: border-box !important;
    }

    .wmstek-dashboard-header {
        flex-direction: column !important;
        padding: 20px 0;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 15px !important;
    }

    #wmstek-dashboard-title {
        width: 100% !important;
        font-size: 1.4rem !important;
        text-align: left !important;
    }

    .wmstek-dashboard-tabs {
        flex-direction: column !important;
        width: 100% !important;
        margin-right: 0 !important;
        gap: 6px !important; 
    }

    .wmstek-tab-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 15px !important;
    }

    .wmstek-dashboard-content .wmstek-flyout-grid,
    .wmstek-start-grid,
    .wmstek-side-panel .wmstek-flyout-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .wmstek-dashboard-content .wmstek-material-item.wmstek-material-grid-item,
    .wmstek-start-item,
    .wmstek-side-panel .wmstek-material-item {
        min-height: 130px !important;
        padding: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
        .wmstek-side-panel .wmstek-material-item img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 100px !important; 
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
        .wmstek-side-panel .wmstek-material-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 12.7 FOOTER & THUMBNAILS */
    .wmstek-bottom-bar {
        height: 70px !important; 
        padding: 0 10px !important;
        margin-bottom: 40px !important;
        background: #fff !important;
    }

    .wmstek-slide-thumbnail {
        width: 65px !important; 
        height: 55px !important; 
    }

    .wmstek-mini-canvas {
        transform: scale(0.045) !important;
    }

    .wmstek-add-slide-btn {
        width: 35px !important; 
        height: 55px !important;
        font-size: 16px !important;
    }

    .wmstek-delete-slide,
    .wmstek-slide-options {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        top: -6px !important;
    }
    
    .wmstek-slide-thumbnail:hover .wmstek-delete-slide,
    .wmstek-slide-thumbnail:hover .wmstek-slide-options {
        display: none;
    }

    .wmstek-slide-thumbnail.active .wmstek-delete-slide,
    .wmstek-slide-thumbnail.active .wmstek-slide-options {
        display: flex !important;
    }

    /* 12.8 PENCIL BAR & ACTION SHEET (Mobiele Popup) */
    #wmstek-pencil-bar {
        top: 0 !important; 
        left: 0 !important; 
        transform: none !important;
        width: 100vw !important;
        border-radius: 0 !important;
        padding: 5px 15px !important;
        /* JOUW SCROLL IS TERUG: */
        overflow-x: auto !important; 
        overflow-y: hidden !important; 
        white-space: nowrap !important;
        display: none; 
        justify-content: flex-start !important;
        z-index: 10001 !important;
        background: white !important;
        border-bottom: 1px solid #ddd !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #wmstek-pencil-bar::-webkit-scrollbar {
        display: none;
    }

    #wmstek-pencil-bar.is-visible {
        display: flex !important; 
    }

    /* ACTION SHEET: Doordat JS ze verplaatst heeft, hebben we geen prefix meer nodig */
    .wmstek-width-dropdown, 
    .wmstek-mirror-dropdown {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 20px 20px 40px 20px !important;
        background: #ffffff !important;
        border-radius: 20px 20px 0 0 !important;
        z-index: 9999999 !important; /* Ligt over de overlay heen */
        box-shadow: 0 -10px 40px rgba(0,0,0,0.3) !important;
        display: none;
        box-sizing: border-box !important;
        transform: translateY(0) !important;
        animation: slideUp 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    }

    .wmstek-width-dropdown.active, 
    .wmstek-mirror-dropdown.active,
    #wmstek-rotate-steps-dropdown.active {
        display: block !important;
    }

    /* --- LIJNDIKTE SPECIFIEK --- */
    .wmstek-width-dropdown .wmstek-dropdown-controls {
        flex-direction: column !important; /* Zet veld en slider onder elkaar */
        align-items: stretch !important;
        gap: 15px !important;
        margin-top: 15px !important;
        width: 100% !important;
    }

    /* Invoerveld voor de lijndikte */
    .wmstek-width-dropdown input[type="number"],
    .wmstek-width-dropdown input[type="text"] {
        width: 100% !important;
        padding: 18px 15px !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 12px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        background: #f1f3f5 !important;
        color: #333 !important;
    }

    /* --- ROTATIE SPECIFIEK --- */
    .wmstek-rotate-buttons-row {
        display: flex !important;
        justify-content: space-between !important;
        gap: 15px !important;
        margin: 15px 0 !important;
    }

    .wmstek-rotate-quick-btn {
        flex: 1 !important;
        background: #f1f3f5 !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 12px !important;
        padding: 18px 5px !important; 
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #333 !important;
    }

    /* --- GEDEELDE SLIDER STYLING (Lijndikte & Rotatie) --- */
    #wmstek-rotate-slider,
    .wmstek-width-dropdown input[type="range"] {
        width: 100% !important;
        height: 8px !important; /* Dikkere slider balk voor mobiel */
        margin: 15px 0 !important;
        -webkit-appearance: none !important;
        background: #f0f2f5 !important;
        border-radius: 10px !important;
        outline: none !important;
    }

    /* Groter bolletje voor touch op iOS/Webkit */
    #wmstek-rotate-slider::-webkit-slider-thumb,
    .wmstek-width-dropdown input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none !important;
        width: 28px !important;  
        height: 28px !important; 
        background: #0090e3 !important;
        border-radius: 50% !important;
        border: 2px solid #fff !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important; 
    }

    /* Groter bolletje voor touch op Firefox */
    #wmstek-rotate-slider::-moz-range-thumb,
    .wmstek-width-dropdown input[type="range"]::-moz-range-thumb {
        width: 28px !important;
        height: 28px !important;
        background: #0090e3 !important;
        border-radius: 50% !important;
        border: 2px solid #fff !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    /* 12.9 SCROLL & TOUCH OPTIMALISATIE */
    .wmstek-panel-scroll-area,
    .wmstek-dashboard-content,
    #wmstek-slides-list,
    .wmstek-sidebar {
        -webkit-overflow-scrolling: touch !important;
        touch-action: auto !important;
    }

    .wmstek-panel-scroll-area,
    .wmstek-dashboard-content {
        touch-action: pan-y !important; 
        overflow-y: auto !important;
    }

    #wmstek-slides-list,
    .wmstek-sidebar {
        touch-action: pan-x !important;
        overflow-x: auto !important;
    }
    
    .wmstek-settings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .wmstek-setting-item input[type="number"], .wmstek-setting-item input[type="text"] {
    	width: 150px;
        padding: 5px 10px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 14px;
        color: #374151;
        background-color: #ffffff;
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        box-sizing: border-box;
    }
    
    /* Hoek handlers mobiel */
	.handle-nw, .handle-ne, .handle-sw, .handle-se {
        width: 80px; 
        height: 80px; 
        border-radius: 4px; 
    }
    
    .handle-nw { top: -82px; left: -82px; cursor: pointer; }     /* Dupliceren */
    .handle-ne { top: -82px; right: -82px; cursor: pointer; }    /* Roteren */
    .handle-sw { bottom: -82px; left: -82px; cursor: pointer; }  /* Verwijderen */
    .handle-se { bottom: -82px; right: -82px; cursor: se-resize; } /* Proportioneel schalen */

    /* iPhone SE (375px en kleiner) specifieke tweaks */
    @media only screen and (max-width: 375px) {
        .wmstek-rotate-buttons-row {
            gap: 4px !important;
        }
        
        .wmstek-rotate-quick-btn {
            font-size: 11px !important;
            padding: 8px 0 !important;
        }

        #wmstek-pencil-bar {
            padding: 10px 8px !important;
        }
    }
}

/* ==========================================================================
   13. SAVE & FEEDBACK POPUP (Multi-step)
   ========================================================================== */

/* De container zelf, iets breder gemaakt voor de input stap */
.wmstek-save-modal-content {
    max-width: 400px !important;
    text-align: center;
    padding: 0; /* Padding naar 0 omdat de header/body/footer dit regelen */
}

/* Header styling conform delete popup */
.wmstek-save-modal-content .wmstek-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    text-align: left;
}

.wmstek-save-modal-content .wmstek-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* Body styling */
.wmstek-save-modal-content .wmstek-modal-body {
    padding: 25px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.wmstek-save-modal-content .wmstek-modal-body p {
    text-align: left;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

/* Invoerveld styling */
#wmstek-save-name-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#wmstek-save-name-input:focus {
    border-color: #0090e3;
    box-shadow: 0 0 0 3px rgba(0, 144, 227, 0.1);
}

/* Footer styling */
.wmstek-save-modal-content .wmstek-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: #f8f9fa;
}

/* Iconen en Feedback (Stap 2) */
#wmstek-save-icon-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.wmstek-save-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    animation: iconBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wmstek-save-icon-circle.success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 2px solid #16a34a;
}

.wmstek-save-icon-circle.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 2px solid #dc2626;
}

#wmstek-save-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #1f2937;
    font-weight: 700;
}

#wmstek-save-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* Animaties */
@keyframes iconBounce {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Zorg dat de knoppen in de modal de juiste pointer events hebben */
.wmstek-save-modal-content .wmstek-btn {
    min-width: 100px;
}