/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: #e0e0e0;
    background: #1a1a2e;
    font-size: 14px;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.login-container { width: 100%; max-width: 400px; padding: 20px; }
.login-card {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 12px;
    padding: 40px 32px;
}
.login-card h1 { color: #e94560; font-size: 24px; text-align: center; margin-bottom: 4px; }
.login-subtitle { text-align: center; color: #8892b0; margin-bottom: 28px; font-size: 14px; }

/* ===== ALERTS ===== */
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.alert-error { background: rgba(233,69,96,0.15); color: #e94560; border: 1px solid rgba(233,69,96,0.3); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #a0a8c0; font-size: 13px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #e94560;
}
.form-group input[type="color"] {
    padding: 2px;
    height: 36px;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background: #16213e;
    color: #e0e0e0;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn:hover { background: #0f3460; }
.btn-primary { background: #e94560; border-color: #e94560; color: #fff; }
.btn-primary:hover { background: #c73a52; }
.btn-danger { color: #e94560; }
.btn-danger:hover { background: rgba(233,69,96,0.15); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 6px;
    background: transparent; color: #8892b0;
    cursor: pointer; font-size: 14px; transition: all 0.2s;
}
.btn-icon:hover { background: #0f3460; color: #e94560; }
.inline { display: inline; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.form-card { max-width: 500px; background: #16213e; border: 1px solid #0f3460; border-radius: 12px; padding: 32px; }

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 60px;
    background: #0d1117;
    border-right: 1px solid #1e2a3a;
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 0;
    z-index: 100;
}
.sidebar-logo {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #e94560; border-radius: 10px;
    color: #fff; font-weight: 700; font-size: 14px;
    margin-bottom: 20px;
}
.sidebar-logo .logo-icon { display: none; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0 8px; }
.sidebar-link {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px;
    border-radius: 8px;
    color: #8892b0;
    text-decoration: none;
    font-size: 10px;
    transition: all 0.2s;
}
.sidebar-link i { font-size: 18px; }
.sidebar-link:hover { color: #e0e0e0; background: #161b22; }
.sidebar-link.active { color: #e94560; background: rgba(233,69,96,0.1); }
.sidebar-footer { width: 100%; padding: 0 8px; }

/* ===== MAIN CONTENT ===== */
.main-content { margin-left: 60px; padding: 24px; min-height: 100vh; }

/* ===== DASHBOARD ===== */
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dashboard-header h1 { font-size: 22px; color: #fff; }

.empty-state {
    text-align: center; padding: 60px 20px;
    background: #16213e; border: 1px solid #0f3460; border-radius: 12px;
}
.empty-state i { font-size: 48px; color: #0f3460; margin-bottom: 16px; }
.empty-state p { color: #8892b0; margin-bottom: 20px; }

.carousel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.carousel-card {
    background: #16213e; border: 1px solid #0f3460; border-radius: 10px;
    overflow: hidden; transition: border-color 0.2s;
}
.carousel-card:hover { border-color: #e94560; }
.carousel-card-preview {
    height: 120px; background: #0f3460;
    display: flex; align-items: center; justify-content: center;
    color: #1a1a2e; font-size: 36px;
}
.carousel-card-body { padding: 12px 14px; }
.carousel-card-body h3 { font-size: 14px; color: #fff; margin-bottom: 4px; }
.carousel-card-meta { font-size: 12px; color: #8892b0; }
.carousel-card-actions { padding: 8px 14px; display: flex; gap: 6px; border-top: 1px solid #0f3460; }

/* ===== EDITOR LAYOUT ===== */
.editor-body .main-content { padding: 0; display: flex; flex-direction: column; height: 100vh; }
.editor-main { padding: 0 !important; display: flex; flex-direction: column; height: 100vh; }

.editor-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px;
    background: #0d1117;
    border-bottom: 1px solid #1e2a3a;
    flex-shrink: 0;
}
.editor-title-input {
    background: transparent; border: 1px solid transparent; border-radius: 6px;
    color: #fff; font-size: 15px; font-weight: 600; padding: 4px 8px;
    font-family: inherit;
}
.editor-title-input:hover { border-color: #1e2a3a; }
.editor-title-input:focus { outline: none; border-color: #e94560; }
.editor-project-select {
    background: #1a1a2e; border: 1px solid #1e2a3a; border-radius: 6px;
    color: #8892b0; font-size: 12px; padding: 4px 8px; font-family: inherit;
    cursor: pointer; max-width: 160px;
}
.editor-project-select:focus { outline: none; border-color: #e94560; color: #fff; }
.editor-header-actions { display: flex; gap: 8px; }

.editor-columns { display: flex; flex: 1; overflow: hidden; }

.editor-col {
    display: flex; flex-direction: column;
    border-right: 1px solid #1e2a3a;
    overflow-y: auto;
}

.col-header {
    padding: 10px 12px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; font-weight: 600; color: #8892b0; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid #1e2a3a;
    flex-shrink: 0;
    background: #0d1117;
}

/* Col 1: Slides */
.editor-col-slides { width: 160px; min-width: 160px; background: #111827; }
.slide-list { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; }
.slide-thumb {
    position: relative;
    aspect-ratio: 4/5;
    border: 2px solid #1e2a3a;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
    background: #1a1a2e;
}
.slide-thumb:hover { border-color: #8892b0; }
.slide-thumb.active { border-color: #e94560; }
.slide-thumb-number {
    position: absolute; top: 4px; left: 4px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 10px; padding: 1px 5px; border-radius: 3px;
}
.slide-thumb-actions {
    position: absolute; top: 4px; right: 4px;
    display: flex; gap: 2px; opacity: 0; transition: opacity 0.2s;
}
.slide-thumb:hover .slide-thumb-actions { opacity: 1; }
.slide-thumb-actions button {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.7); border: none; border-radius: 3px;
    color: #fff; font-size: 9px; cursor: pointer;
}
.slide-thumb-actions button:hover { background: #e94560; }
.slide-thumb-mini {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    pointer-events: none;
}

/* Col 2: Block Palette */
.editor-col-blocks { width: 140px; min-width: 140px; background: #111827; }
.block-palette { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.palette-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    background: #1a1a2e; border: 1px solid #1e2a3a; border-radius: 6px;
    color: #8892b0; font-size: 12px;
    cursor: grab; transition: all 0.2s; user-select: none;
}
.palette-item:hover { border-color: #e94560; color: #e0e0e0; }
.palette-item i { font-size: 14px; width: 18px; text-align: center; }
.palette-item.dragging { opacity: 0.5; }

/* Col 3: Canvas */
.editor-col-canvas {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: #0d1117;
    position: relative;
    border-right: 1px solid #1e2a3a;
    padding: 16px;
}
.canvas-toolbar {
    flex-shrink: 0;
    display: flex; gap: 6px;
    margin-bottom: 10px;
}
.canvas-toolbar .btn.active { background: #e94560; border-color: #e94560; color: #fff; }

/* Margin Guide */
.canvas-guide {
    position: absolute;
    top: 10%; left: 10%;
    width: 80%; height: 80%;
    border: 1px dashed rgba(233,69,96,0.5);
    pointer-events: none;
    z-index: 50;
    display: none;
}
.canvas-guide.visible { display: block; }
.canvas-grid {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 50;
    background-image:
        linear-gradient(to right, rgba(233,69,96,0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(233,69,96,0.3) 1px, transparent 1px);
    background-size: 33.333% 33.333%;
}
.canvas-grid.visible { display: block; }
.canvas-scroll {
    width: 100%;
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    display: flex;
    align-items: center;
}
.canvas-strip {
    display: flex;
    gap: 0px;
    padding: 0;
    margin: 0 auto;
    position: relative;
}
.canvas-slide {
    width: 340px;
    min-width: 340px;
    aspect-ratio: 4/5;
    background: #fff;
    position: relative;
    container-type: inline-size;
    overflow: visible;
    cursor: default;
    flex-shrink: 0;
}
.canvas-slide.active-slide {
    outline: 3px solid #e94560;
    outline-offset: -1px;
}
/* Blocks overlay sits above all slide backgrounds */
.canvas-blocks-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
    padding: 0; margin: 0; box-sizing: border-box;
}
.canvas-blocks-overlay .canvas-block { pointer-events: auto; }
.canvas-slide.drag-over { outline: 2px dashed #e94560; outline-offset: -2px; }
.canvas-drop-hint {
    display: none;
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: #e94560; color: #fff; padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 500;
}
.canvas-drop-hint.visible { display: block; }

/* Canvas blocks */
.canvas-block {
    position: relative;
    cursor: pointer;
    transition: outline 0.15s;
    outline: 2px solid transparent;
    outline-offset: -2px;
}
.canvas-block:hover { outline-color: rgba(233,69,96,0.4); }
.canvas-block.selected { outline-color: #e94560; }
.canvas-block-delete {
    position: absolute; top: 4px; right: 4px;
    width: 18px; height: 18px;
    background: #e94560; border: none; border-radius: 50%;
    color: #fff; font-size: 9px;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
}
.canvas-block.selected .canvas-block-delete { display: flex; }

/* Creator label */
.canvas-creator {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 60;
    text-align: center;
}

/* Col 4: Layers */
.editor-col-layers { width: 160px; min-width: 160px; background: #111827; }
.layers-list { padding: 4px; flex: 1; overflow-y: auto; }
.layer-item {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px; color: #8892b0;
    cursor: pointer; user-select: none;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.layer-item:hover { background: #1a1a2e; color: #e0e0e0; }
.layer-item.active { background: rgba(233,69,96,0.1); border-color: #e94560; color: #e0e0e0; }
.layer-item i.layer-icon { width: 16px; text-align: center; font-size: 11px; flex-shrink: 0; }
.layer-item .layer-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-item .layer-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s; }
.layer-item:hover .layer-actions, .layer-item.active .layer-actions { opacity: 1; }
.layer-item .layer-actions button {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: 3px;
    color: #8892b0; font-size: 10px; cursor: pointer;
}
.layer-item .layer-actions button:hover { background: #0f3460; color: #e94560; }
.layer-drag-handle { cursor: grab; color: #555; font-size: 10px; }
.layer-drag-handle:active { cursor: grabbing; }
.layer-item.dragging-layer { opacity: 0.4; }
.layer-item.drag-over-layer { border-top: 2px solid #e94560; }
.layer-item.layer-external { opacity: 0.6; border-left: 2px solid #0f3460; }
.layer-slide-tag {
    display: inline-block;
    background: #0f3460; color: #8892b0;
    font-size: 9px; padding: 0 4px; border-radius: 3px;
    margin-right: 3px; vertical-align: middle;
}

/* Col 5: Properties */
.editor-col-props { width: 280px; min-width: 280px; background: #111827; }
.props-panel { padding: 12px; overflow-y: auto; flex: 1; }

.props-section { margin-bottom: 16px; }
.props-section-title {
    font-size: 11px; font-weight: 600; color: #8892b0;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px; padding-bottom: 4px;
    border-bottom: 1px solid #1e2a3a;
}

.prop-row { margin-bottom: 10px; }
.prop-row label {
    display: block; font-size: 11px; color: #8892b0;
    margin-bottom: 3px;
}
.prop-row input, .prop-row select, .prop-row textarea {
    width: 100%; padding: 6px 8px;
    background: #1a1a2e; border: 1px solid #1e2a3a; border-radius: 4px;
    color: #e0e0e0; font-size: 12px; font-family: inherit;
}
.prop-row input:focus, .prop-row select:focus, .prop-row textarea:focus {
    outline: none; border-color: #e94560;
}
.prop-row input[type="color"] { padding: 2px; height: 30px; cursor: pointer; }
.prop-row textarea { resize: vertical; min-height: 60px; }

.prop-row-inline { display: flex; gap: 6px; }
.prop-row-inline .prop-row { flex: 1; margin-bottom: 0; }

.prop-row input[type="range"] { padding: 0; }

/* Checkbox/toggle */
.prop-toggle {
    display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; color: #e0e0e0;
}
.prop-toggle input { width: auto; }

/* Upload button inside props */
.prop-upload-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; margin-top: 4px;
    background: #1a1a2e; border: 1px dashed #0f3460; border-radius: 4px;
    color: #8892b0; font-size: 11px; cursor: pointer;
    transition: all 0.2s;
}
.prop-upload-btn:hover { border-color: #e94560; color: #e94560; }
.prop-upload-btn input[type="file"] { display: none; }

/* Color Picker */
.color-picker-wrap, .color-picker-group { position: relative; display: inline-block; }
.color-swatch {
    width: 28px; height: 28px; border-radius: 6px; border: 2px solid #0f3460;
    cursor: pointer;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px; background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}
.color-swatch:hover { border-color: #e94560; }
.color-swatch-inner {
    width: 100%; height: 100%; border-radius: 4px;
}
.color-popup {
    display: none; position: absolute; top: 34px; left: 0; z-index: 200;
    background: #16213e; border: 1px solid #0f3460; border-radius: 8px;
    padding: 10px; width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.color-popup.open { display: block; }
.color-popup input[type="color"] {
    width: 100%; height: 40px; padding: 0; border: 1px solid #0f3460;
    border-radius: 4px; cursor: pointer; margin-bottom: 8px;
}
.color-popup .cp-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.color-popup .cp-label { font-size: 10px; color: #8892b0; width: 28px; flex-shrink: 0; }
.color-popup .cp-hex-input {
    flex: 1; padding: 4px 6px; background: #1a1a2e; border: 1px solid #1e2a3a;
    border-radius: 4px; color: #e0e0e0; font-size: 12px; font-family: monospace;
}
.color-popup .cp-hex-input:focus { outline: none; border-color: #e94560; }
.color-popup input[type="range"] { flex: 1; padding: 0; }
.color-popup .cp-alpha-val { font-size: 11px; color: #8892b0; width: 32px; text-align: right; }

/* ===== ZOOM CONTROLS ===== */
.toolbar-sep { width: 1px; height: 20px; background: #1e2a3a; margin: 0 4px; }
.zoom-controls { display: flex; align-items: center; gap: 4px; }
.zoom-dropdown { position: relative; display: flex; align-items: center; }
.zoom-input {
    width: 42px; background: #1a1a2e; border: 1px solid #1e2a3a; border-radius: 4px;
    color: #e0e0e0; font-size: 11px; padding: 3px 4px; text-align: center;
    font-family: inherit; -moz-appearance: textfield;
}
.zoom-input::-webkit-outer-spin-button,
.zoom-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.zoom-input:focus { outline: none; border-color: #e94560; }
.zoom-pct { color: #8892b0; font-size: 11px; margin-left: 1px; margin-right: 4px; }
.zoom-presets {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    margin-top: 4px; background: #16213e; border: 1px solid #0f3460; border-radius: 6px;
    padding: 4px; z-index: 100; white-space: nowrap;
}
.zoom-presets.open { display: flex; gap: 2px; }
.zoom-presets button {
    background: transparent; border: 1px solid transparent; border-radius: 4px;
    color: #8892b0; cursor: pointer; padding: 4px 8px; font-size: 11px;
}
.zoom-presets button:hover { background: #1a1a2e; color: #fff; border-color: #0f3460; }

/* ===== RANGE + NUMBER INPUTS ===== */
.prop-range-wrap { display: flex; align-items: center; gap: 6px; flex: 1; }
.prop-range-wrap input[type="range"] {
    flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
    background: #1e2a3a; border-radius: 2px; outline: none;
}
.prop-range-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px;
    background: #e94560; border-radius: 50%; cursor: pointer;
    border: 2px solid #16213e;
}
.prop-range-wrap input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px;
    background: #e94560; border-radius: 50%; cursor: pointer;
    border: 2px solid #16213e;
}
.prop-range-num {
    width: 50px !important; min-width: 50px; text-align: center;
    flex-shrink: 0;
}

/* ===== IMAGE HANDLES ===== */
.img-handle {
    position: absolute; z-index: 10;
    width: 22px; height: 22px;
    background: #16213e; border: 1px solid #e94560; border-radius: 50%;
    color: #e94560; font-size: 9px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; pointer-events: auto;
}
.img-handle:hover { background: #e94560; color: #fff; }
.img-resize-handle { top: -11px; right: -11px; cursor: nwse-resize; }
.img-resize-w-handle { right: -11px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.img-resize-h-handle { top: -11px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.img-rotate-handle { top: -11px; left: -11px; cursor: grab; }
.img-rotate-handle::after { display: none; }
.img-flip-bar {
    position: absolute; bottom: -13px; left: -11px;
    display: flex; gap: 2px; pointer-events: auto;
}
.img-flip-btn, .img-fit-btn { position: relative; border-radius: 4px; font-size: 8px !important; font-weight: 600; }
.img-flip-btn.active, .img-fit-btn.active { background: #e94560; color: #fff; }
.img-bar-sep { width: 1px; height: 14px; background: #0f3460; margin: 0 2px; }

/* ===== LOCK & HIDDEN ===== */
.canvas-block-lock {
    position: absolute; top: 2px; right: 2px;
    color: rgba(233,69,96,0.6); font-size: 10px;
    pointer-events: none;
}
.block-locked { cursor: default !important; }
.block-hidden { pointer-events: auto !important; }
.layer-locked .layer-name { color: #e94560; }
.layer-hidden .layer-name { color: #555; text-decoration: line-through; }
.layer-actions button[data-action="lock"] .fa-lock { color: #e94560; }
.layer-actions button[data-action="hide"] .fa-eye-slash { color: #555; }
.lock-toggle-row { display: flex; justify-content: center; }

/* ===== BOX BLOCKS ===== */
.canvas-box { border: 1px dashed rgba(233,69,96,0.3); }
.canvas-box.selected { border: 1px dashed rgba(233,69,96,0.8); }
.canvas-child-block { position: relative !important; }
.layer-child { padding-left: 24px !important; opacity: 0.85; }
.layer-child::before {
    content: ''; position: absolute; left: 10px; top: 50%;
    width: 8px; height: 1px; background: #0f3460;
}
.layer-box { border-left: 2px solid #e94560; }
.drag-over-box { background: rgba(233,69,96,0.2) !important; border: 1px dashed #e94560 !important; }

/* ===== WYSIWYG INLINE EDITOR ===== */
.wysiwyg-panel { flex-direction: column !important; gap: 0 !important; }
.wysiwyg-toolbar-inline {
    display: flex; gap: 2px; align-items: center;
    background: #0d1b2a; border: 1px solid #0f3460; border-bottom: none;
    border-radius: 6px 6px 0 0; padding: 4px 6px;
}
.wysiwyg-toolbar-inline button {
    background: transparent; border: 1px solid transparent; border-radius: 4px;
    color: #8892b0; cursor: pointer; padding: 3px 6px; font-size: 11px;
    transition: all 0.15s;
}
.wysiwyg-toolbar-inline button:hover { background: #1a1a2e; color: #fff; border-color: #0f3460; }
.wysiwyg-sep { width: 1px; height: 16px; background: #0f3460; margin: 0 2px; }
.wysiwyg-color {
    display: flex; align-items: center; cursor: pointer;
    color: #8892b0; font-size: 11px; padding: 3px 4px;
    border-radius: 4px; border: 1px solid transparent;
    transition: all 0.15s; position: relative;
}
.wysiwyg-color:hover { background: #1a1a2e; color: #fff; border-color: #0f3460; }
.wysiwyg-color input[type="color"] {
    position: absolute; bottom: -2px; left: 0;
    width: 100%; height: 3px; padding: 0; border: none;
    cursor: pointer; opacity: 0.8;
}
.wysiwyg-editable {
    background: #1a1a2e; border: 1px solid #0f3460; border-radius: 0 0 6px 6px;
    color: #e0e0e0; padding: 8px; min-height: 60px; max-height: 150px;
    overflow-y: auto; font-size: 12px; line-height: 1.5; outline: none;
    font-family: inherit; word-break: break-word;
}
.wysiwyg-editable:focus { border-color: #e94560; }

/* ===== SETTINGS PAGE ===== */
.settings-container { max-width: 800px; padding: 20px; }
.settings-section { margin-bottom: 32px; }
.settings-section h2 { color: #e0e0e0; font-size: 18px; margin-bottom: 4px; }
.settings-desc { color: #8892b0; font-size: 13px; margin-bottom: 16px; }
.settings-card {
    background: #16213e; border: 1px solid #0f3460; border-radius: 8px;
    padding: 16px; margin-bottom: 12px;
}
.settings-card h3 { color: #e0e0e0; font-size: 14px; margin-bottom: 12px; }
.settings-input {
    background: #1a1a2e; border: 1px solid #1e2a3a; border-radius: 6px;
    color: #e0e0e0; padding: 8px 10px; font-size: 13px; width: 100%;
    font-family: inherit;
}
.settings-input:focus { outline: none; border-color: #e94560; }
.font-list { display: flex; flex-direction: column; gap: 6px; }
.font-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; background: #1a1a2e; border-radius: 6px;
}
.font-preview { flex: 1; color: #e0e0e0; font-size: 14px; }
.font-badge {
    font-size: 10px; color: #8892b0; background: #0d1b2a; padding: 2px 8px;
    border-radius: 10px; text-transform: uppercase;
}
.font-delete { color: #8892b0; }
.font-delete:hover { color: #e94560; }
.defaults-card .prop-row { margin-bottom: 8px; }
.defaults-card .prop-row label { min-width: 140px; color: #8892b0; font-size: 12px; }
.defaults-card input, .defaults-card select {
    background: #1a1a2e; border: 1px solid #1e2a3a; border-radius: 4px;
    color: #e0e0e0; padding: 4px 8px; font-size: 12px;
}
.defaults-card input:focus, .defaults-card select:focus { outline: none; border-color: #e94560; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1e2a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #0f3460; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .editor-col-blocks { width: 50px; min-width: 50px; }
    .palette-item span { display: none; }
    .palette-item { justify-content: center; padding: 10px; }
    .editor-col-slides { width: 120px; min-width: 120px; }
    .editor-col-props { width: 240px; min-width: 240px; }
}
