/* ==================================================================
 * Nagish Express dashboard – UI modes
 *   1. Language / theme switcher (sidebar)
 *   2. RTL layout  (html[dir="rtl"])
 *   3. Dark mode   (html.ng-dark)
 * Loaded after the Vite CSS, no build step needed.
 * ================================================================== */

/* ---------- 1. Switcher ---------- */
.ng-ui-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: #254573 solid thin;
}
.ng-ui-switcher form { margin: 0; }
.ng-lang-switch {
    display: inline-flex;
    border: 1px solid #254573;
    border-radius: 999px;
    overflow: hidden;
}
.ng-lang-switch button {
    background: transparent;
    color: #cbd5e1;
    border: 0;
    padding: 4px 12px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
.ng-lang-switch button[aria-pressed="true"] {
    background: #0578FA;
    color: #fff;
    cursor: default;
}
.ng-theme-toggle {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #254573;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ng-theme-toggle:hover,
.ng-lang-switch button:not([aria-pressed="true"]):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ng-ui-switcher button:focus-visible { outline: 2px solid #00C0FF; outline-offset: 2px; }
.ng-theme-toggle .ng-icon-sun { display: none; }
html.ng-dark .ng-theme-toggle .ng-icon-sun { display: inline; }
html.ng-dark .ng-theme-toggle .ng-icon-moon { display: none; }

/* ---------- 2. RTL layout ---------- */
html[dir="rtl"] #default-sidebar {
    left: auto;
    right: 0;
}
@media (max-width: 767.98px) {
    html[dir="rtl"] #default-sidebar.-translate-x-full { transform: translateX(100%) !important; }
}
@media (min-width: 768px) {
    html[dir="rtl"] .md\:ml-64 { margin-left: 0; margin-right: 16rem; }
}
@media (min-width: 1536px) {
    html[dir="rtl"] .\32xl\:ml-80 { margin-left: 0; margin-right: 20rem; }
}
html[dir="rtl"] #triggerElSideBarMenu { right: auto; left: 1rem; float: left; }
html[dir="rtl"] .dashboard-menu .absolute.right-6 { right: auto; left: 1.5rem; }
html[dir="rtl"] .dashboard-menu img { margin-right: 0; margin-left: .5rem; }
html[dir="rtl"] .eye-set-to-input { right: auto; left: 8px; }
html[dir="rtl"] .text-left { text-align: right; }
html[dir="rtl"] .text-right { text-align: left; }
html[dir="rtl"] .mr-7 { margin-right: 0; margin-left: 1.75rem; }
html[dir="rtl"] .float-right { float: left; }
html[dir="rtl"] .float-left { float: right; }
/* keep the responsive overrides working (site list cells are float-left on mobile, md:float-none on desktop) */
@media (min-width: 640px) {
    html[dir="rtl"] .sm\:text-left { text-align: right; }
    html[dir="rtl"] .sm\:text-right { text-align: left; }
}
@media (min-width: 768px) {
    html[dir="rtl"] .md\:float-none { float: none; }
}
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow { right: auto; left: 1px; }
/* code snippets and URLs stay left-to-right */
html[dir="rtl"] .customsnippet,
html[dir="rtl"] .script-code,
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"] { direction: ltr; text-align: left; }

/* ---------- 3. Dark mode ---------- */
html.ng-dark {
    color-scheme: dark;
    --ng-bg: #0b1220;
    --ng-surface: #131c2e;
    --ng-surface-2: #1a2540;
    --ng-border: #3a4d70;
    --ng-text: #e2e8f0;
    --ng-text-muted: #94a3b8;
    --ng-accent: #3b93ff;
}
html.ng-dark body,
html.ng-dark .bg-gray-100,
html.ng-dark .min-h-screen { background-color: var(--ng-bg) !important; color: var(--ng-text); }

/* surfaces */
html.ng-dark .bg-white,
html.ng-dark .bg-gray-50,
html.ng-dark .search-form input,
html.ng-dark .widget-settings-footer,
html.ng-dark .list_of_website table tbody tr td,
html.ng-dark .modal-content,
html.ng-dark .dropdown-menu,
html.ng-dark [role="dialog"] > div { background-color: var(--ng-surface) !important; color: var(--ng-text); }

html.ng-dark .bg-light-blue,
html.ng-dark .bg-light1-blue,
html.ng-dark .tab-nav-item,
html.ng-dark .widget-setting #widget-settings-tab,
html.ng-dark .widget-setting #widget-install-tab,
html.ng-dark table th,
html.ng-dark .bg-gray-200\/40,
html.ng-dark .hover\:bg-gray-100:hover { background: var(--ng-surface-2) !important; }

/* text */
html.ng-dark,
html.ng-dark label,
html.ng-dark .custom-label,
html.ng-dark .login-title,
html.ng-dark .create_date,
html.ng-dark .website_url a,
html.ng-dark .text-black,
html.ng-dark .text-gray-900,
html.ng-dark .text-gray-800,
html.ng-dark h1, html.ng-dark h2, html.ng-dark h3, html.ng-dark h4, html.ng-dark h5, html.ng-dark h6,
html.ng-dark td, html.ng-dark th { color: var(--ng-text) !important; }
html.ng-dark .text-gray-600,
html.ng-dark .text-gray-500,
html.ng-dark .text-gray-400,
html.ng-dark .text-slate-400 { color: var(--ng-text-muted) !important; }
html.ng-dark .tab-nav-item { color: var(--ng-accent) !important; }
html.ng-dark .tab-nav-item:hover,
html.ng-dark .tab-nav-item.active { background: #0578FA !important; color: #fff !important; }

/* borders */
html.ng-dark .border,
html.ng-dark .border-b,
html.ng-dark .border-t-2,
html.ng-dark .border-slate-300,
html.ng-dark .border-gray-200,
html.ng-dark .border-gray-300,
html.ng-dark .border-gray,
html.ng-dark .gray-border,
html.ng-dark table, html.ng-dark td, html.ng-dark th { border-color: var(--ng-border) !important; }

/* form fields */
html.ng-dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="color"]),
html.ng-dark select,
html.ng-dark textarea,
html.ng-dark .custom-input,
html.ng-dark .login-form input,
html.ng-dark .select2-container--default .select2-selection--single,
html.ng-dark .select2-dropdown {
    background-color: var(--ng-surface) !important;
    border-color: var(--ng-border) !important;
    color: var(--ng-text) !important;
}
html.ng-dark input:not([type="checkbox"]):not([type="radio"]):focus,
html.ng-dark select:focus,
html.ng-dark textarea:focus { border-color: var(--ng-accent) !important; box-shadow: 0 0 0 2px rgba(59, 147, 255, .25) !important; }
html.ng-dark input::placeholder,
html.ng-dark textarea::placeholder { color: var(--ng-text-muted); }
html.ng-dark .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ng-text) !important; }
html.ng-dark .select2-container--default .select2-results__option--highlighted[aria-selected],
html.ng-dark .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: #0578FA; }
html.ng-dark .select2-search__field { background: var(--ng-surface) !important; color: var(--ng-text) !important; }
html.ng-dark .custom-checkbox,
html.ng-dark span.checkbox-custom-input { border-color: var(--ng-text-muted) !important; }

/* buttons that were white */
html.ng-dark .widget-setting-bt { background: transparent !important; }
html.ng-dark .status-bt { background: #334155; color: var(--ng-text); }
html.ng-dark .status-bt.active { background: #80C948; color: #fff; }

/* misc */
html.ng-dark .custom_or_devider:after { background-color: var(--ng-surface) !important; color: var(--ng-text-muted) !important; }
html.ng-dark div[modal-backdrop] { background-color: rgba(0, 0, 0, .6) !important; }
html.ng-dark .shadow,
html.ng-dark .shadow-sm,
html.ng-dark .shadow-md,
html.ng-dark .shadow-lg,
html.ng-dark .shadow-xl,
html.ng-dark .shadow-2xl { box-shadow: 0 1px 3px rgba(0, 0, 0, .5) !important; }
html.ng-dark #widget-settings-tab-content::-webkit-scrollbar,
html.ng-dark #widget-settings-tab-content::-webkit-scrollbar-track { background-color: var(--ng-surface-2); }
html.ng-dark #widget-settings-tab-content::-webkit-scrollbar-thumb { background-color: var(--ng-text-muted); }
html.ng-dark a:not(.bg-theme):not([class*="bg-"]):not(.tab-nav-item) { color: var(--ng-accent); }
html.ng-dark .dashboard-menu a { color: #fff !important; }
html.ng-dark .tox .tox-edit-area__iframe { background: #fff; } /* TinyMCE content stays light (it is the real page content) */

/* RTL: search box (select on the right, search icon on the left) */
html[dir="rtl"] button#search-button { right: auto; left: 0; }
html[dir="rtl"] .search-form #search-input { padding-left: 2.75rem; }
html[dir="rtl"] .search-form select.rounded-l-xl {
    border-top-left-radius: 0; border-bottom-left-radius: 0;
    border-top-right-radius: .75rem; border-bottom-right-radius: .75rem;
    border-right-width: 0; border-left-width: 1px;
}
html[dir="rtl"] .search-form #search-input.rounded-r-xl {
    border-top-right-radius: 0; border-bottom-right-radius: 0;
    border-top-left-radius: .75rem; border-bottom-left-radius: .75rem;
}
html[dir="rtl"] .search-form select { background-position: left .75rem center; padding-right: .75rem; padding-left: 2.5rem; }

/* RTL: gap between "Install Widget" and "Widget Settings" (md:mr-2 -> margin-left) */
@media (min-width: 768px) {
    html[dir="rtl"] .md\:mr-2 { margin-right: 0; margin-left: .5rem; }
}

/* RTL: center the check mark inside the round radio/checkbox */
html[dir="rtl"] .radio-inner .custom-checkbox:checked + span.checkbox-custom-input:before {
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
}

/* RTL: equal gaps between the icon boxes in Widget Settings (columns use pr-3 -> mirror to pl-3) */
html[dir="rtl"] .w-1\/4.pr-3 { padding-right: 0; padding-left: .75rem; }

/* RTL: dropdown arrow on the left */
html[dir="rtl"] select:not([multiple]):not([size]) {
    background-position: left .5rem center !important;
    padding-left: 2.5rem !important;
    padding-right: .75rem !important;
}

/* RTL: color swatch on the left, color code next to it (LTR) */
html[dir="rtl"] .custom-input:has(> .colorpicked) {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
html[dir="rtl"] .colorpicked { margin-right: 0; margin-left: 0; margin-inline-end: 0; flex: 0 0 19px; }
html[dir="rtl"] .custom-input:has(> .colorpicked) .undesign-input {
    direction: ltr;
    text-align: left;
    padding-left: 10px !important;
    flex: 1 1 auto;
}

/* Widget Settings – mobile button preview */
.ng-mobile-preview-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin-bottom: 10px;
}
#ngMobilePreview { flex-direction: column; }

/* RTL: site list – favicon on the right, pencil on the left; the domain itself stays LTR */
html[dir="rtl"] .website_url { direction: rtl; text-align: right; }
html[dir="rtl"] .website_url .websitelistNamespan,
html[dir="rtl"] .website_url .websitelistNameinput { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .website_url img { margin-right: 0; margin-left: .35rem; }

/* RTL: users page – gap between the search field and "Add User" (ml-2 -> margin-right) */
html[dir="rtl"] #CreateUserModel1 { margin-left: 0; margin-right: .5rem; }
html[dir="rtl"] #CreateUserModel1 .menu_plus { margin-left: .35rem; }
/* RTL: "+" of "New Site" in the sidebar on the right side of the text */
html[dir="rtl"] .new-site-button span.menu_plus { float: right; }

/* ---------- Login / guest pages ---------- */
.ng-guest-switcher {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
}
.ng-guest-switcher form { margin: 0; }
.ng-guest-switcher .ng-lang-switch,
.ng-guest-switcher .ng-theme-toggle,
.ng-top-switcher .ng-lang-switch,
.ng-top-switcher .ng-theme-toggle { border-color: #cbd5e1; background: #fff; }
.ng-guest-switcher .ng-lang-switch button,
.ng-guest-switcher .ng-theme-toggle,
.ng-top-switcher .ng-lang-switch button,
.ng-top-switcher .ng-theme-toggle { color: #041A3A; }
.ng-guest-switcher .ng-lang-switch button[aria-pressed="true"],
.ng-top-switcher .ng-lang-switch button[aria-pressed="true"] { color: #fff; }
.ng-guest-switcher .ng-theme-toggle:hover,
.ng-guest-switcher .ng-lang-switch button:not([aria-pressed="true"]):hover { background: #eef4ff; color: #041A3A; }
html.ng-dark .ng-guest-switcher .ng-lang-switch,
html.ng-dark .ng-guest-switcher .ng-theme-toggle { background: var(--ng-surface); border-color: var(--ng-border); }
html.ng-dark .ng-guest-switcher .ng-lang-switch button:not([aria-pressed="true"]),
html.ng-dark .ng-guest-switcher .ng-theme-toggle { color: var(--ng-text); }
html.ng-dark .ng-guest-switcher .ng-theme-toggle:hover,
html.ng-dark .ng-guest-switcher .ng-lang-switch button:not([aria-pressed="true"]):hover { background: var(--ng-surface-2); color: #fff; }
.min-h-screen:has(> .ng-guest-switcher) { position: relative; }

/* "or" divider text comes from the translation */
.custom_or_devider[data-or]:after { content: attr(data-or); }

/* RTL: Google button – gap between icon and text */
html[dir="rtl"] .ng-google-text { margin-left: 0; margin-right: .5rem; }

/* Dashboard: switcher at the top of the page (same look as the login page) */
/* exactly the same spot as on the login page: 16px from the top and from the page edge */
.ng-top-switcher {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 30;
}
.ng-top-switcher form { margin: 0; }
/* the content starts below the switcher */
.p-4:has(> .ng-top-switcher) { padding-top: 56px; }
@media (max-width: 767.98px) {
    .ng-top-switcher { inset-inline-end: 64px; } /* room for the mobile menu button */
}
/* same button metrics inside the dashboard (Bootstrap is loaded there) and on the login page */
.ng-top-switcher button,
.ng-guest-switcher button {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}
.ng-top-switcher .ng-theme-toggle:hover,
.ng-top-switcher .ng-lang-switch button:not([aria-pressed="true"]):hover { background: #eef4ff; color: #041A3A; }
html.ng-dark .ng-top-switcher .ng-lang-switch,
html.ng-dark .ng-top-switcher .ng-theme-toggle { background: var(--ng-surface) !important; border-color: var(--ng-border); }
html.ng-dark .ng-top-switcher .ng-lang-switch button:not([aria-pressed="true"]),
html.ng-dark .ng-top-switcher .ng-theme-toggle { color: var(--ng-text); }
html.ng-dark .ng-top-switcher .ng-theme-toggle:hover,
html.ng-dark .ng-top-switcher .ng-lang-switch button:not([aria-pressed="true"]):hover { background: var(--ng-surface-2) !important; color: #fff; }

/* Dark mode: search box – clearly visible frame */
html.ng-dark .search-form select,
html.ng-dark .search-form #search-input {
    background-color: var(--ng-surface) !important;
    border: 1px solid var(--ng-border) !important;
    color: var(--ng-text) !important;
}
html.ng-dark .search-form select { border-inline-end-width: 0 !important; }
html.ng-dark .search-form #search-input:only-child { border-inline-end-width: 1px !important; }
html.ng-dark .search-form #search-input::placeholder { color: var(--ng-text-muted); }
html.ng-dark button#search-button svg path { stroke: var(--ng-accent); }

/* Dark mode: dark icons -> white (sort arrows, pencil, info icons, any icon without its own color) */
html.ng-dark .order_by svg path,
html.ng-dark svg path[fill="#041a3a"],
html.ng-dark svg path[fill="#041A3A"],
html.ng-dark svg path[fill="#000"],
html.ng-dark svg path[fill="#000000"],
html.ng-dark svg path[fill="black"] { fill: var(--ng-text) !important; }
html.ng-dark svg path[stroke="#041a3a"],
html.ng-dark svg path[stroke="#041A3A"],
html.ng-dark svg path[stroke="#000"],
html.ng-dark svg path[stroke="#000000"] { stroke: var(--ng-text) !important; }
html.ng-dark .website_url svg,
html.ng-dark .website_url svg path:not([fill]),
html.ng-dark table svg:not([fill]) > path:not([fill]):not([stroke]) { fill: var(--ng-text); }

/* RTL: signup – phone prefix dropdown on the left, number field on the right */
html[dir="rtl"] .flex:has(> select[name="phone_prefix"]) { flex-direction: row-reverse; }
html[dir="rtl"] select[name="phone_prefix"] { direction: ltr; text-align: left; }
html[dir="rtl"] input[name="phone"] { direction: ltr; text-align: right; }
html[dir="rtl"] .flex:has(> select[name="phone_prefix"]) > .w-full { order: 99; text-align: right; direction: rtl; } /* error message stays below */

/* Phone prefix dropdown: arrow at the far right in English, far left in Hebrew */
html:not([dir="rtl"]) select[name="phone_prefix"] {
    background-position: right .5rem center !important;
    padding-right: 2.25rem !important;
    padding-left: .75rem !important;
}
html[dir="rtl"] select[name="phone_prefix"] {
    background-position: left .5rem center !important;
    padding-left: 2.25rem !important;
    padding-right: .75rem !important;
}

/* Login / signup logo: white "Nagish" text in dark mode */
img.ng-logo-dark { display: none; }
html.ng-dark img.ng-logo-light { display: none; }
html.ng-dark img.ng-logo-dark { display: inline-block; }

/* RTL: popups (Add / Edit user and others) – two-column fields: mirror the gap between columns */
html[dir="rtl"] .w-1\/2.pr-2 { padding-right: 0; padding-left: .5rem; }
html[dir="rtl"] .w-1\/2.pl-2 { padding-left: 0; padding-right: .5rem; }
/* RTL: popup close (X) button on the left, so it does not cover the title */
html[dir="rtl"] .absolute.right-2.top-2.cursor-pointer { right: auto; left: .5rem; }
/* Dark mode: popup close (X) in white */
html.ng-dark svg[stroke="#000000"] { stroke: var(--ng-text); }

/* Widget Settings: same text size as the other fields (15px) for the radio labels
   (button type / shape type) and the "px" unit in the exact-position fields */
.radio-inner { font-size: 15px; line-height: 19px; }
.rounded-\[80px\].border > span.min-w-fit,
.rounded-\[80px\].border > input[type="number"] { font-size: 15px; line-height: 19px; }

/* ===== Widget settings window: sized to the screen (3% margin, blur shows around it) ===== */
#widgetSetting { padding: 3vh 3vw !important; overflow: hidden !important; }
#widgetSetting > div {
	width: 94vw !important; max-width: none !important;
	height: 94vh !important; max-height: 94vh !important;
	height: 94dvh !important; max-height: 94dvh !important;
	margin: 0 auto !important;
	padding: 32px 40px 72px !important;
	display: flex; flex-direction: column; overflow: hidden;
	border-radius: 15px;
}
#widgetSetting > div > form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#widgetSetting .widget-setting { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#widgetSetting #widget-settings-tab-content { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow-y: auto; margin-bottom: 0 !important; }
@media (max-width: 767px) {
	#widgetSetting { padding: 2vh 2vw !important; }
	#widgetSetting > div { width: 96vw !important; height: 96dvh !important; max-height: 96dvh !important; padding: 20px 14px 68px !important; }
}

/* ===== Widget settings tabs: pill style (same as the WordPress plugin) ===== */
.widget-setting #widget-settings-tab,
.widget-setting #widget-install-tab {
	display: inline-flex !important; flex-wrap: nowrap !important; gap: 4px; padding: 4px;
	max-width: 100%; overflow-x: auto; scrollbar-width: none;
	background: #fff !important; border: 1px solid #e2e8f0; border-radius: 999px !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.widget-setting #widget-settings-tab::-webkit-scrollbar,
.widget-setting #widget-install-tab::-webkit-scrollbar { display: none; }
.widget-setting #widget-settings-tab li { flex: 0 0 auto; }
.widget-setting #widget-settings-tab button[role="tab"],
.widget-setting #widget-install-tab button[role="tab"] {
	padding: 8px 18px !important; border-radius: 999px !important; border: 0 !important;
	color: #1e293b; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap;
	background: transparent; transition: background .15s, color .15s;
}
.widget-setting #widget-settings-tab button[role="tab"]:hover,
.widget-setting #widget-install-tab button[role="tab"]:hover { background: #eef4ff !important; color: #0578FA !important; }
.widget-setting #widget-settings-tab button[role="tab"][aria-selected="true"],
.widget-setting #widget-install-tab button[role="tab"][aria-selected="true"] { background: #0578FA !important; color: #fff !important; }
.widget-setting #widget-settings-tab button[role="tab"]:focus-visible,
.widget-setting #widget-install-tab button[role="tab"]:focus-visible { outline: 2px solid #0578FA; outline-offset: 2px; }
html.ng-dark .widget-setting #widget-settings-tab,
html.ng-dark .widget-setting #widget-install-tab { background: var(--ng-surface-2) !important; border-color: var(--ng-border); }
html.ng-dark .widget-setting #widget-settings-tab button[role="tab"],
html.ng-dark .widget-setting #widget-install-tab button[role="tab"] { color: var(--ng-text); }
html.ng-dark .widget-setting #widget-settings-tab button[role="tab"]:hover,
html.ng-dark .widget-setting #widget-install-tab button[role="tab"]:hover { background: rgba(59, 147, 255, .15) !important; color: var(--ng-accent) !important; }

/* ===== Widget settings window: plugin look (grey window, white cards) ===== */
#widgetSetting > div { background: #f6f8fb !important; }
#widgetSetting .widget-settings-footer { background: #fff; border-top: 1px solid #e2e8f0; }
#widgetSetting .pop-top-header h3 { font-weight: 700; color: #041a3a; }

/* sections -> white cards */
#widget-settings-tab-content .bg-light-blue,
#widget-settings-tab-content .bg-light1-blue,
#widget-settings-tab-content .cf-group {
	background: #fff !important; border: 1px solid #e2e8f0; border-radius: 14px !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	padding: 18px 22px !important; margin-bottom: 14px !important;
}
#widget-settings-tab-content .custom-label { font-weight: 700; font-size: 15px; color: #041a3a; }

/* fields */
#widget-settings-tab-content .custom-input {
	height: 42px; border: 1px solid #e2e8f0; border-radius: 10px; background-color: #fff;
	padding-inline: 12px; transition: border-color .15s, box-shadow .15s;
}
#widget-settings-tab-content .custom-input:focus,
#widget-settings-tab-content .custom-input:focus-within { border-color: #0578FA; box-shadow: 0 0 0 3px rgba(5, 120, 250, .15); outline: 0; }
#widget-settings-tab-content textarea { border-radius: 10px !important; border-color: #e2e8f0 !important; background: #fff !important; }
#widget-settings-tab-content input[type="color"] {
	width: 52px !important; height: 52px !important; padding: 3px; cursor: pointer;
	border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
}
#widget-settings-tab-content input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
#widget-settings-tab-content input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 9px; }
#widget-settings-tab-content input[type="color"]::-moz-color-swatch { border: 0; border-radius: 9px; }

/* radio options -> chips */
#widget-settings-tab-content .flex:has(> .custom-checkbox-container:not(.mr-0)) { flex-wrap: wrap; gap: 8px; }
#widget-settings-tab-content .custom-checkbox-container:not(.mr-0) {
	margin: 0 !important; padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff;
	transition: border-color .15s, background .15s;
}
#widget-settings-tab-content .custom-checkbox-container:not(.mr-0):hover { border-color: #b9d6ff; }
#widget-settings-tab-content .custom-checkbox-container:not(.mr-0):has(.custom-checkbox:checked) { border-color: #0578FA; background: #eef4ff; color: #0578FA; font-weight: 600; }

/* icon choice cards */
#widget-settings-tab-content .icon-input + .icon-box {
	height: 120px !important; border: 2px solid #e2e8f0 !important; border-radius: 12px !important;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
#widget-settings-tab-content .icon-input:hover + .icon-box { border-color: #b9d6ff !important; transform: translateY(-1px); }
#widget-settings-tab-content .icon-input:checked + .icon-box { border-color: #16a34a !important; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }

/* dark mode */
html.ng-dark #widgetSetting > div { background: var(--ng-bg) !important; }
html.ng-dark #widgetSetting .widget-settings-footer { background: var(--ng-surface) !important; border-top-color: var(--ng-border); }
html.ng-dark #widgetSetting .pop-top-header h3 { color: var(--ng-text); }
html.ng-dark #widget-settings-tab-content .bg-light-blue,
html.ng-dark #widget-settings-tab-content .bg-light1-blue,
html.ng-dark #widget-settings-tab-content .cf-group { background: var(--ng-surface) !important; border-color: var(--ng-border); }
html.ng-dark #widget-settings-tab-content .custom-label { color: var(--ng-text); }
html.ng-dark #widget-settings-tab-content input[type="color"],
html.ng-dark #widget-settings-tab-content .custom-checkbox-container:not(.mr-0) { background: var(--ng-surface-2); border-color: var(--ng-border); }
html.ng-dark #widget-settings-tab-content .custom-checkbox-container:not(.mr-0):has(.custom-checkbox:checked) { background: rgba(59, 147, 255, .15); border-color: var(--ng-accent); color: var(--ng-accent); }
html.ng-dark #widget-settings-tab-content .icon-input + .icon-box { background: var(--ng-surface-2) !important; border-color: var(--ng-border) !important; }
html.ng-dark #widget-settings-tab-content .icon-input:checked + .icon-box { border-color: #22c55e !important; }

/* position picker box (not an icon card) */
#widget-settings-tab-content .icon-box:not(.icon-input + .icon-box) { border: 1px solid #e2e8f0 !important; border-radius: 12px !important; background: #f8fafc !important; }
html.ng-dark #widget-settings-tab-content .icon-box:not(.icon-input + .icon-box) { background: var(--ng-surface-2) !important; border-color: var(--ng-border) !important; }

/* ===== Accessibility button tab: live preview column (sticky, like the plugin) ===== */
#button-content.ngp-ready:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
#button-content .ngp-fields { min-width: 0; }
#button-content .ngp-aside { position: sticky; top: 0; }
.ngp-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); padding: 18px; }
.ngp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ngp-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: #041a3a; }
.ngp-devices { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f6f8fb; }
.ngp-devices button { width: 34px !important; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #64748b !important; background: transparent !important; padding: 0; }
.ngp-devices button svg { width: 18px; height: 18px; }
.ngp-devices button:hover { color: #0578FA !important; background: transparent !important; }
.ngp-devices button.is-active { background: #fff !important; color: #0578FA !important; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ngp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ngp-frame { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; transition: width .2s; margin: 0 auto; }
.ngp-frame.is-phone { width: 170px; border: 6px solid #041a3a; border-radius: 22px; }
.ngp-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; direction: ltr; }
.ngp-url { flex: 1; min-width: 0; padding: 4px 10px; border-radius: 6px; background: #fff; font-size: 11px; color: #64748b; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.ngp-dots { display: inline-flex; gap: 4px; }
.ngp-dots i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.ngp-dots i:nth-child(2) { background: #fbbf24; }
.ngp-dots i:nth-child(3) { background: #34d399; }
.ngp-frame.is-phone .ngp-dots { display: none; }
.ngp-screen { position: relative; height: 220px; padding: 18px 16px; background: linear-gradient(#fff, #f8fafc); overflow: hidden; }
.ngp-frame.is-phone .ngp-screen { height: 300px; }
.ngp-line { display: block; height: 9px; margin-bottom: 10px; border-radius: 6px; background: #e2e8f0; }
.ngp-line.w60 { width: 60%; margin-inline-start: auto; margin-bottom: 18px; }
.ngp-line.w40 { width: 40%; margin-inline-start: auto; }
.ngp-btn { position: absolute; display: flex; align-items: center; justify-content: center; box-sizing: border-box; box-shadow: 0 3px 10px rgba(15, 23, 42, .25); transition: all .2s; }
.ngp-btn[hidden] { display: none; }
.ngp-btn svg { width: 100%; height: 100%; }
.ngp-btn svg path { fill: currentColor !important; }
.ngp-btn img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ngp-btn.is-file { box-shadow: none; }
.ngp-hidden-note { position: absolute; inset: auto 10px 10px; padding: 6px 8px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 12px; text-align: center; }
.ngp-hidden-note[hidden] { display: none; }
.ngp-note { margin: 12px 0 0; font-size: 12px; color: #64748b; }
@media (max-width: 1100px) {
	#button-content.ngp-ready:not(.hidden) { grid-template-columns: 1fr; }
	#button-content .ngp-aside { position: static; order: -1; }
}
html.ng-dark .ngp-card { background: var(--ng-surface); border-color: var(--ng-border); }
html.ng-dark .ngp-head h4 { color: var(--ng-text); }
html.ng-dark .ngp-devices { background: var(--ng-surface-2); border-color: var(--ng-border); }
html.ng-dark .ngp-devices button.is-active { background: var(--ng-surface) !important; }
html.ng-dark .ngp-frame { border-color: var(--ng-border); }
html.ng-dark .ngp-note { color: var(--ng-text-muted); }
.ngp-devices button svg path, .ngp-devices button svg rect { fill: none !important; }

/* ===== Accessibility statement tab: template generator column (sticky, like the plugin) ===== */
#main-content.ngs-ready:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
#main-content .ngs-fields { min-width: 0; }
#main-content .ngs-aside { position: sticky; top: 0; }
.ngs-aside .ngp-head h4 { display: inline-flex; align-items: center; gap: 8px; }
.ngs-aside .ngp-head svg { width: 18px; height: 18px; color: #0578FA; }
.ngs-intro { margin: -4px 0 14px; font-size: 13px; color: #64748b; }
.ngs-field { display: block; margin-bottom: 12px; }
.ngs-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #041a3a; }
.ngs-field b { color: #dc2626; font-weight: 700; }
.ngs-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #e2e8f0 !important; border-radius: 10px; background: #fff; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.ngs-input:focus { border-color: #0578FA !important; box-shadow: 0 0 0 3px rgba(5, 120, 250, .15); outline: 0; }
#widgetSetting .ngs-generate {
	width: 100% !important; height: 44px; margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 2px solid #0578FA !important; border-radius: 999px !important; background: #fff !important; color: #0578FA !important;
	font-size: 14px; font-weight: 700; transition: background .15s, color .15s;
}
#widgetSetting .ngs-generate:hover { background: #0578FA !important; color: #fff !important; }
.ngs-generate svg { width: 18px; height: 18px; }
#widgetSetting .ngs-generate:hover svg path { fill: none !important; }
.ngs-hint { margin: 10px 0 0; font-size: 12px; color: #64748b; }
.ngs-msg { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #dcfce7; color: #166534; font-size: 13px; font-weight: 600; }
.ngs-msg[hidden] { display: none; }
@media (max-width: 1100px) {
	#main-content.ngs-ready:not(.hidden) { grid-template-columns: 1fr; }
	#main-content .ngs-aside { position: static; order: -1; }
}
html.ng-dark .ngs-field > span { color: var(--ng-text); }
html.ng-dark .ngs-intro, html.ng-dark .ngs-hint { color: var(--ng-text-muted); }
html.ng-dark .ngs-input { background: var(--ng-surface-2); border-color: var(--ng-border) !important; color: var(--ng-text); }
html.ng-dark #widgetSetting .ngs-generate { background: transparent !important; color: var(--ng-accent) !important; border-color: var(--ng-accent) !important; }
html.ng-dark #widgetSetting .ngs-generate:hover { background: #0578FA !important; color: #fff !important; }

/* ===== Tabs with a side panel: only the fields column scrolls (scrollbar sits between the columns) ===== */
@media (min-width: 1101px) {
	#widget-settings-tab-content:has(> .ngs-ready:not(.hidden)),
	#widget-settings-tab-content:has(> .ngp-ready:not(.hidden)) { overflow: hidden !important; padding-bottom: 0 !important; }
	#main-content.ngs-ready:not(.hidden),
	#button-content.ngp-ready:not(.hidden) { height: 100%; }
	#main-content .ngs-fields,
	#button-content .ngp-fields {
		height: 100%; overflow-y: auto; padding-bottom: 24px;
		padding-inline-end: 0; padding-inline-start: 0;
		padding-left: 12px; /* room between the cards and the scrollbar */
		scrollbar-width: thin; scrollbar-color: #041A3A #F1F4F8;
	}
	html[dir="ltr"] #main-content .ngs-fields,
	html[dir="ltr"] #button-content .ngp-fields,
	html:not([dir="rtl"]) #main-content .ngs-fields,
	html:not([dir="rtl"]) #button-content .ngp-fields { padding-left: 0; padding-right: 12px; }
	#main-content .ngs-aside,
	#button-content .ngp-aside { position: static; max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
	#main-content .ngs-fields::-webkit-scrollbar,
	#button-content .ngp-fields::-webkit-scrollbar { width: 7px; background-color: #F1F4F8; border-radius: 80px; }
	#main-content .ngs-fields::-webkit-scrollbar-thumb,
	#button-content .ngp-fields::-webkit-scrollbar-thumb { background-color: #041A3A; border-radius: 80px; }
	#main-content .ngs-fields::-webkit-scrollbar-track,
	#button-content .ngp-fields::-webkit-scrollbar-track { background-color: #F1F4F8; border-radius: 80px; }
	html.ng-dark #main-content .ngs-fields,
	html.ng-dark #button-content .ngp-fields { scrollbar-color: var(--ng-text-muted) var(--ng-surface-2); }
	html.ng-dark #main-content .ngs-fields::-webkit-scrollbar-thumb,
	html.ng-dark #button-content .ngp-fields::-webkit-scrollbar-thumb { background-color: var(--ng-text-muted); }
	html.ng-dark #main-content .ngs-fields::-webkit-scrollbar-track,
	html.ng-dark #button-content .ngp-fields::-webkit-scrollbar-track,
	html.ng-dark #main-content .ngs-fields::-webkit-scrollbar,
	html.ng-dark #button-content .ngp-fields::-webkit-scrollbar { background-color: var(--ng-surface-2); }
}

/* ===== Modern layout tab: open-menu language preview (sticky column, like the other tabs) ===== */
#mrdnlayout-content.ngl-ready:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
#mrdnlayout-content .ngl-fields { min-width: 0; }
@media (min-width: 1101px) {
	#widget-settings-tab-content:has(> .ngl-ready:not(.hidden)) { overflow: hidden !important; padding-bottom: 0 !important; }
	#mrdnlayout-content.ngl-ready:not(.hidden) { height: 100%; }
	#mrdnlayout-content .ngl-fields { height: 100%; overflow-y: auto; padding-bottom: 24px; padding-left: 12px; scrollbar-width: thin; scrollbar-color: #041A3A #F1F4F8; }
	html:not([dir="rtl"]) #mrdnlayout-content .ngl-fields { padding-left: 0; padding-right: 12px; }
	#mrdnlayout-content .ngl-fields::-webkit-scrollbar { width: 7px; background-color: #F1F4F8; border-radius: 80px; }
	#mrdnlayout-content .ngl-fields::-webkit-scrollbar-thumb { background-color: #041A3A; border-radius: 80px; }
	#mrdnlayout-content .ngl-aside { max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
	html.ng-dark #mrdnlayout-content .ngl-fields { scrollbar-color: var(--ng-text-muted) var(--ng-surface-2); }
}
@media (max-width: 1100px) {
	#mrdnlayout-content.ngl-ready:not(.hidden) { grid-template-columns: 1fr; }
	#mrdnlayout-content .ngl-aside { order: -1; }
}
.ngl-menu { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; font-size: 12px; color: #111827; box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.ngl-menu svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ngl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #eef2f7; }
.ngl-current { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ngl-current img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ngl-top-actions { display: inline-flex; align-items: center; gap: 6px; }
.ngl-statement { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: #0578FA; color: #fff; font-weight: 700; font-size: 11px; white-space: nowrap; }
.ngl-close { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #041a3a; color: #fff; font-size: 16px; line-height: 1; }
.ngl-langs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
#widgetSetting .ngl-langs button {
	width: auto !important; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12px; line-height: 1.2;
	border: 1px solid #e2e8f0 !important; border-radius: 999px !important; background: #fff !important; color: #1e293b !important; font-weight: 600;
}
#widgetSetting .ngl-langs button:hover { border-color: #b9d6ff !important; background: #fff !important; color: #0578FA !important; }
#widgetSetting .ngl-langs button.is-active { border-color: #0578FA !important; background: #eef4ff !important; color: #0578FA !important; }
.ngl-langs img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ngl-body { padding: 10px 12px; background: linear-gradient(#eef1f5, #fff 40px); }
.ngl-reset { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; margin-bottom: 8px; border-radius: 999px; background: #e9135a; color: #fff; font-weight: 700; }
.ngl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ngl-tile { display: flex; align-items: center; gap: 6px; padding: 9px 8px; border-radius: 8px; background: #f3f5f8; font-weight: 600; font-size: 11px; line-height: 1.25; }
.ngl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid #eef2f7; font-size: 11px; }
.ngl-brand { font-weight: 700; color: #041a3a; direction: ltr; }
.ngl-brand b { color: #0578FA; }
.ngl-state { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 600; }
.ngl-state[hidden] { display: none; }

/* ===== Vision impaired & colors tab: colour-section preview (same layout as the other side panels) ===== */
#visioncolors-content.ngv-ready:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
#visioncolors-content .ngv-fields { min-width: 0; }
@media (min-width: 1101px) {
	#widget-settings-tab-content:has(> .ngv-ready:not(.hidden)) { overflow: hidden !important; padding-bottom: 0 !important; }
	#visioncolors-content.ngv-ready:not(.hidden) { height: 100%; }
	#visioncolors-content .ngv-fields { height: 100%; overflow-y: auto; padding-bottom: 24px; padding-left: 12px; scrollbar-width: thin; scrollbar-color: #041A3A #F1F4F8; }
	html:not([dir="rtl"]) #visioncolors-content .ngv-fields { padding-left: 0; padding-right: 12px; }
	#visioncolors-content .ngv-fields::-webkit-scrollbar { width: 7px; background-color: #F1F4F8; border-radius: 80px; }
	#visioncolors-content .ngv-fields::-webkit-scrollbar-thumb { background-color: #041A3A; border-radius: 80px; }
	#visioncolors-content .ngv-aside { max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
	html.ng-dark #visioncolors-content .ngv-fields { scrollbar-color: var(--ng-text-muted) var(--ng-surface-2); }
}
@media (max-width: 1100px) {
	#visioncolors-content.ngv-ready:not(.hidden) { grid-template-columns: 1fr; }
	#visioncolors-content .ngv-aside { order: -1; }
}
.ngv-menu { padding: 10px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; color: #111827; font-size: 12px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.ngv-menu svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ngv-sample { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 10px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fff; transition: background .2s; }
.ngv-sample b { font-size: 14px; color: #041a3a; }
.ngv-sample span { color: #334155; }
.ngv-sample u { color: #0578FA; }
#widgetSetting .ngv-reset { position: absolute; top: 6px; left: 6px; width: 22px !important; height: 22px; padding: 0; border-radius: 50% !important; background: #fff !important; color: #475569 !important; border: 1px solid #e2e8f0 !important; font-size: 13px; line-height: 1; }
.ngv-box { padding: 10px; margin-bottom: 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.ngv-box:last-child { margin-bottom: 0; }
.ngv-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.ngv-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px; margin-bottom: 5px; border-radius: 8px; background: #f3f5f8; font-weight: 600; font-size: 11px; }
.ngv-row:last-child { margin-bottom: 0; }
.ngv-row > span:not(.ngv-sw) { flex: 1 1 auto; }
.ngv-sw { display: flex; flex-wrap: wrap; gap: 3px; width: 100%; }
#widgetSetting .ngv-sw button { width: 15px !important; height: 15px; padding: 0; border: 1px solid #1f2937 !important; border-radius: 3px !important; cursor: pointer; transition: transform .1s; }
#widgetSetting .ngv-sw button:hover { transform: scale(1.15); }
#widgetSetting .ngv-sw button.is-on { outline: 2px solid #0578FA; outline-offset: 1px; }
.ngv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ngv-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; background: #f3f5f8; font-weight: 600; font-size: 11px; text-align: center; }

/* ===== Fonts tab: font-section preview (same layout as the other side panels) ===== */
#fonts-content.ngf-ready:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
#fonts-content .ngf-fields { min-width: 0; }
@media (min-width: 1101px) {
	#widget-settings-tab-content:has(> .ngf-ready:not(.hidden)) { overflow: hidden !important; padding-bottom: 0 !important; }
	#fonts-content.ngf-ready:not(.hidden) { height: 100%; }
	#fonts-content .ngf-fields { height: 100%; overflow-y: auto; padding-bottom: 24px; padding-left: 12px; scrollbar-width: thin; scrollbar-color: #041A3A #F1F4F8; }
	html:not([dir="rtl"]) #fonts-content .ngf-fields { padding-left: 0; padding-right: 12px; }
	#fonts-content .ngf-fields::-webkit-scrollbar { width: 7px; background-color: #F1F4F8; border-radius: 80px; }
	#fonts-content .ngf-fields::-webkit-scrollbar-thumb { background-color: #041A3A; border-radius: 80px; }
	#fonts-content .ngf-aside { max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
	html.ng-dark #fonts-content .ngf-fields { scrollbar-color: var(--ng-text-muted) var(--ng-surface-2); }
}
@media (max-width: 1100px) {
	#fonts-content.ngf-ready:not(.hidden) { grid-template-columns: 1fr; }
	#fonts-content .ngf-aside { order: -1; }
}
.ngf-sample span { display: block; color: #334155; transition: all .2s; }
.ngf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; }
#widgetSetting .ngf-reset { width: auto !important; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px !important; background: #e9135a !important; color: #fff !important; font-size: 11px; font-weight: 700; line-height: 1.2; }
#widgetSetting .ngf-reset:hover { background: #c70f4c !important; }
#widgetSetting .ngf-reset svg path { fill: none !important; }
.ngf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
#widgetSetting .ngf-tile { width: auto !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding: 7px 4px; border: 1px solid transparent; border-radius: 8px !important; background: #f3f5f8 !important; color: #111827 !important; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; }
#widgetSetting .ngf-tile:hover { background: #e8eef7 !important; color: #0578FA !important; }
#widgetSetting .ngf-tile.is-on { border-color: #0578FA; background: #eef4ff !important; color: #0578FA !important; }
#widgetSetting .ngf-tile svg { width: 18px; height: 18px; }
#widgetSetting .ngf-tile svg path { fill: none !important; }

/* ===== Contrast tab: contrast-section preview (same layout as the other side panels) ===== */
#contrast-content.ngc-ready:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
#contrast-content .ngc-fields { min-width: 0; }
@media (min-width: 1101px) {
	#widget-settings-tab-content:has(> .ngc-ready:not(.hidden)) { overflow: hidden !important; padding-bottom: 0 !important; }
	#contrast-content.ngc-ready:not(.hidden) { height: 100%; }
	#contrast-content .ngc-fields { height: 100%; overflow-y: auto; padding-bottom: 24px; padding-left: 12px; scrollbar-width: thin; scrollbar-color: #041A3A #F1F4F8; }
	html:not([dir="rtl"]) #contrast-content .ngc-fields { padding-left: 0; padding-right: 12px; }
	#contrast-content .ngc-fields::-webkit-scrollbar { width: 7px; background-color: #F1F4F8; border-radius: 80px; }
	#contrast-content .ngc-fields::-webkit-scrollbar-thumb { background-color: #041A3A; border-radius: 80px; }
	#contrast-content .ngc-aside { max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
	html.ng-dark #contrast-content .ngc-fields { scrollbar-color: var(--ng-text-muted) var(--ng-surface-2); }
}
@media (max-width: 1100px) {
	#contrast-content.ngc-ready:not(.hidden) { grid-template-columns: 1fr; }
	#contrast-content .ngc-aside { order: -1; }
}
.ngc-sample { margin-bottom: 10px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; transition: filter .25s; }
.ngc-hero { position: relative; height: 70px; background: linear-gradient(#7cc4ff, #cfe9ff); overflow: hidden; }
.ngc-sun { position: absolute; top: 12px; left: 18px; width: 22px; height: 22px; border-radius: 50%; background: #ffcc33; }
.ngc-hill { position: absolute; bottom: -30px; right: -10px; width: 180px; height: 70px; border-radius: 50%; background: #2fa84f; }
.ngc-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; }
.ngc-body b { font-size: 14px; color: #041a3a; }
.ngc-body span { color: #475569; }
.ngc-body u { color: #0578FA; }
.ngc-btn { align-self: flex-start; margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: #e9135a; color: #fff; font-style: normal; font-weight: 700; font-size: 11px; }

/* ===== Main buttons tab: menu-grid preview (same layout as the other side panels) ===== */
#mainbuttons-content.ngm-ready:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
#mainbuttons-content .ngm-fields { min-width: 0; }
@media (min-width: 1101px) {
	#widget-settings-tab-content:has(> .ngm-ready:not(.hidden)) { overflow: hidden !important; padding-bottom: 0 !important; }
	#mainbuttons-content.ngm-ready:not(.hidden) { height: 100%; }
	#mainbuttons-content .ngm-fields { height: 100%; overflow-y: auto; padding-bottom: 24px; padding-left: 12px; scrollbar-width: thin; scrollbar-color: #041A3A #F1F4F8; }
	html:not([dir="rtl"]) #mainbuttons-content .ngm-fields { padding-left: 0; padding-right: 12px; }
	#mainbuttons-content .ngm-fields::-webkit-scrollbar { width: 7px; background-color: #F1F4F8; border-radius: 80px; }
	#mainbuttons-content .ngm-fields::-webkit-scrollbar-thumb { background-color: #041A3A; border-radius: 80px; }
	#mainbuttons-content .ngm-aside { max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
	html.ng-dark #mainbuttons-content .ngm-fields { scrollbar-color: var(--ng-text-muted) var(--ng-surface-2); }
}
@media (max-width: 1100px) {
	#mainbuttons-content.ngm-ready:not(.hidden) { grid-template-columns: 1fr; }
	#mainbuttons-content .ngm-aside { order: -1; }
}
.ngl-tile, .ngl-reset, .ngl-close { transition: box-shadow .15s, background .15s; }
.ngl-tile.is-focus { background: #eef4ff; color: #0578FA; box-shadow: 0 0 0 2px #0578FA; }
.ngl-reset.is-focus, .ngl-close.is-focus { box-shadow: 0 0 0 3px rgba(5, 120, 250, .45); }
.ngm-tip { margin: 6px 12px 0; padding: 4px 8px; border-radius: 6px; background: #041a3a; color: #fff; font-size: 11px; width: max-content; }
