/**
 * All in Box - admin pages. Scoped to .aib-ls, loaded on the plugin's own pages only.
 *
 * Brand fonts are bundled (SIL Open Font License, see fonts/OFL.txt) rather than loaded
 * from a font CDN, so no visitor or admin data leaves the site to display a title.
 */

@font-face { font-family: "AIB Faustina"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Faustina-Medium.woff2") format("woff2"); }
@font-face { font-family: "AIB Faustina"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Faustina-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "AIB Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "AIB Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }

.aib-ls {
    --aib-ink: #101010;
    --aib-grey: #595959;
    --aib-lime: #E2F87E;
    --aib-lime-deep: #D5EF0B;
    --aib-lime-line: #C9E05E;
    --aib-sky: #DFEDFE;
    --aib-beige: #E9EBDF;
    --aib-surface: #F4F4F4;
    --aib-line: rgba(16, 16, 16, .1);
    --aib-line-strong: rgba(16, 16, 16, .2);
    max-width: 1080px;
    margin: 20px 20px 40px 0;
    color: var(--aib-ink);
    font-family: "AIB Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    letter-spacing: -.01em;
}
.aib-ls * { box-sizing: border-box; }

/* Header band */
.aib-ls .aib-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--aib-lime); border-radius: 20px; padding: 18px 24px; }
.aib-ls .aib-hd img { display: block; height: 24px; width: auto; }
.aib-ls .aib-pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #D9DEDB;
    border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.aib-ls .aib-pill i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #37B19C; }

/* Page title */
.aib-ls h1.aib-h1 { font-family: "AIB Faustina", Georgia, serif; font-weight: 500; font-size: 36px; line-height: 1.05;
    letter-spacing: -.03em; color: var(--aib-ink); margin: 26px 0 8px; padding: 0; }
.aib-ls .aib-lead { color: var(--aib-grey); font-size: 14px; margin: 0 0 22px; max-width: 720px; }
.aib-ls .wp-header-end { margin: 0; visibility: hidden; }
.aib-ls .notice { border-radius: 10px; margin: 0 0 16px; }

/* Layout */
.aib-ls .aib-grid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
@media (max-width: 960px) { .aib-ls .aib-grid { grid-template-columns: 1fr; } }

/* Cards */
.aib-ls .aib-card { background: #fff; border: 1px solid var(--aib-line); border-radius: 20px; padding: 22px 24px; margin-bottom: 16px; }
.aib-ls .aib-card h2 { font-family: "AIB Faustina", Georgia, serif; font-weight: 600; font-size: 21px; line-height: 1.15;
    letter-spacing: -.02em; color: var(--aib-ink); margin: 0 0 4px; padding: 0; }
.aib-ls .aib-card .sub { margin: 0 0 16px; color: var(--aib-grey); font-size: 13px; }
.aib-ls .aib-side .aib-card { padding: 20px 22px; }

/* Fields */
.aib-ls .aib-field { margin-bottom: 16px; }
.aib-ls .aib-field:last-child { margin-bottom: 0; }
.aib-ls label.lbl, .aib-ls .aib-row2 label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 6px; color: var(--aib-ink); }
.aib-ls input[type=text], .aib-ls input[type=url], .aib-ls input[type=password], .aib-ls input[type=number],
.aib-ls select, .aib-ls textarea {
    width: 100%; max-width: 460px; min-height: 40px; border: 1px solid var(--aib-line-strong); border-radius: 10px;
    padding: 8px 12px; font-family: inherit; font-size: 14px; line-height: 1.4; color: var(--aib-ink); background-color: #fff;
    box-shadow: none; }
.aib-ls select { padding-right: 30px; }
.aib-ls input::placeholder { color: #8E938F; }
.aib-ls input[type=text]:focus, .aib-ls input[type=url]:focus, .aib-ls input[type=password]:focus,
.aib-ls input[type=number]:focus, .aib-ls select:focus, .aib-ls textarea:focus {
    border-color: var(--aib-ink); box-shadow: 0 0 0 3px var(--aib-lime); outline: 0; }
.aib-ls input:disabled { background: var(--aib-surface); color: var(--aib-grey); }
.aib-ls .aib-hint { color: var(--aib-grey); font-size: 12.5px; line-height: 1.45; margin: 7px 0 0; }
.aib-ls .aib-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; max-width: 460px; }
.aib-ls .aib-row2 .aib-hint { grid-column: 1 / -1; }
.aib-ls code { background: var(--aib-surface); border-radius: 6px; padding: 2px 6px; font-size: 12px; color: var(--aib-ink); }
.aib-ls a { color: var(--aib-ink); text-decoration: underline; text-underline-offset: 2px; }
.aib-ls a:hover { color: var(--aib-ink); text-decoration-thickness: 2px; }
.aib-ls a:focus { box-shadow: 0 0 0 2px var(--aib-lime); outline: 0; border-radius: 4px; }

/* Checkboxes: the ink box with a lime tick, drawn over the WordPress control */
.aib-ls .aib-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(16, 16, 16, .08); cursor: pointer; }
.aib-ls .aib-check:first-of-type { border-top: 0; }
/* A single checkbox under a field belongs to that field: no divider above it. */
.aib-ls .aib-field .aib-check { border-top: 0; padding-bottom: 0; }
.aib-ls .aib-check .t { font-size: 13.5px; }
.aib-ls .aib-check .t small { display: block; color: var(--aib-grey); font-size: 12.5px; margin-top: 2px; }
.aib-ls input[type=checkbox] { width: 18px; height: 18px; min-width: 18px; margin: 1px 0 0; border: 1.5px solid var(--aib-ink);
    border-radius: 5px; box-shadow: none; background: #fff; }
.aib-ls input[type=checkbox]:checked { background: var(--aib-ink); border-color: var(--aib-ink); }
.aib-ls input[type=checkbox]:checked::before {
    content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M5%2010.5l3.2%203.2L15%206.8%27%20fill%3D%27none%27%20stroke%3D%27%23E2F87E%27%20stroke-width%3D%272.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fsvg%3E");
    margin: -1.5px 0 0 -1.5px; width: 18px; height: 18px; }
.aib-ls input[type=checkbox]:focus { box-shadow: 0 0 0 3px var(--aib-lime); outline: 0; }

/* Notes, tags, badges */
.aib-ls .aib-note { background: var(--aib-sky); border-radius: 16px; padding: 13px 16px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.aib-ls .aib-tag { display: inline-block; vertical-align: 3px; margin-left: 6px; padding: 2px 8px; border-radius: 6px;
    background: var(--aib-beige); color: var(--aib-ink); font-family: "AIB Inter", sans-serif; font-weight: 600; font-size: 11.5px; letter-spacing: 0; }
.aib-ls .aib-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.aib-ls .aib-badge.on { background: var(--aib-lime); color: var(--aib-ink); }
.aib-ls .aib-badge.off { background: var(--aib-surface); color: var(--aib-grey); }
.aib-ls .aib-bld { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0;
    border-top: 1px solid rgba(16, 16, 16, .08); font-size: 13.5px; }
.aib-ls .aib-bld:first-of-type { border-top: 0; }
.aib-ls .aib-empty { color: var(--aib-grey); font-size: 13px; }

/* Table */
.aib-ls .aib-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aib-ls .aib-table th { text-align: left; color: var(--aib-grey); font-weight: 600; font-size: 12px; padding: 0 12px 8px;
    border-bottom: 1px solid var(--aib-line); }
.aib-ls .aib-table td { padding: 11px 12px; border-bottom: 1px solid rgba(16, 16, 16, .06); vertical-align: top; }
.aib-ls .aib-table tr:last-child td { border-bottom: 0; }

/* Buttons */
.aib-ls .aib-save { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.aib-ls .button-primary, .aib-ls .button-primary:focus {
    background: var(--aib-lime); border: 1px solid var(--aib-lime-line); color: var(--aib-ink); border-radius: 10px;
    padding: 6px 22px; min-height: 42px; height: auto; font-family: inherit; font-size: 14px; font-weight: 600; text-shadow: none; box-shadow: none; }
.aib-ls .button-primary:hover { background: var(--aib-lime-deep); border-color: var(--aib-lime-deep); color: var(--aib-ink); }
.aib-ls .button-primary:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--aib-ink); }
.aib-ls .button:not(.button-primary) {
    background: #fff; border: 1px solid var(--aib-ink); color: var(--aib-ink); border-radius: 10px; padding: 4px 16px;
    min-height: 38px; height: auto; font-family: inherit; font-size: 13px; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; }
.aib-ls .button:not(.button-primary):hover { background: var(--aib-surface); color: var(--aib-ink); border-color: var(--aib-ink); }
.aib-ls .button:not(.button-primary):focus { box-shadow: 0 0 0 3px var(--aib-lime); }
