/* Aslansheed Login admin screens. Uses logical properties so it works left-to-right and right-to-left. */
.aslo-wrap { margin: 16px 20px 0 0; margin-inline: 0 20px; }
.aslo-admin {
	--aslo-accent: #2563eb;
	--aslo-accent-soft: #e8efff;
	--aslo-bg: #f4f6fa;
	--aslo-card: #fff;
	--aslo-line: #e3e7ee;
	--aslo-text: #111827;
	--aslo-muted: #6b7280;
	--aslo-ok: #15803d;
	--aslo-ok-soft: #e7f6ec;
	--aslo-warn: #b45309;
	--aslo-warn-soft: #fff4e0;
	--aslo-danger: #b91c1c;
	color: var(--aslo-text);
	font-size: 14px;
	line-height: 1.5;
}
.aslo-admin *, .aslo-admin *::before, .aslo-admin *::after { box-sizing: border-box; }

/* Top bar */
.aslo-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #4f8bff 100%); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25); }
.aslo-brand { display: flex; align-items: center; gap: 12px; }
.aslo-brand strong { display: block; font-size: 17px; line-height: 1.2; }
.aslo-brand span:not(.aslo-logo) { font-size: 12px; opacity: 0.8; }
.aslo-logo { width: 42px; height: 42px; display: block; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }

/* Layout */
.aslo-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; margin-top: 18px; align-items: start; }
.aslo-nav { position: sticky; top: 42px; padding: 10px; border: 1px solid var(--aslo-line); border-radius: 14px; background: var(--aslo-card); }
.aslo-nav-title { margin: 12px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aslo-muted); }
.aslo-nav-title:first-child { margin-top: 4px; }
.aslo-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--aslo-text); text-decoration: none; font-weight: 500; }
.aslo-nav-item .dashicons { color: var(--aslo-muted); font-size: 18px; width: 18px; height: 18px; }
.aslo-nav-item:hover { background: var(--aslo-bg); color: var(--aslo-text); }
.aslo-nav-item:focus-visible { outline: 2px solid var(--aslo-accent); outline-offset: 1px; }
.aslo-nav-item.is-active { background: var(--aslo-accent-soft); color: var(--aslo-accent); }
.aslo-nav-item.is-active .dashicons { color: var(--aslo-accent); }
.aslo-main { min-width: 0; padding-bottom: 80px; }
.aslo-page-head h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.aslo-page-head p { margin: 4px 0 16px; color: var(--aslo-muted); max-width: 70ch; }

/* Cards */
.aslo-card { margin: 0 0 16px; border: 1px solid var(--aslo-line); border-radius: 14px; background: var(--aslo-card); overflow: hidden; }
.aslo-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--aslo-line); }
.aslo-card-head h2 { margin: 0; padding: 0; font-size: 15px; line-height: 1.4; }
.aslo-card-head p { margin: 2px 0 0; color: var(--aslo-muted); font-size: 13px; }
.aslo-card-body { padding: 4px 20px 16px; }
.aslo-badge { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.aslo-badge-on { background: var(--aslo-ok-soft); color: var(--aslo-ok); }
.aslo-badge-off { background: #eef0f4; color: var(--aslo-muted); }

/* Rows */
.aslo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--aslo-line); }
.aslo-row:last-child { border-bottom: 0; }
.aslo-row[hidden] { display: none; }
.aslo-row-wide { grid-template-columns: 1fr; }
.aslo-row-text label { font-weight: 600; }
.aslo-help { margin: 2px 0 0; color: var(--aslo-muted); font-size: 12.5px; line-height: 1.45; }
.aslo-help-error { color: var(--aslo-danger); }
.aslo-row-control { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aslo-row-wide .aslo-row-control { display: block; }

/* Inputs */
.aslo-input { width: 100%; max-width: 100%; min-height: 38px; padding: 6px 12px; border: 1px solid #cfd5df; border-radius: 9px; background: #fff; box-shadow: none; color: var(--aslo-text); }
.aslo-input:focus { border-color: var(--aslo-accent); box-shadow: 0 0 0 3px var(--aslo-accent-soft); outline: 0; }
.aslo-input-small { width: 130px; }
textarea.aslo-input { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.aslo-color { display: flex; align-items: center; gap: 8px; }
.aslo-color-swatch { width: 38px; height: 38px; padding: 2px; border: 1px solid #cfd5df; border-radius: 9px; background: #fff; cursor: pointer; }
.aslo-code { display: block; margin: 4px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--aslo-bg); direction: ltr; text-align: left; word-break: break-all; }
.aslo-radio { display: block; margin: 0 0 6px; }

/* Switch */
.aslo-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.aslo-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.aslo-slider { position: relative; flex: none; width: 44px; height: 24px; border-radius: 999px; background: #cbd2de; transition: background 0.15s; }
.aslo-slider::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: inset-inline-start 0.15s; }
.aslo-switch input:checked + .aslo-slider { background: var(--aslo-accent); }
.aslo-switch input:checked + .aslo-slider::after { inset-inline-start: 23px; }
.aslo-switch input:focus-visible + .aslo-slider { outline: 2px solid var(--aslo-accent); outline-offset: 2px; }

/* Segmented control */
.aslo-segmented { display: inline-flex; padding: 3px; border-radius: 11px; background: #eef0f4; }
.aslo-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.aslo-segmented label { padding: 5px 14px; border-radius: 8px; color: var(--aslo-muted); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.aslo-segmented input:focus-visible + label { outline: 2px solid var(--aslo-accent); }
.aslo-segmented input:checked + label { background: #fff; color: var(--aslo-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.aslo-segmented input:checked + .aslo-seg-required { color: var(--aslo-danger); }
.aslo-segmented input:checked + .aslo-seg-optional { color: var(--aslo-accent); }

/* Buttons */
.aslo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 16px; border: 1px solid #cfd5df; border-radius: 9px; background: #fff; color: var(--aslo-text); font-weight: 600; cursor: pointer; }
.aslo-btn:hover { border-color: var(--aslo-accent); color: var(--aslo-accent); }
.aslo-btn:focus-visible { outline: 2px solid var(--aslo-accent); outline-offset: 2px; }
.aslo-btn-primary { border-color: var(--aslo-accent); background: var(--aslo-accent); color: #fff; }
.aslo-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.aslo-btn:disabled { opacity: 0.55; cursor: default; }
.aslo-btn.is-busy { position: relative; pointer-events: none; opacity: 0.7; }
.aslo-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
.aslo-actions-split { align-items: center; flex-wrap: wrap; gap: 24px; }
.aslo-testbox { margin-top: 16px; padding: 14px; border-radius: 11px; background: var(--aslo-bg); }
.aslo-testbox > label { display: block; margin-bottom: 6px; font-weight: 600; }
.aslo-testrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.aslo-testrow .aslo-input { flex: 1 1 220px; width: auto; }
.aslo-inline-result { margin: 8px 0 0; min-height: 1em; font-size: 13px; }
.aslo-inline-result.is-ok { color: var(--aslo-ok); }
.aslo-inline-result.is-error { color: var(--aslo-danger); }

/* Save bar */
.aslo-savebar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 18px; padding-inline: 18px 14px; border: 1px solid var(--aslo-line); border-radius: 14px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12); backdrop-filter: blur(6px); }
.aslo-savebar.is-dirty { border-color: #f5c46b; background: #fffaf0; }
.aslo-savebar-text { color: var(--aslo-muted); font-weight: 500; }
.aslo-savebar.is-dirty .aslo-savebar-text { color: var(--aslo-warn); }

/* Toasts */
.aslo-toasts { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 100000; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.aslo-toast { padding: 12px 16px; border-radius: 11px; background: #111827; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); animation: aslo-in 0.18s ease-out; }
.aslo-toast.is-ok { background: #166534; }
.aslo-toast.is-error { background: #991b1b; }
@keyframes aslo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aslo-toast { animation: none; } .aslo-slider, .aslo-slider::after { transition: none; } }

/* Overview */
.aslo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.aslo-tile { display: block; padding: 14px 16px; border: 1px solid var(--aslo-line); border-radius: 14px; background: var(--aslo-card); color: var(--aslo-text); text-decoration: none; }
.aslo-tile:hover { border-color: var(--aslo-accent); }
.aslo-tile span { display: block; color: var(--aslo-muted); font-size: 12.5px; }
.aslo-tile strong { display: block; margin-top: 2px; font-size: 22px; }
.aslo-checklist { margin: 0; padding: 0; list-style: none; }
.aslo-checklist li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--aslo-line); }
.aslo-checklist li:last-child { border-bottom: 0; }
.aslo-checklist .dashicons { flex: none; margin-top: 1px; }
.aslo-checklist .is-ok .dashicons { color: var(--aslo-ok); }
.aslo-checklist .is-todo .dashicons { color: var(--aslo-warn); }
.aslo-checklist span { display: block; color: var(--aslo-muted); font-size: 13px; }
.aslo-empty { margin: 0; padding: 12px 0; color: var(--aslo-muted); }
.aslo-callout { margin: 0 0 16px; padding: 12px 16px; border-radius: 11px; background: var(--aslo-warn-soft); color: var(--aslo-warn); }

/* Tables */
.aslo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aslo-table th { padding: 8px 10px; border-bottom: 1px solid var(--aslo-line); color: var(--aslo-muted); font-weight: 600; text-align: start; white-space: nowrap; }
.aslo-table td { padding: 8px 10px; border-bottom: 1px solid #f0f2f6; vertical-align: top; word-break: break-word; }
.aslo-card-body:has(> .aslo-table) { overflow-x: auto; }
.aslo-filter { display: flex; gap: 8px; margin-bottom: 12px; }
.aslo-filter .aslo-input { width: auto; min-width: 200px; }

/* WordPress notices inside the screen */
.aslo-main .notice { margin: 0 0 16px; border-radius: 10px; }

@media (max-width: 960px) {
	.aslo-layout { grid-template-columns: 1fr; }
	.aslo-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
	.aslo-nav-title { display: none; }
	.aslo-row { grid-template-columns: 1fr; }
	.aslo-wrap { margin-inline: 0 10px; }
}

/* Blocks that slide open when their switch is turned on */
.aslo-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.aslo-collapse.is-open { grid-template-rows: 1fr; }
.aslo-collapse-inner { min-height: 0; overflow: hidden; padding: 4px; margin: -4px; visibility: hidden; transition: visibility 0s linear 0.28s; }
.aslo-collapse.is-open > .aslo-collapse-inner { visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .aslo-collapse, .aslo-collapse-inner { transition: none; } }
.aslo-collapse-inner > .aslo-row { border-bottom: 1px solid var(--aslo-line); }
.aslo-card-body > .aslo-collapse:last-child .aslo-row:last-child { border-bottom: 0; }

.aslo-head-toggle { flex: none; align-self: center; }
.aslo-component .aslo-card-head { align-items: center; }
.aslo-component .aslo-card-body { padding-top: 0; padding-bottom: 0; }
.aslo-component .aslo-collapse.is-open > .aslo-collapse-inner { padding-bottom: 16px; }
.aslo-component:not(:has(.aslo-collapse.is-open)) .aslo-card-head { border-bottom: 0; }

/* About */
.aslo-about-hero .aslo-actions { flex-wrap: wrap; }
.aslo-about-hero p { margin: 12px 0 0; max-width: 70ch; }
.aslo-about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.aslo-about-grid .aslo-card { margin: 0; }
.aslo-about-grid p { margin: 12px 0 0; }
a.aslo-btn { text-decoration: none; }
a.aslo-btn .dashicons { color: #e11d48; font-size: 18px; width: 18px; height: 18px; }
a.aslo-btn-primary .dashicons { color: #fff; }
.aslo-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.aslo-check { display: inline-flex; align-items: center; gap: 6px; }
.aslo-builder { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; width: 100%; }
.aslo-builder-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.aslo-builder.is-empty::before { content: attr(data-empty-text); color: var(--aslo-muted); font-size: 13px; }
.aslo-builder.is-empty .aslo-builder-list::before { content: none; }
.aslo-b-item { display: flex; align-items: flex-start; gap: 8px; width: 100%; }
.aslo-b-row { flex: 1; min-width: 0; border: 1px solid var(--aslo-line); border-radius: 10px; background: #fff; }
.aslo-b-row > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.aslo-b-row > summary::-webkit-details-marker { display: none; }
.aslo-b-row > summary::before { content: ""; width: 8px; height: 8px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; opacity: .6; }
[dir="rtl"] .aslo-b-row > summary::before { transform: rotate(45deg); }
.aslo-b-row[open] > summary::before { transform: rotate(45deg); }
.aslo-b-title { font-weight: 600; }
.aslo-b-badge { margin-inline-start: auto; color: var(--aslo-muted); font-size: 12px; }
.aslo-b-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 4px 14px 14px; }
.aslo-b-body .aslo-b-help, .aslo-b-body .aslo-b-options, .aslo-b-body .aslo-b-label { grid-column: 1 / -1; }
.aslo-b-body label { display: block; margin-bottom: 4px; font-weight: 600; }
.aslo-b-body .aslo-input { width: 100%; }
.aslo-b-tools { display: flex; flex-direction: column; gap: 4px; }
.aslo-b-tool { width: 30px; height: 30px; padding: 0; border: 1px solid var(--aslo-line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--aslo-muted); font-size: 14px; line-height: 1; }
.aslo-b-tool:hover { border-color: var(--aslo-accent, #2563eb); color: var(--aslo-accent, #2563eb); }
.aslo-b-tool.is-up::before { content: "↑"; }
.aslo-b-tool.is-down::before { content: "↓"; }
.aslo-b-tool.is-remove::before { content: "✕"; }
@media (max-width: 782px) { .aslo-b-body { grid-template-columns: 1fr; } .aslo-b-item { flex-direction: column; } .aslo-b-tools { flex-direction: row; } }
.aslo-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aslo-fb-details { margin-top: 6px; }
.aslo-fb-details summary { cursor: pointer; color: var(--aslo-muted); font-size: 13px; }
.aslo-feedback textarea { width: 100%; resize: vertical; }
.aslo-fold-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 20px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.aslo-fold-head:hover { background: rgba(37, 99, 235, 0.04); }
.aslo-fold-head:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
.aslo-fold-text { display: flex; flex-direction: column; gap: 2px; }
.aslo-fold-text strong { font-size: 15px; line-height: 1.4; }
.aslo-fold-text small { color: var(--aslo-muted); font-size: 13px; }
.aslo-fold-icon { flex: none; color: var(--aslo-muted); transition: transform 0.28s ease; }
.aslo-fold-head.is-open .aslo-fold-icon { transform: rotate(180deg); }
.aslo-fold-head.is-open { border-bottom: 1px solid var(--aslo-line); }
.aslo-fold-body { padding: 4px 20px 16px; }
@media (prefers-reduced-motion: reduce) { .aslo-fold-icon { transition: none; } }
