/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    
    /* Backgrounds */
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-canvas: #f1f5f9;
    
    /* Text */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* UI Borders & Dimensions */
    --border: #e2e8f0;
    --header-height: 60px;
    --nav-mobile-height: 60px;
    --panel-mobile-height: 55vh;
    --sidebar-desktop: 80px;
    --panel-desktop: 288px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 0.5rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0; padding: 0;
    /* Allow scrolling by default (for Wizard), lock it only for Editor */
    overflow-x: hidden;
    min-height: 100vh;
}

/* Utilities */
.hidden { display: none !important; }
.display-none { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Custom Scrollbar */
.custom-scroll { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.custom-scroll::-webkit-scrollbar { width: 5px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 4px; }

 

/* Main Area */
.wizard-main { width: 100%; max-width: 1024px; padding:4rem 1rem; position: relative; margin: 0 auto; }
/* Loaders */
.wizard-main .submission-loader { position: fixed; inset: 0; background: rgba(255,255,255,0.85); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.wizard-main .submission-loader p{ color: #475569; font-weight: 500; font-size: 1.125rem; }
.wizard-main .loader-icon { font-size: 3rem; color: var(--primary); animation: spin 1s linear infinite; }

@keyframes spin { 100% { transform: rotate(360deg); } }
/* Progress Bar */
.wizard-main .progress-track { width: 100%; margin: 0 auto; background-color: #e2e8f0; height: 6px; overflow: hidden; }
.wizard-main .progress-fill { background-color: var(--primary); height: 100%; width: 25%; transition: width 0.5s ease-out; }

/* Wizard Card */
.wizard-main .wizard-card { background-color: white;  border: 1px solid var(--border); min-height: 500px; position: relative; overflow: hidden; max-width: 1024px; margin: 0 auto; width: 100%;  }

/* Step Transitions */
.wizard-main  .step-content { padding: 10px 30px; position: absolute; inset: 0; width: 100%; height: 100%; overflow-y: auto; display: flex; flex-direction: column; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; pointer-events: none; }
.wizard-main  .step-active { transform: translateX(0); opacity: 1; pointer-events: auto; z-index: 10; }
.wizard-main  .step-left   { transform: translateX(-100%); }
.wizard-main  .step-right  { transform: translateX(100%); }
.wizard-main  .center-content { justify-content: center; align-items: center; }
.wizard-main #categoriesGrid{ padding:1rem }

/* Typography & Inputs */
.wizard-main .step-title { font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 1.5rem; text-align: center; }
.wizard-main .input-group { margin-bottom: 1.5rem; width: 100%; max-width: 450px; }
.wizard-main .input-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.wizard-main .input-underlined { width: 100%; font-size: 1.5rem; border: none; border-bottom: 2px solid var(--border); padding: 0.5rem 0; outline: none; background: transparent; color: var(--text-main); border-radius: 0; }
.wizard-main .input-underlined:focus { border-bottom-color: var(--primary); }
.wizard-main .input-error { border-bottom-color: #ef4444; }

.wizard-main .step-content .template-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%;  }
@media (min-width: 768px) { .wizard-main .step-content .template-grid { grid-template-columns: repeat(4, 1fr); } }

/* Wizard Grids */
.grid-cols-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; }
@media (min-width: 768px) { .grid-cols-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-cols-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; width: 100%; max-width: 600px; }
@media (min-width: 768px) { .grid-cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* Selection Cards */
.selection-card { cursor: pointer; position: relative; }
.card-inner {
    padding: 1.5rem; border: 2px solid #f1f5f9; border-radius: 0.75rem;
    transition: all 0.2s; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: white; text-align: center;
}
input:checked + .card-inner { border-color: var(--primary); background-color: var(--primary-light); }
.cat-icon { font-size: 2rem; margin-bottom: 0.5rem; color: #94a3b8; }
input:checked + .card-inner .cat-icon { color: var(--primary); }
.check-icon { position: absolute; top: 10px; right: 10px; color: var(--primary); opacity: 0; }
input:checked + .card-inner .check-icon { opacity: 1; }

/* Results Grid */
.logo-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; padding: 1rem; padding-bottom: 3rem; }
@media (min-width: 480px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }

/* Generated Logo Card */
.sample-card { position: relative; background: white; border: 1px solid var(--border); border-radius: 0.5rem; aspect-ratio: 1; cursor: pointer; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; margin-bottom: 1rem; }
.sample-card:hover, .sample-card.selected { border-color: var(--primary); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-canvas { width: 100% !important; height: 100% !important; pointer-events: none; }
.check-badge { position: absolute; top: 10px; right: 10px; background: var(--primary); color: white; border-radius: 50%; padding: 4px; opacity: 0; }
.sample-card.selected .check-badge { opacity: 1; }

/* Wizard Footer */
.wizard-main .wizard-footer { display: flex; justify-content: space-between; width: 100%; max-width: 1024px;  margin-top: 1rem; }
.wizard-main  .btn { padding: 0.75rem 2rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; border: none; font-size: 1rem; }
.wizard-main  .btn-primary { background: var(--primary); color: white; }
.wizard-main .btn-secondary { background: white; border: 1px solid #cbd5e1; color: var(--text-muted); }
.wizard-main  .btn-success { background: #16a34a; color: white; }
.wizard-main  .btn:disabled { opacity: 0.5; cursor: not-allowed; }




/* =========================================
   3. EDITOR STYLES (The App)
   ========================================= */

/* IMPORTANT: Lock body for Editor to prevent pull-to-refresh / scroll bounce */
.editor-body {
    background-color: var(--bg-body);
    height: 100vh; height: 100dvh;
    width: 100vw;
    overflow: hidden;
    display: flex; flex-direction: column;
}

/* 3.1 HEADER - FIXED STRUCTURE */
.editor-header {
    height: var(--header-height); flex-shrink: 0;
    background-color: white; border-bottom: 1px solid var(--border);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 0 1.5rem; z-index: 500;
    box-shadow: var(--shadow-sm);
}
.header-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--primary); font-size: 1.1rem; }

/* Controls Container */
.header-controls { 
    display: flex;
    align-items: center; 
    gap: 1.5rem; 
    height: 100%;
}

/* Group: Undo/Redo */
.history-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
    height: 32px;
}

/* Group: Preview/Download */
.actions-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon { width: 2.25rem; height: 2.25rem; border: none; background: transparent; color: var(--text-muted); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s; }
.btn-icon:hover { background: #f1f5f9; color: var(--text-main); }
.btn-std { height: 2.25rem; padding: 0 1rem; border-radius: 6px; font-weight: 600; border: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; transition: all 0.2s; }
.btn-ghost { background: white; border: 1px solid var(--border); color: var(--text-main); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary-sm { background: var(--primary); color: white; }
.btn-primary-sm:hover { background: var(--primary-hover); }

/* Mobile Header Adjustments */
@media (max-width: 640px) { 
    .editor-header { padding: 0 0.75rem; }
    .btn-std .btn-text { display: none; } 
    .btn-std { padding: 0; width: 2.25rem; justify-content: center; } 
    .header-controls { gap: 0.75rem; }
    .history-group { padding-right: 0.75rem; }
}


/* 3.2 WORKSPACE LAYOUT */
.workspace-container {
    display: flex; flex: 1; overflow: hidden; position: relative;
    /* Default: Mobile Column Layout */
    flex-direction: column; 
}

/* 3.3 CANVAS AREA */
.main-area {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background-color: var(--bg-canvas);
    position: relative; z-index: 10;
    /* Bottom padding on mobile to clear nav */
    padding-bottom: var(--nav-mobile-height); 
}

.canvas-wrapper {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 1rem;
    overflow: hidden;
}

.canvas-container-shadow {
    background: white; 
    box-shadow: var(--shadow-lg);
    /* Responsive Canvas Sizing */
    width: 500px; height: 500px;
    max-width: 100%; max-height: 100%;
    aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
}
#logoCanvas { width: 100% !important; height: 100% !important; object-fit: contain; }


/* =========================================
   4. MOBILE-FIRST NAVIGATION & PANELS
   ========================================= */

/* Mobile Bottom Navigation */
.nav-strip {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--nav-mobile-height);
    background-color: #0f172a;
    display: flex; align-items: center; justify-content: space-around;
    z-index: 400;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; color: #94a3b8; cursor: pointer; height: 100%; border-top: 3px solid transparent;
}
.nav-item i { font-size: 1.25rem; }
.nav-item span { font-size: 10px; font-weight: 600; text-transform: uppercase; }
.nav-item.active { color: white; border-top-color: var(--primary); background: rgba(255,255,255,0.05); }

/* Mobile Slide-up Panels */
.panels-container {
    position: fixed; bottom: var(--nav-mobile-height); left: 0; right: 0;
    height: var(--panel-mobile-height);
    background: white;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    z-index: 300;
    display: flex; flex-direction: column;
    transform: translateY(120%); /* Hidden */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother bezier */
    padding-bottom: env(safe-area-inset-bottom);
}
.panels-container.is-open { transform: translateY(0); }

/* Panel Header */
.panel-header {
    height: 50px; flex-shrink: 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 1rem;
}
.panel-title { font-weight: 700; font-size: 0.95rem; }
.btn-panel-close { background: #f1f5f9; border: none; width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }

/* Panel Content (Shared Base) */
.panel-content{  flex: 1; overflow-y: auto; display: flex; flex-direction: column;height: 90vh;}
.panel-content .font-cat-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.panel-content .font-cat-card { padding: 1rem; border: 2px solid #f1f5f9; border-radius: 0.75rem; transition: border-color 0.2s; text-align: center; }
.panel-content .font-cat-label { cursor: pointer; position: relative; display: block; }
.panel-content input[type="radio"]:checked + .panel-content .font-cat-card { border-color: #4f46e5; background-color: #eef2ff; }


.template-grid, .panel-content .font-panel, #lib-container, #lib-shapes-container, .panel-background, .layer-settings{ padding:1rem; }
/* =========================================
   5. DESKTOP LAYOUT OVERRIDES (min-width: 1024px)
   ========================================= */
@media (min-width: 1024px) {
    .workspace-container { flex-direction: row; }
    .editor-sidebar { display: flex; z-index: 40; height: 100%; }
    .nav-strip { position: relative; width: var(--sidebar-desktop); height: 100%; bottom: auto; left: auto; padding-bottom: 0; flex-direction: column; justify-content: flex-start; padding-top: 1.5rem; }
    .nav-item { height: auto; padding: 1.25rem 0; width: 100%; flex: 0; border-top: none; border-left: 3px solid transparent; }
    .nav-item.active { border-left-color: var(--primary); border-top-color: transparent; }
    
    /* Panels stay visible on left next to nav */
    .panels-container {
        position: relative; bottom: auto; height: 100%; width: var(--panel-desktop);
        transform: none !important; border-radius: 0; border-right: 1px solid var(--border);
        box-shadow: none; z-index: 10;
    }
    .btn-panel-close { display: none; }
    
    /* Remove padding from canvas since nav isn't at bottom */
    .main-area { padding-bottom: 0; }
}


/* =========================================
   6. UI COMPONENTS (Library, Inputs, Layers)
   ========================================= */

/* Library */
.lib-header { position: sticky; top: -1.25rem; margin: -1.25rem -1.25rem 1rem -1.25rem; padding: 1rem; background: rgba(255,255,255,0.95); z-index: 20; display: flex; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.lib-input { flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.lib-btn { width: 36px; height: 36px; border: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lib-btn-primary { background: var(--primary); color: white; }

.lib-grid-2col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
@media(min-width: 1024px) { .lib-grid-2col { grid-template-columns: repeat(2, 1fr); } }

.lib-item { aspect-ratio: 1; border: 1px solid var(--border); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 4px; background: white; }
.lib-item:hover { border-color: var(--primary); }
.lib-item img { width: 40%; height: 40%; object-fit: contain; margin-bottom: 4px; }
.lib-item-label { font-size: 10px; color: var(--text-muted); text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Control Cards */
.control-card { background: white; padding: 1rem; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.lbl-tiny { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; display: block; }
.input-std, .select-std { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 4px; background: white; }
input[type=range] { width: 100%; margin: 8px 0; accent-color: var(--primary); }
.range-header { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }

/* Layer Cards */
.layer-card { display: flex; align-items: center; height: 3.5rem; background: white; border-bottom: 1px solid var(--border); padding: 0 0.75rem; cursor: pointer; }
.layer-card.selected { border-color: var(--primary); background: var(--primary-light); }
.layer-card-preview { width: 2.25rem; height: 2.25rem; background: #f1f5f9; border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-right: 0.75rem; border: 1px solid var(--border); }
.layer-card-label { flex: 1; font-weight: 600; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-actions { display: flex; gap: 4px; }
.mini-btn { width: 24px; height: 24px; border: none; background: transparent; cursor: pointer; color: var(--text-muted); }
.mini-btn:hover { color: var(--text-main); background: #f1f5f9; border-radius: 4px; }

/* Font List Styles (Fixed) */
#font-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Clean styles for font list */
    width: 100%;
}

.font-list-item { 
    padding: 0.75rem; 
    border: 1px solid var(--border); 
    border-radius: 6px; 
    cursor: pointer; 
    background: white;
    transition: all 0.2s;
}
.font-list-item:hover { background: #f8fafc; border-color: var(--primary); }
.font-name { font-size: 10px; font-weight: 700; color: var(--text-light); text-transform: uppercase; }
.font-preview-text { font-size: 1.25rem; color: var(--text-main); }


/* =========================================
   7. MODALS (Export & Preview)
   ========================================= */
.modal-overlay, .preview-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(2px);
    display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.active, .preview-modal-overlay.active { display: flex; }

.modal-card { background: white; width: 100%; max-width: 400px; padding: 1.5rem; border-radius: 1rem; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title { font-weight: 700; margin: 0; }
.btn-close { border: none; background: transparent; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); }

/* Preview Modal */
.preview-card { background: white; width: 100%; max-width: 900px; height: 90vh; border-radius: 1rem; display: flex; flex-direction: column; overflow: hidden; }
.preview-header { padding: 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.preview-tabs { display: flex; gap: 0.5rem; background: #e2e8f0; padding: 4px; border-radius: 8px; }
.tab-btn { padding: 0.5rem 1rem; border: none; background: transparent; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-muted); }
.tab-btn.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }
.preview-body { flex: 1; overflow-y: auto; background: #f1f5f9; padding: 2rem; display: flex; justify-content: center; }
.preview-pane { display: none; width: 100%; flex-direction: column; align-items: center; }
.preview-pane.active { display: flex; }

/* Mockups */
.mock-phone { width: 300px; height: 600px; background: white; border-radius: 30px; border: 8px solid #1e293b; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.phone-header { height: 50px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; font-weight: 700; font-size: 0.8rem; }
.phone-profile { padding: 1rem; display: flex; flex-direction: column; align-items: center; border-bottom: 1px solid var(--border); }
.profile-pic-ring { width: 80px; height: 80px; border-radius: 50%; padding: 2px; border: 1px solid var(--border); margin-bottom: 0.5rem; }
.profile-img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.phone-feed { background: #f8fafc; height: 300px; display: flex; align-items: center; justify-content: center; }
.feed-img { width: 100%; object-fit: contain; }

.biz-card { width: 340px; height: 200px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 8px; margin-bottom: 1rem; }
.biz-card.light { background: white; }
.biz-card.dark { background: #1e293b; color: white; }
.card-logo-lg { width: 100px; }
.card-logo-sm { width: 50px; position: absolute; top: 20px; left: 20px; filter: invert(1); }

/* Export Form */
.dimension-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.input-dim { width: 100%; padding: 0.5rem; text-align: center; border: 1px solid var(--border); border-radius: 4px; }
.checkbox-label { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; font-size: 0.9rem; cursor: pointer; }
.btn-block { width: 100%; padding: 0.75rem; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; margin-bottom: 0.5rem; }

/* Debug */
.btn-debug-float { position: fixed; bottom: 80px; right: 20px; z-index: 9999; background: #0f172a; color: white; padding: 8px 12px; border-radius: 6px; border: 1px solid #334155; cursor: pointer; font-size: 11px; }


/* End of newstyle.css */ 

/* =========================================
   6. SIDEBAR & PROPERTIES UI (Scoped)
   ========================================= */
 
  .editor-sidebar .control-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.editor-sidebar .control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.editor-sidebar .grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.editor-sidebar .panel-section-divider {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Typography */
.editor-sidebar .lbl-tiny {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.editor-sidebar .range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.editor-sidebar .range-val {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
}

/* Inputs */
.editor-sidebar .input-std, 
.editor-sidebar .select-std {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    color: var(--text-main);
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
}

.editor-sidebar textarea.input-std {
    height: auto;
    padding: 8px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.editor-sidebar .input-std:focus, 
.editor-sidebar .select-std:focus {
    border-color: var(--primary);
}

/* Buttons & Tools */
.editor-sidebar .btn-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.editor-sidebar .btn-tool {
    height: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.editor-sidebar .btn-tool:hover {
    background: #f8fafc;
    color: var(--text-main);
}

/* Color Pickers */
.editor-sidebar .color-row-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.editor-sidebar .color-swatch-sm {
    width: 100%;
    height: 28px;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

/* States */
.editor-sidebar .prop-row-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
}

.editor-sidebar .prop-group-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 8px 0;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px; width: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -6px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

/* =========================================
   9. UTILITIES (Used in Generate Function)
   ========================================= */
.u-pb-2 { padding-bottom: 0.5rem !important; }
.u-pb-0 { padding-bottom: 0 !important; }
.u-mb-4 { margin-bottom: 1rem !important; }
.u-m-0 { margin: 0 !important; }
.u-flex-1 { flex: 1; }
.u-items-center { align-items: center; }
.u-accent-primary { accent-color: var(--primary); }