/* Blog Manager Pro — base.css */

/* ── Global theme button reset for entire plugin scope ─────────────────
 * WordPress themes often apply their own colour to button/a elements.
 * This block zeroes those out for everything inside .bmp-app.
 * ──────────────────────────────────────────────────────────────────── */
.bmp-app button,
.bmp-app input,
.bmp-app select,
.bmp-app textarea {
    font-family: var(--font);
    box-sizing: border-box;
}
/* Reset EVERY button inside .bmp-app — we re-apply specific styles below */
.bmp-app button:not(.bmp-btn):not(.bmp-icon-btn):not(.bmp-assign-toggle):not(.bmp-pw-reveal):not(.bmp-pw-copy):not(.bmp-pw-toggle):not(.bmp-modal-x):not(.bmp-status-sel) {
    background: transparent;
    background-color: transparent;
    border: none;
    border-color: transparent;
    color: inherit;
    box-shadow: none;
}

/* ── Full-page takeover ── */
body.bmp-page { background: var(--c-bg) !important; }
body.bmp-page .site-header,
body.bmp-page .site-footer,
body.bmp-page header.entry-header,
body.bmp-page .entry-title,
body.bmp-page .breadcrumbs,
body.bmp-page .page-title { display: none !important; }
body.bmp-page .entry-content,
body.bmp-page .site-content,
body.bmp-page main,
body.bmp-page article,
body.bmp-page .content-area { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
body.bmp-page #page, body.bmp-page #content { max-width: 100% !important; }

/* ── App container ── */
.bmp-app {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.bmp-app *, .bmp-app *::before, .bmp-app *::after { box-sizing: border-box; margin: 0; padding: 0; }
.bmp-app a { color: inherit; text-decoration: none; }
.bmp-app h1, .bmp-app h2, .bmp-app h3 { padding: 0; border: 0; color: var(--c-text); font-family: var(--font); }

/* ── Navbar ── */
.bmp-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 62px;
    background: var(--c-surf);
    border-bottom: 1px solid var(--c-border);
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 500;
}
.bmp-nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.bmp-brand-icon { font-size: 24px; line-height: 1; }
.bmp-brand-name { font-size: 15px; font-weight: 700; color: var(--c-text); }
.bmp-brand-sub  { font-size: 11px; color: var(--c-muted); margin-top: 1px; }

.bmp-back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--c-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid var(--c-border2);
    border-radius: var(--r-sm);
    transition: all .15s;
}
.bmp-back-link:hover { color: var(--c-text); background: var(--c-surf2); }
.bmp-nav-sep { width: 1px; height: 22px; background: var(--c-border2); }
.bmp-nav-wf-icon { font-size: 20px; }
.bmp-nav-wf-name { font-size: 14px; font-weight: 700; color: var(--c-text); display: block; }
.bmp-nav-wf-id   { font-size: 11px; color: var(--c-subtle); }

.bmp-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bmp-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--c-surf2);
    border: 1px solid var(--c-border2);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
}
.bmp-user-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ── Page Header ── */
.bmp-page-header {
    padding: 30px 28px 8px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.bmp-page-title    { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.bmp-page-subtitle { font-size: 13px; color: var(--c-muted); margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 700px) {
    .bmp-navbar { padding: 0 16px; }
    .bmp-stats-row { padding: 16px; grid-template-columns: 1fr 1fr; }
    .bmp-workflows-section, .bmp-tab-body { padding: 0 16px 40px; }
    .bmp-page-header { padding: 20px 16px 8px; }
    .bmp-tabs-wrap { padding: 0 16px; }
    .bmp-wf-grid { grid-template-columns: 1fr; }
    .bmp-report-grid { grid-template-columns: 1fr; }
    .bmp-f2 { grid-template-columns: 1fr; }
    .bmp-wf-hero { padding: 20px 16px; }
    .bmp-hero-progress-ring { display: none; }
    .bmp-brand-sub, .bmp-user-chip span { display: none; }
}

/* ═══════════════════════════════════════
   V6 ADDITIONS — Vault, Access, Levels
   ═══════════════════════════════════════ */

/* -- Token aliases for new accents -- */
:root {
    --c-teal: #39c5cf;
    --c-muted-acc: #545d68;
}
.bmp-ac-muted::before { background: var(--c-muted); }
.bmp-ac-teal::before  { background: var(--c-teal);  }

/* Stat icons */
.bmp-stat-ico { font-size: 22px; margin-bottom:8px; }
.bmp-stat-val { font-size:30px; font-weight:800; letter-spacing:-.02em; line-height:1; }
.bmp-stat-lbl { font-size:12px; font-weight:600; margin-top:6px; }
.bmp-stat-sub { font-size:11px; color:var(--c-subtle); margin-top:3px; }

/* -- Access Level Badges -- */
.bmp-level-badge {
    display:inline-flex; align-items:center; padding:3px 9px;
    border-radius:99px; font-size:11px; font-weight:700;
    letter-spacing:.02em; white-space:nowrap;
}
.bmp-level-owner       { background:rgba(163,113,247,.15); color:#a371f7; border:1px solid rgba(163,113,247,.25); }
.bmp-level-manager     { background:rgba(88,166,255,.15);  color:#58a6ff; border:1px solid rgba(88,166,255,.25); }
.bmp-level-editor      { background:rgba(63,185,80,.15);   color:#3fb950; border:1px solid rgba(63,185,80,.25); }
.bmp-level-contributor { background:rgba(240,136,62,.15);  color:#f0883e; border:1px solid rgba(240,136,62,.25); }
.bmp-level-viewer      { background:rgba(139,148,158,.12); color:#8b949e; border:1px solid rgba(139,148,158,.2); }

.bmp-pub-badge {
    display:inline-flex; align-items:center; padding:3px 8px;
    background:rgba(57,197,207,.12); color:var(--c-teal);
    border:1px solid rgba(57,197,207,.2);
    border-radius:99px; font-size:10px; font-weight:700;
    letter-spacing:.03em; margin-left:4px;
}

/* -- Credential type badges -- */
.bmp-type-badge {
    display:inline-flex; align-items:center; gap:4px; padding:3px 9px;
    background:var(--c-surf2); border:1px solid var(--c-border2);
    border-radius:var(--r-sm); font-size:12px; white-space:nowrap;
}
.bmp-type-login    { color:#58a6ff; }
.bmp-type-api_key  { color:#a371f7; }
.bmp-type-ftp      { color:#f0883e; }
.bmp-type-database { color:#3fb950; }
.bmp-type-ssh      { color:#e3b341; }
.bmp-type-smtp     { color:#39c5cf; }
.bmp-type-other    { color:#8b949e; }

/* -- Mono text for usernames -- */
.bmp-mono { font-family: 'Courier New', monospace; font-size:12px; }
.bmp-col-user { max-width:160px; }

/* -- Password cell -- */
.bmp-pw-cell { display:flex; align-items:center; gap:5px; }
.bmp-pw-mask {
    font-family:'Courier New',monospace; font-size:13px;
    letter-spacing:2px; color:var(--c-muted);
    min-width:80px;
}
.bmp-pw-mask.revealed {
    letter-spacing:0; color:var(--c-text);
    font-size:12px;
    background:var(--c-surf2); padding:2px 6px;
    border-radius:var(--r-sm); border:1px solid var(--c-border2);
}
.bmp-pw-reveal, .bmp-pw-copy {
    background:none; border:1px solid var(--c-border);
    border-radius:var(--r-sm); width:26px; height:26px;
    display:inline-flex; align-items:center; justify-content:center;
    cursor:pointer; font-size:13px; color:var(--c-muted);
    transition:all .15s; flex-shrink:0;
}
.bmp-pw-reveal:hover, .bmp-pw-copy:hover {
    background:var(--c-surf2); color:var(--c-text); border-color:var(--c-border2);
}

/* Password input wrapper */
.bmp-pw-input-wrap { position:relative; }
.bmp-pw-input-wrap .bmp-in { padding-right:42px; }
.bmp-pw-toggle {
    position:absolute; right:10px; top:50%; transform:translateY(-50%);
    background:none; border:none; cursor:pointer; font-size:16px;
    color:var(--c-muted); padding:0; line-height:1;
}

/* -- Access Settings -- */
.bmp-access-header {
    display:flex; align-items:flex-start; justify-content:space-between;
    margin-bottom:24px; flex-wrap:wrap; gap:12px;
}
.bmp-access-header h2 { font-size:20px; font-weight:800; margin-bottom:4px; }
.bmp-access-header p  { font-size:13px; color:var(--c-muted); max-width:500px; }

.bmp-access-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:16px;
    margin-bottom:24px;
}
.bmp-access-card {
    background:var(--c-surf);
    border:1px solid var(--c-border);
    border-top:3px solid var(--lc,var(--c-primary));
    border-radius:var(--r);
    padding:20px;
    transition:box-shadow .2s;
}
.bmp-access-card:hover { box-shadow:var(--shadow-sm); }
.bmp-access-card-top {
    display:flex; align-items:flex-start; gap:12px; margin-bottom:16px;
}
.bmp-ac-icon { font-size:24px; flex-shrink:0; margin-top:2px; }
.bmp-ac-name { font-size:14px; font-weight:700; color:var(--c-text); margin-bottom:3px; }
.bmp-ac-desc { font-size:11px; color:var(--c-muted); line-height:1.4; }
.bmp-ac-lock { font-size:16px; margin-left:auto; flex-shrink:0; opacity:.5; }

.bmp-ac-perms { display:flex; flex-direction:column; gap:0; }
.bmp-perm-row {
    display:flex; align-items:center; gap:10px;
    padding:8px 0;
    border-bottom:1px solid var(--c-border);
    cursor:pointer;
    transition:opacity .15s;
}
.bmp-perm-row:last-child { border-bottom:none; }
.bmp-perm-row:hover { opacity:.8; }
.bmp-perm-locked { cursor:default; opacity:.6; }

/* Custom toggle switch */
.bmp-perm-row input[type="checkbox"] { display:none; }
.bmp-perm-toggle {
    width:32px; height:18px; border-radius:9px;
    background:var(--c-border2); flex-shrink:0;
    position:relative; transition:background .2s;
}
.bmp-perm-toggle::after {
    content:''; position:absolute;
    width:12px; height:12px; border-radius:50%;
    background:#fff; top:3px; left:3px;
    transition:transform .2s;
}
.bmp-perm-row input:checked + .bmp-perm-toggle { background:var(--lc,var(--c-primary)); }
.bmp-perm-row input:checked + .bmp-perm-toggle::after { transform:translateX(14px); }
.bmp-perm-label { font-size:12px; font-weight:500; color:var(--c-text); }

.bmp-access-note {
    background:rgba(88,166,255,.07); border:1px solid rgba(88,166,255,.15);
    border-radius:var(--r); padding:14px 18px;
    font-size:13px; color:var(--c-muted); line-height:1.6;
}
.bmp-access-note strong { color:var(--c-blue); }

/* -- Credential summary rows (overview) -- */
.bmp-cred-row {
    display:flex; align-items:center; justify-content:space-between;
    padding:9px 0; border-bottom:1px solid var(--c-border);
}
.bmp-cred-row:last-child { border-bottom:none; }
.bmp-cred-title { font-size:13px; font-weight:500; }

/* -- Avatar mini (accessible-by) -- */
.bmp-av-xs {
    display:inline-flex; align-items:center; justify-content:center;
    width:24px; height:24px; border-radius:50%;
    background:linear-gradient(135deg,var(--c-primary),var(--c-violet));
    color:#fff; font-size:10px; font-weight:700;
    margin-left:-4px; border:2px solid var(--c-surf);
}
.bmp-av-xs:first-child { margin-left:0; }
.bmp-av-more {
    background:var(--c-surf2); border-color:var(--c-border2);
    color:var(--c-muted); font-size:9px;
}

/* -- Vault assign level preview -- */
.bmp-level-preview {
    background:var(--c-surf2); border:1px solid var(--c-border);
    border-radius:var(--r-sm); padding:12px 14px;
    font-size:12px; color:var(--c-muted); line-height:1.5;
}

/* -- Overrides for v5 stat card names (v6 uses different class names) -- */
.bmp-stat-card { padding:18px 18px 16px; }

/* Responsive additions */
@media (max-width:700px) {
    .bmp-access-grid { grid-template-columns:1fr; }
    .bmp-access-header { flex-direction:column; }
}

/* ═══════════════════════════════════════════
   V6.1.2 — Vault assignment & webmail styles
   ═══════════════════════════════════════════ */

/* Vault assign section inside modal */
.bmp-vault-assign-section {
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    overflow: hidden;
}
.bmp-assign-toggle {
    width: 100%;
    background: var(--c-surf2);
    border: none;
    color: var(--c-text);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s;
}
.bmp-assign-toggle:hover { background: var(--c-border2); }
.bmp-assign-toggle #bmp-vault-assign-count {
    background: var(--c-primary);
    color: #fff;
    border-radius: 99px;
    font-size: 10px;
    padding: 2px 7px;
    font-weight: 700;
    display: none;
}
.bmp-assign-toggle #bmp-vault-assign-count.visible { display: inline; }
.bmp-toggle-arrow { margin-left: auto; font-size: 10px; color: var(--c-muted); }
.bmp-assign-panel { padding: 12px; }

/* Checklist */
.bmp-wf-checklist, .bmp-bulk-wf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}
.bmp-checklist-loading {
    color: var(--c-muted);
    font-size: 13px;
    padding: 16px 0;
    text-align: center;
}
.bmp-wf-check-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--c-surf2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    transition: border-color .15s;
}
.bmp-wf-check-row.is-checked {
    border-color: var(--c-primary);
    background: rgba(99,102,241,.07);
}
.bmp-wf-check-cb {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--c-primary);
}
.bmp-wf-check-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.bmp-wf-check-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bmp-wf-check-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bmp-wf-check-level {
    flex-shrink: 0;
}
.bmp-wf-check-level select {
    background: var(--c-surf);
    border: 1px solid var(--c-border2);
    border-radius: var(--r-sm);
    color: var(--c-text);
    font-family: var(--font);
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
    opacity: .4;
    transition: opacity .15s;
}
.bmp-wf-check-row.is-checked .bmp-wf-check-level select { opacity: 1; }

/* Bulk assign empty */
.bmp-bulk-empty {
    text-align: center;
    padding: 30px;
    color: var(--c-muted);
    font-size: 13px;
}

/* Webmail type badge */
.bmp-type-webmail { color: #e3b341; }
/* ── Scrollbar ── */
.bmp-app ::-webkit-scrollbar       { width:6px; height:6px; }
.bmp-app ::-webkit-scrollbar-track { background:transparent; }
.bmp-app ::-webkit-scrollbar-thumb { background:var(--c-border2); border-radius:99px; }

/* ── Animations ── */
@keyframes bmp-fade    { from { opacity:0 } to { opacity:1 } }
@keyframes bmp-slide   { from { transform:translateY(14px); opacity:0 } to { transform:none; opacity:1 } }
@keyframes bmp-slide-r { from { transform:translateX(20px); opacity:0 } to { transform:none; opacity:1 } }
@keyframes bmp-spin    { to { transform:rotate(360deg) } }

/* ── Access denied ── */
.bmp-access-denied {
    min-height: 100vh; background: var(--c-bg);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font);
}
.bmp-denied-box {
    text-align: center;
    padding: 48px;
    background: var(--c-surf);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    max-width: 380px;
}
.bmp-denied-icon { font-size: 48px; margin-bottom: 16px; }
.bmp-denied-box h2 { font-size: 20px; font-weight: 700; color: var(--c-text); margin-bottom: 10px; }
.bmp-denied-box p  { font-size: 13px; color: var(--c-muted); margin-bottom: 22px; line-height: 1.6; }

/* ── Workflow Hero ── */
.bmp-wf-hero {
    background: linear-gradient(135deg, color-mix(in srgb, var(--wf-color) 25%, #161b22), #161b22);
    border-bottom: 1px solid var(--c-border);
    padding: 28px 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.bmp-wf-hero-left { display: flex; align-items: center; gap: 20px; }
.bmp-hero-icon    { font-size: 48px; line-height: 1; flex-shrink: 0; }
.bmp-hero-title   { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 5px; }
.bmp-hero-desc    { font-size: 13px; color: var(--c-muted); margin-bottom: 10px; }
.bmp-hero-meta    { display: flex; gap: 8px; flex-wrap: wrap; }
.bmp-hero-chip {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 99px;
}
.bmp-chip-green { color: var(--c-green); background: rgba(63,185,80,.1); border-color: rgba(63,185,80,.2); }

.bmp-hero-progress-ring { position: relative; flex-shrink: 0; }
.bmp-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--c-text);
}

/* ── Tabs ── */
.bmp-tabs-wrap {
    display: flex;
    padding: 0 28px;
    background: var(--c-surf);
    border-bottom: 1px solid var(--c-border);
    overflow-x: auto;
}
.bmp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all .15s;
}
.bmp-tab:hover { color: var(--c-text); }
.bmp-tab-active { color: var(--c-text); border-bottom-color: var(--c-primary); }

.bmp-tab-body { padding: 24px 28px 60px; }

/* ── Report Grid ── */
.bmp-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 860px) { .bmp-report-grid { grid-template-columns: 1fr; } }

/* ── Toast ── */
#bmp-toast {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 99999;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.bmp-toast {
    background: var(--c-surf);
    border: 1px solid var(--c-border2);
    border-radius: var(--r);
    color: var(--c-text);
    font-family: var(--font); font-size: 13px; font-weight: 500;
    padding: 11px 16px;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 8px;
    animation: bmp-slide-r .2s ease;
    pointer-events: auto;
    max-width: 300px;
}
.bmp-toast.ok  { border-left: 3px solid var(--c-green); }
.bmp-toast.err { border-left: 3px solid var(--c-red); }

/* ═══════════════════════════════════════════════════
   Blog Manager Pro v5 — Frontend Dark Dashboard
   ═══════════════════════════════════════════════════ */

:root {
    --c-bg:       #0d1117;
    --c-surf:     #161b22;
    --c-surf2:    #1c2128;
    --c-border:   #21262d;
    --c-border2:  #30363d;
    --c-text:     #e6edf3;
    --c-muted:    #8b949e;
    --c-subtle:   #545d68;

    --c-blue:     #58a6ff;
    --c-violet:   #a371f7;
    --c-green:    #3fb950;
    --c-orange:   #f0883e;
    --c-red:      #f85149;
    --c-yellow:   #e3b341;

    --c-primary:  #6366f1;
    --c-pri-hov:  #5254cc;

    --r:          10px;
    --r-sm:       6px;
    --r-lg:       14px;
    --shadow:     0 8px 32px rgba(0,0,0,.5);
    --shadow-sm:  0 2px 8px rgba(0,0,0,.35);

    --font: 'Outfit', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════
   Light theme — CSS vars overridden on :root via JS.
   .bmp-lt class on #bmp-app for scoped overrides.
   ═══════════════════════════════════════════════════ */
#bmp-app.bmp-lt { background: var(--c-bg); color: var(--c-text); }

/* Inputs & selects */
#bmp-app.bmp-lt .bmp-in,
#bmp-app.bmp-lt .bmp-in:focus,
#bmp-app.bmp-lt select.bmp-in,
#bmp-app.bmp-lt textarea.bmp-in { background: #fff; color: var(--c-text); border-color: var(--c-border2); }
#bmp-app.bmp-lt .bmp-in::placeholder { color: var(--c-muted); }

/* Ghost / outline buttons */
#bmp-app.bmp-lt .bmp-btn-ghost { color: var(--c-text); border-color: var(--c-border2); }
#bmp-app.bmp-lt .bmp-btn-ghost:hover { background: var(--c-surf2); }
#bmp-app.bmp-lt .bmp-icon-btn { background: #fff; border-color: var(--c-border2); color: var(--c-text); }
#bmp-app.bmp-lt .bmp-icon-btn:hover { background: var(--c-surf2); border-color: var(--c-primary); }

/* Tables */
#bmp-app.bmp-lt .bmp-table { background: #fff; }
#bmp-app.bmp-lt .bmp-table thead th { background: var(--c-surf2); color: var(--c-subtle); }
#bmp-app.bmp-lt .bmp-table tbody tr { border-color: var(--c-border); }
#bmp-app.bmp-lt .bmp-table tbody tr:hover { background: var(--c-surf2); }

/* Modals */
#bmp-app.bmp-lt .bmp-modal-box { background: #fff; border-color: var(--c-border); }
#bmp-app.bmp-lt .bmp-modal-hd { background: var(--c-surf2); border-color: var(--c-border); }
#bmp-app.bmp-lt .bmp-modal-ft { background: var(--c-surf2); border-color: var(--c-border); }

/* Cards & panels */
#bmp-app.bmp-lt .bmp-wf-card  { background: #fff; }
#bmp-app.bmp-lt .bmp-panel    { background: #fff; }
#bmp-app.bmp-lt .bmp-stat-card { background: #fff; }
#bmp-app.bmp-lt .bmp-panel-hd { background: var(--c-surf2); }
#bmp-app.bmp-lt .bmp-kpi      { background: #fff; }

/* Navbar & tabs */
#bmp-app.bmp-lt .bmp-navbar    { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
#bmp-app.bmp-lt .bmp-tabs-wrap { background: #fff; box-shadow: 0 1px 0 var(--c-border); }
#bmp-app.bmp-lt .bmp-tab       { color: var(--c-muted); }
#bmp-app.bmp-lt .bmp-tab:hover { color: var(--c-text); }
#bmp-app.bmp-lt .bmp-tab-active { color: var(--c-text); }
#bmp-app.bmp-lt .bmp-sub-tabs  { background: #fff; }

/* Progress */
#bmp-app.bmp-lt .bmp-prog-track    { background: #e1e5e9; }
#bmp-app.bmp-lt .bmp-progress-track { background: #e1e5e9; }

/* Back link */
#bmp-app.bmp-lt .bmp-back-link { color: var(--c-muted); border-color: var(--c-border2); }
#bmp-app.bmp-lt .bmp-back-link:hover { color: var(--c-text); background: var(--c-surf2); }

/* User chip */
#bmp-app.bmp-lt .bmp-user-chip { background: var(--c-surf2); border-color: var(--c-border2); color: var(--c-text); }

/* Section bar */
#bmp-app.bmp-lt .bmp-section-bar { color: var(--c-text); }
#bmp-app.bmp-lt .bmp-count-chip { background: var(--c-surf2); border-color: var(--c-border); color: var(--c-muted); }

/* Toast */
#bmp-app.bmp-lt .bmp-toast.ok  { background: #e6f9ec; color: #1a7f37; border-color: rgba(26,127,55,.3); }
#bmp-app.bmp-lt .bmp-toast.err { background: #fce8e8; color: #cf222e; border-color: rgba(207,34,46,.3); }

/* Dropdown / status select */
#bmp-app.bmp-lt .bmp-status-sel,
#bmp-app.bmp-lt select { background: #fff; color: var(--c-text); border-color: var(--c-border2); }

/* Access cards */
#bmp-app.bmp-lt .bmp-access-card { background: #fff; }
#bmp-app.bmp-lt .bmp-perm-row { border-color: var(--c-border); }

/* WF hero */
#bmp-app.bmp-lt .bmp-wf-hero-v3 { border-color: var(--c-border); }
#bmp-app.bmp-lt .bmp-wf-back-btn { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.2); color: var(--c-primary); }
#bmp-app.bmp-lt .bmp-wf-back-btn:hover { background: var(--c-primary); color: #fff; }
#bmp-app.bmp-lt .bmp-stats-row-wf { background: #fff; border-color: var(--c-border); }
#bmp-app.bmp-lt .bmp-wf-kpi-cell { border-color: var(--c-border); }
#bmp-app.bmp-lt .bmp-wf-kpi-cell:hover { background: var(--c-surf2); }

/* ── Theme Toggle Button ───────────────────────────── */
.bmp-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--c-surf2);
    border: 1px solid var(--c-border2);
    border-radius: 99px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all .2s;
    flex-shrink: 0;
    padding: 0;
    color: var(--c-text);
}
.bmp-theme-toggle:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    transform: rotate(20deg) scale(1.05);
    box-shadow: 0 0 12px rgba(99,102,241,.4);
}


/* ── Site sub-tabs inside Blog Posts tab ─────────── */
.bmp-sub-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--c-border);
    overflow-x: auto;
    padding: 0 4px;
    background: var(--c-surf);
}
.bmp-sub-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all .15s;
    text-decoration: none;
}
.bmp-sub-tab:hover { color: var(--c-text); }
.bmp-sub-tab-a {
    color: var(--c-text) !important;
    border-bottom-color: var(--c-primary) !important;
    font-weight: 600 !important;
}
.bmp-sub-tab-count {
    background: var(--c-border2);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    color: var(--c-muted);
}
.bmp-sub-tab-a .bmp-sub-tab-count {
    background: rgba(99,102,241,.2);
    color: var(--c-primary);
}

/* ── No-sites hint in blog tab ──────────────────────── */
.bmp-no-sites-hint {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    background: rgba(99,102,241,.05);
    border-bottom: 1px solid var(--c-border);
    font-size: 12px; color: var(--c-muted);
}
.bmp-hint-link {
    color: var(--c-primary); font-weight: 600; text-decoration: none;
}
.bmp-hint-link:hover { text-decoration: underline; }

/* ── WP Emoji Fix ───────────────────────────────────────── */
/* Prevents Twemoji SVGs from exploding to massive sizes */
.bmp-app img.emoji {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    vertical-align: -0.1em !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 0.1em !important;
    padding: 0 !important;
}
