/* ============================================================
   Blog Backoffice — Apple-like Admin Theme
   ============================================================ */

:root {
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-apple: 0 2px 12px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);
    --shadow-apple-lg: 0 8px 30px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.1);
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bg-main: #f5f5f7;
    --bg-sidebar: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bs-link-color-rgb: 0, 0, 0;
    --bs-link-color: #000;
    --bs-link-hover-color: #000;
}

/* Typography */
body {
    font-family: var(--font-family);
    background: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Shadows */
.shadow-apple {
    box-shadow: var(--shadow-apple) !important;
}
.shadow-apple-lg {
    box-shadow: var(--shadow-apple-lg) !important;
}

/* Cards */
.card {
    border-radius: var(--radius-lg) !important;
    border: none;
    transition: box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: var(--shadow-apple-lg);
}
.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.sidebar-nav {
    padding: 0.5rem 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.15s ease;
    text-decoration: none;
}

.sidebar-nav .nav-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.sidebar-nav .nav-link:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.03);
}

.sidebar-nav .nav-link.active {
    color: var(--text-primary);
    background: rgba(0,0,0,0.05);
    font-weight: 600;
}

.nav-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 12px 24px;
}

/* Sidebar submenu */
.sidebar-submenu-toggle {
    position: relative;
}
.sidebar-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}
.sidebar-submenu-toggle:not(.collapsed) .sidebar-chevron {
    transform: rotate(90deg);
}
.sidebar-submenu {
    padding-left: 34px;
}
.sidebar-submenu .nav-link {
    padding: 7px 24px 7px 0;
    font-size: 0.85rem;
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-label {
    margin-bottom: 0.35rem;
}

/* iOS Toggle */
.form-check-input.ios-toggle {
    width: 44px;
    height: 24px;
    cursor: pointer;
    border-radius: 24px !important;
    border: none;
    background-color: #e5e5ea;
    transition: background-color 0.2s ease;
}
.form-check-input.ios-toggle:checked {
    background-color: #34c759;
    border-color: #34c759;
}
.form-check-input.ios-toggle:focus {
    box-shadow: none;
}
.form-switch .form-check-input.ios-toggle {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
}

/* Buttons */
.btn {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    transition: all 0.15s ease;
}

.btn-dark {
    background: #1d1d1f;
    border-color: #1d1d1f;
    border-radius: var(--radius-sm);
}
.btn-dark:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-secondary {
    border-color: rgba(0,0,0,0.15);
    color: var(--text-secondary);
}

.btn-light {
    background: rgba(0,0,0,0.04);
    border: none;
}
.btn-light:hover {
    background: rgba(0,0,0,0.08);
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Tables */
.table {
    font-size: 0.9rem;
}
.table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 14px 16px;
}
.table thead th:first-child {
    padding-left: 1.5rem;
}
.table thead th:last-child {
    padding-right: 1.5rem;
}
.table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    vertical-align: middle;
}
.table tbody td:first-child {
    padding-left: 1.5rem;
}
.table tbody td:last-child {
    padding-right: 1.5rem;
}
.table-hover tbody tr:hover {
    background: rgba(0,0,0,0.02);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.7em;
    font-size: 0.78rem;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md) !important;
    font-size: 0.9rem;
}

/* Select2 overrides */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(0,0,0,0.1);
    min-height: 42px;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    padding: 4px 8px;
}
.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-apple-lg);
    border: 1px solid rgba(0,0,0,0.08);
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 1rem 1.5rem 0.5rem;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 0.75rem 1.5rem 1rem;
}
.dataTables_wrapper .dataTables_filter input {
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 6px 12px;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: var(--radius-sm) !important;
    padding: 4px 24px 4px 8px;
    font-size: 0.85rem;
    min-height: auto;
    height: auto;
    display: inline-block;
    width: auto;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    border: none;
}

/* Upload dropzone */
.upload-dropzone {
    border: 2px dashed rgba(0,0,0,0.12) !important;
    background: rgba(0,0,0,0.01);
    transition: all 0.2s ease;
    cursor: pointer;
}
.upload-dropzone.dragover,
.upload-dropzone:hover {
    border-color: #0071e3 !important;
    background: rgba(0,113,227,0.03);
}

/* Media card */
.media-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.media-card:hover {
    transform: translateY(-2px);
}

/* Stat icon */
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

/* Page builder */
.builder-canvas {
    min-height: 200px;
    border: 2px dashed rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    padding: 12px;
    background: rgba(0,0,0,0.008);
}

.builder-empty-state {
    color: var(--text-secondary);
}
.builder-empty-icon {
    font-size: 2.5rem;
    color: rgba(0,0,0,0.12);
}

.builder-block {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.15s ease;
    position: relative;
}
.builder-block:hover {
    border-color: rgba(0,113,227,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.builder-block.selected {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.10);
}
.builder-block.sortable-ghost {
    opacity: 0.3;
    transform: scale(0.98);
}
.builder-block--hidden {
    opacity: 0.45;
}

/* Block type accents */
.builder-block--section {
    border-left: 3px solid rgba(0,113,227,0.3);
}
.builder-block--rich_text {
    border-left: 3px solid rgba(16,185,129,0.35);
}
.builder-block--image {
    border-left: 3px solid rgba(245,158,11,0.4);
}
.builder-block--gallery {
    border-left: 3px solid rgba(236,72,153,0.35);
}
.builder-block--video_embed {
    border-left: 3px solid rgba(239,68,68,0.35);
}
.builder-block--quote {
    border-left: 3px solid rgba(139,92,246,0.35);
}
.builder-block--cta_button {
    border-left: 3px solid rgba(59,130,246,0.35);
}
.builder-block--divider {
    border-left: 3px solid rgba(0,0,0,0.1);
}

.builder-block-toolbar {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.15s ease;
    align-items: center;
    z-index: 2;
}
.builder-block:hover .builder-block-toolbar {
    opacity: 1;
}

.builder-block-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.builder-block-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(0,0,0,0.05);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.builder-block-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Block menu */
.block-menu {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-apple-lg);
    padding: 8px;
    display: none;
    position: absolute;
    z-index: 10;
    min-width: 220px;
}
.block-menu.show {
    display: block;
}
.block-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-primary);
    transition: background 0.1s ease;
}
.block-menu-item:hover {
    background: rgba(0,0,0,0.04);
}
.block-menu-item i {
    font-size: 1.1rem;
    color: var(--text-secondary);
    width: 20px;
    text-align: center;
}

/* Login card */
.login-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow-apple-lg);
    }
    .main-content {
        margin-left: 0;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

/* Flatpickr */
.flatpickr-calendar {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-apple-lg) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background: #1d1d1f;
    color: white;
}

/* Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Border dashed helper */
.border-dashed {
    border-style: dashed !important;
}

/* Section column preview in builder */
.section-preview-header {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.section-columns-preview .section-column-dropzone {
    background: rgba(0,0,0,0.015);
    border: 1px dashed rgba(0,0,0,0.10);
    border-radius: var(--radius-sm);
    padding: 8px;
    min-height: 50px;
}

.col-child-block {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 6px;
    padding: 7px 10px;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.col-child-block:hover {
    border-color: #0071e3;
    background: rgba(0,113,227,0.02);
}

.col-child-main {
    flex: 1;
    min-width: 0;
}

.col-child-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.col-child-snippet {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    opacity: 0.7;
}
.col-child-snippet img {
    vertical-align: middle;
}

.col-child-delete {
    opacity: 0;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
    margin-left: 4px;
}
.col-child-block:hover .col-child-delete {
    opacity: 1;
}

.col-add-block-btn {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-style: dashed;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}
.section-column-dropzone:hover .col-add-block-btn {
    opacity: 1;
}

/* Builder block handle */
.builder-block-handle {
    color: var(--text-secondary);
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
}

/* Rich text preview */
.rich-text-preview-wrap {
    position: relative;
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.rich-text-preview-wrap:hover {
    background: rgba(0,0,0,0.01);
}
.rich-text-preview-empty {
    padding: 12px;
    border: 1px dashed rgba(0,0,0,0.10);
    border-radius: 6px;
    text-align: center;
}
.rich-text-preview-heading {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rich-text-preview-content {
    max-height: 72px;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-secondary);
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}
.rich-text-preview-content h2,
.rich-text-preview-content h3,
.rich-text-preview-content h4,
.rich-text-preview-content h5,
.rich-text-preview-content h6 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0 2px;
}
.rich-text-preview-content p {
    margin: 0 0 4px;
}
.rich-text-preview-content ul,
.rich-text-preview-content ol {
    margin: 0 0 4px;
    padding-left: 16px;
}
.rich-text-preview-content li {
    margin-bottom: 1px;
}
.rich-text-preview-content blockquote {
    border-left: 2px solid rgba(0,0,0,0.1);
    padding-left: 8px;
    margin: 4px 0;
    font-style: italic;
}
.rich-text-preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.68rem;
    color: var(--text-secondary);
    opacity: 0.6;
}
.rich-text-edit-hint {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
    backdrop-filter: blur(4px);
}
.builder-block:hover .rich-text-edit-hint {
    display: block;
}
.builder-block:hover .rich-text-preview-content {
    opacity: 0.4;
}
.builder-block:hover .rich-text-preview-heading {
    opacity: 0.4;
}

/* Video preview */
.video-preview-wrap {
    position: relative;
    display: inline-block;
}
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: none;
}

/* Quote preview */
.quote-preview-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 4px 0;
}
.quote-preview-bar {
    width: 3px;
    min-height: 28px;
    border-radius: 2px;
    background: rgba(139,92,246,0.4);
    flex-shrink: 0;
}
.quote-preview-text {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
}
.quote-preview-author {
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 2px;
}

.rich-text-inline-editor {
    min-height: 200px;
}
.rich-text-inline-editor .tox-tinymce {
    border-radius: 8px !important;
    border-color: #dee2e6 !important;
}

/* Status button group active states */
.status-btn.active[data-status="draft"] {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}
.status-btn.active[data-status="published"] {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}
.status-btn.active[data-status="scheduled"] {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* ===== Inspector Modal ===== */
#inspectorModal .modal-dialog {
    max-width: 92vw;
}
#inspectorModal .modal-content {
    border: none;
    height: 80vh;
    display: flex;
    flex-direction: column;
}
#inspectorModal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 1rem;
}

/* Two-column inspector layout */
.inspector-layout {
    flex: 1;
    min-height: 0;
}
.inspector-content-col {
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.inspector-content-col > .mb-3:last-child,
.inspector-content-col > .mb-3:only-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.inspector-content-col .tox-tinymce {
    flex: 1 !important;
    height: auto !important;
    min-height: 300px !important;
}
.inspector-style-col {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.012);
    margin: -1rem -1.5rem -1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--radius-lg) 0;
    overflow-y: auto;
}

/* Style panel tabs */
.style-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    padding: 3px;
}
.style-tab {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    white-space: nowrap;
    line-height: 1.2;
}
.style-tab:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.03);
}
.style-tab.active {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.style-tab i {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.style-tab-content {
    display: none;
}
.style-tab-content.active {
    display: block;
}

/* ===== Style Settings in Inspector ===== */

.inspector-style-panel .form-select,
.inspector-style-panel .form-control {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.inspector-style-panel .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
    color: var(--text-secondary);
}

.inspector-style-panel .btn-group {
    display: flex;
}

.inspector-style-panel .btn-group .btn {
    flex: 1;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.inspector-style-panel .btn-group .btn.active {
    background: #0071e3;
    border-color: #0071e3;
    color: #fff;
}

.inspector-style-panel .btn-group .btn:not(.active):hover {
    background: rgba(0,0,0,0.06);
}

/* Color swatches */
.style-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    position: relative;
}
.style-color-swatch .swatch-check {
    font-size: 16px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}
.style-color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
.style-color-swatch.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px #0071e3;
    border-color: transparent !important;
}
.style-color-swatch.active .swatch-check {
    opacity: 1;
    transform: scale(1);
}
.style-color-swatch.active:hover {
    transform: scale(1.18);
    box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px #0071e3, 0 4px 12px rgba(0,113,227,0.25);
}

/* Setting toggle row (iOS-style) */
.setting-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.025);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.setting-toggle-row:hover {
    background: rgba(0,0,0,0.045);
}
.setting-toggle-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0,113,227,0.1);
    color: #0071e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.setting-toggle-text {
    flex: 1;
    min-width: 0;
}
.setting-toggle-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}
.setting-toggle-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-top: 1px;
}
.setting-toggle-row .form-check {
    padding-left: 0;
    flex-shrink: 0;
}

/* ===== Gallery block in builder ===== */
.gallery-thumb-wrap {
    display: inline-block;
    position: relative;
}
.gallery-thumb-wrap .gallery-remove-img {
    opacity: 0;
    transition: opacity 0.15s ease;
}
.gallery-thumb-wrap:hover .gallery-remove-img {
    opacity: 1;
}
.gallery-inspector-thumb {
    position: relative;
}
.gallery-inspector-thumb .gallery-inspector-remove {
    opacity: 0;
    transition: opacity 0.15s ease;
}
.gallery-inspector-thumb:hover .gallery-inspector-remove {
    opacity: 1;
}
