/* ============================================================
   Beauty Manager Pro — Main Stylesheet
   Design System: Elegant SaaS / HubSpot / ClickUp inspired
   ============================================================ */

/* ── HARD ISOLATION RESET ── */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bmp-bg, #f8f7ff) !important;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}
/* Kill Elementor layout wrappers if somehow present */
.elementor-page, .e--ua-safari, .elementor,
.elementor-section-wrap, .elementor-widget-container,
#page, #content, .site, .site-content, .hfeed,
.entry-content, .post-content { all: unset !important; }

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Brand */
  --bmp-primary:       #7c3aed;
  --bmp-primary-dark:  #5b21b6;
  --bmp-primary-light: #ede9fe;
  --bmp-accent:        #ec4899;
  --bmp-accent-light:  #fce7f3;

  /* Neutrals */
  --bmp-bg:          #f8f7ff;
  --bmp-surface:     #ffffff;
  --bmp-surface-2:   #f4f4f8;
  --bmp-border:      #e5e7eb;
  --bmp-border-2:    #d1d5db;
  --bmp-text:        #111827;
  --bmp-text-2:      #4b5563;
  --bmp-text-3:      #9ca3af;
  --bmp-text-secondary: var(--bmp-text-2);
  --bmp-text-muted: var(--bmp-text-3);
  /* Sidebar: same palette as body, subtly different */
  --bmp-sidebar-bg:         #f3f1ff;   /* very light tint, distinct from body #f8f7ff */
  --bmp-sidebar-text:       #5a5880;   /* readable muted purple-gray */
  --bmp-sidebar-active-bg:  var(--bmp-primary);
  --bmp-sidebar-active:     #fff;
  --bmp-sidebar-border:     #e2dff5;   /* soft divider */

  /* Status colors */
  --bmp-green:  #10b981;
  --bmp-yellow: #f59e0b;
  --bmp-red:    #ef4444;
  --bmp-blue:   #3b82f6;
  --bmp-gray:   #6b7280;

  /* Shadows */
  --bmp-shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --bmp-shadow:    0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
  --bmp-shadow-md: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.05);
  --bmp-shadow-lg: 0 20px 40px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.08);

  /* Radius */
  --bmp-radius-sm: 6px;
  --bmp-radius:    10px;
  --bmp-radius-md: 14px;
  --bmp-radius-lg: 20px;
  --bmp-radius-xl: 28px;

  /* Spacing */
  --bmp-sidebar-width: 260px;
  --bmp-sidebar-collapsed: 68px;
  --bmp-header-height: 64px;

  /* Transitions */
  --bmp-transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ─── DARK MODE ─────────────────────────────────────────── */
[data-theme="dark"] {
  --bmp-bg:        #0f0e1a;
  --bmp-surface:   #1a1828;
  --bmp-surface-2: #231f34;
  --bmp-border:    #2e2b45;
  --bmp-border-2:  #3d3960;
  --bmp-text:      #f1f0ff;
  --bmp-text-2:    #a09bbf;
  --bmp-text-3:    #6b6890;
  --bmp-primary-light:  rgba(124,58,237,.15);
  --bmp-accent-light:   rgba(236,72,153,.12);
  /* Sidebar dark: use -dk- vars (set in page-head or fallback defaults) */
  --bmp-sidebar-bg:         var(--bmp-sidebar-dk-bg,         #1a1828);
  --bmp-sidebar-text:       var(--bmp-sidebar-dk-text,       #7e7a9a);
  --bmp-sidebar-active-bg:  var(--bmp-sidebar-dk-active-bg,  #7c3aed);
  --bmp-sidebar-active:     var(--bmp-sidebar-dk-active,     #ffffff);
  --bmp-sidebar-border:     var(--bmp-sidebar-dk-border,     #2e2b45);
}
/* ── Dark mode component overrides ─────────────────────── */
/* Dark mode: keep solid active state, lighter hover */
[data-theme="dark"] .bmp-nav-link:hover {
  background: rgba(124,58,237,.15);
  color: #a78bfa;
}
[data-theme="dark"] .bmp-nav-link.active {
  background: var(--bmp-primary);
  color: #fff;
}
[data-theme="dark"] .bmp-sidebar-brand-name {
  color: var(--bmp-text);
}
[data-theme="dark"] .bmp-topbar {
  background: var(--bmp-surface);
  border-bottom-color: var(--bmp-border);
}
[data-theme="dark"] .bmp-card {
  background: var(--bmp-surface);
  border-color: var(--bmp-border);
}
[data-theme="dark"] .bmp-input,
[data-theme="dark"] .bmp-select,
[data-theme="dark"] .bmp-textarea {
  background: var(--bmp-surface-2);
  border-color: var(--bmp-border);
  color: var(--bmp-text);
}
[data-theme="dark"] .bmp-table th {
  background: var(--bmp-surface-2);
  color: var(--bmp-text-2);
}
[data-theme="dark"] .bmp-table td {
  border-color: var(--bmp-border);
}
[data-theme="dark"] .bmp-table tr:hover td {
  background: var(--bmp-surface-2);
}


/* ─── RESET / BASE ──────────────────────────────────────── */
.bmp-wrap *, .bmp-wrap *::before, .bmp-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }
.bmp-wrap { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; color: var(--bmp-text); background: var(--bmp-bg); line-height: 1.6; }
.bmp-wrap a { color: var(--bmp-primary); text-decoration: none; }
.bmp-wrap img { max-width: 100%; }
.bmp-wrap input, .bmp-wrap textarea, .bmp-wrap select, .bmp-wrap button { font-family: inherit; font-size: inherit; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.bmp-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bmp-bg);
}

/* ─── SIDEBAR ────────────────────────────────────────────── */
.bmp-sidebar {
  width: var(--bmp-sidebar-width);
  background: var(--bmp-sidebar-bg);
  border-right: 1px solid var(--bmp-sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: width var(--bmp-transition), background var(--bmp-transition), border-color var(--bmp-transition);
  overflow: hidden;
}
.bmp-sidebar.collapsed { width: var(--bmp-sidebar-collapsed); }

.bmp-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-bottom: 1px solid var(--bmp-sidebar-border);
  min-height: 72px;
}
/* Logo: 90% of sidebar width, auto height, object-fit contain */
.bmp-sidebar-logo {
  width: 90%;
  max-width: calc(var(--bmp-sidebar-width) * 0.9);
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
/* Collapsed sidebar: hide logo, show nothing (brand hidden anyway) */
.sidebar-collapsed .bmp-sidebar-logo {
  width: 36px;
  max-width: 36px;
  object-position: center;
}
/* Fallback brand text when no logo */
.bmp-sidebar-brand-wrap {
  width: 90%;
  display: flex;
  align-items: center;
}
.bmp-sidebar-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--bmp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.2px;
}
.sidebar-collapsed .bmp-sidebar-brand-wrap { display: none; }
.bmp-sidebar-logo-placeholder {
  width: 36px; height: 36px;
  background: var(--bmp-primary);
  border-radius: var(--bmp-radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px; font-weight: 800;
  color: #fff;
}
.bmp-sidebar-brand {
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--bmp-transition);
}

}
.bmp-sidebar.collapsed .bmp-sidebar-brand { opacity: 0; width: 0; }

.bmp-sidebar-toggle {
  margin-left: auto; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  color: var(--bmp-sidebar-text);
  padding: 4px; border-radius: var(--bmp-radius-sm);
  transition: color var(--bmp-transition), background var(--bmp-transition);
}
.bmp-sidebar-toggle:hover { color: #fff; background: rgba(255,255,255,.08); }

/* User info */
.bmp-sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bmp-sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bmp-primary);
  color: #fff; font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.bmp-sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bmp-sidebar-user-info { overflow: hidden; }
.bmp-sidebar-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmp-sidebar-user-role { font-size: 11px; color: var(--bmp-sidebar-text); text-transform: uppercase; letter-spacing: .5px; }
.bmp-sidebar.collapsed .bmp-sidebar-user-info { display: none; }

/* Nav */
.bmp-nav { flex: 1; padding: 10px 10px; overflow-y: auto; overflow-x: hidden; }
.bmp-nav::-webkit-scrollbar { width: 4px; }
.bmp-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.bmp-nav-section { margin-bottom: 4px; }
.bmp-nav-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(196,181,253,.4); padding: 8px 10px 4px; white-space: nowrap; overflow: hidden;
}
.bmp-sidebar.collapsed .bmp-nav-label { visibility: hidden; }

.bmp-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--bmp-radius);
  cursor: pointer; color: var(--bmp-sidebar-text);
  transition: all var(--bmp-transition);
  white-space: nowrap;
  position: relative; user-select: none;
  margin-bottom: 2px;
}
.bmp-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.bmp-nav-item.active { background: var(--bmp-primary); color: #fff; }
.bmp-nav-item.active .bmp-nav-icon { color: #fff; }
.bmp-nav-item.agenda-highlight { border: 1px solid rgba(124,58,237,.4); }
.bmp-nav-item.agenda-highlight.active { border-color: transparent; }

.bmp-nav-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.bmp-nav-text { font-size: 13.5px; font-weight: 500; transition: opacity var(--bmp-transition); }
.bmp-sidebar.collapsed .bmp-nav-text { opacity: 0; pointer-events: none; }
.bmp-nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: var(--bmp-accent); color: #fff;
  padding: 1px 6px; border-radius: 20px; line-height: 16px;
}

/* Tooltip for collapsed */
.bmp-sidebar.collapsed .bmp-nav-item:hover::after {
  content: attr(data-label);
  position: absolute; left: calc(var(--bmp-sidebar-collapsed) + 8px);
  background: #1e1b4b; color: #fff;
  padding: 5px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 500;
  white-space: nowrap; pointer-events: none;
  box-shadow: var(--bmp-shadow-md);
  z-index: 200;
}

.bmp-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--bmp-sidebar-border);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ─── MAIN CONTENT ───────────────────────────────────────── */
.bmp-main {
  flex: 1;
  margin-left: var(--bmp-sidebar-width);
  transition: margin-left var(--bmp-transition);
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.bmp-sidebar.collapsed ~ .bmp-main { margin-left: var(--bmp-sidebar-collapsed); }

/* ─── TOPBAR ─────────────────────────────────────────────── */
.bmp-topbar {
  height: var(--bmp-header-height);
  background: var(--bmp-surface);
  border-bottom: 1px solid var(--bmp-border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--bmp-shadow-sm);
}
.bmp-topbar-title { font-size: 17px; font-weight: 700; color: var(--bmp-text); }
.bmp-topbar-subtitle { font-size: 12px; color: var(--bmp-text-3); margin-left: 2px; }

.bmp-global-search {
  flex: 1; max-width: 380px; margin-left: 24px;
  position: relative;
}
.bmp-global-search input {
  width: 100%; padding: 9px 16px 9px 40px;
  background: var(--bmp-surface-2); border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-xl); font-size: 13px; color: var(--bmp-text);
  transition: all var(--bmp-transition); outline: none;
}
.bmp-global-search input:focus { border-color: var(--bmp-primary); background: var(--bmp-surface); box-shadow: 0 0 0 3px var(--bmp-primary-light); }
.bmp-global-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bmp-text-3); width: 16px; height: 16px; }
.bmp-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bmp-surface); border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md); box-shadow: var(--bmp-shadow-md);
  overflow: hidden; z-index: 200; max-height: 320px; overflow-y: auto;
  display: none;
}
.bmp-search-results.open { display: block; }
.bmp-search-result-item {
  padding: 10px 14px; display: flex; gap: 10px; align-items: center;
  cursor: pointer; transition: background var(--bmp-transition);
}
.bmp-search-result-item:hover { background: var(--bmp-surface-2); }
.bmp-search-result-badge {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
  background: var(--bmp-primary-light); color: var(--bmp-primary); flex-shrink: 0;
}

.bmp-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bmp-topbar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--bmp-text-2); transition: all var(--bmp-transition);
}
.bmp-topbar-btn:hover { background: var(--bmp-surface-2); color: var(--bmp-text); }

/* ─── PAGE CONTENT ───────────────────────────────────────── */
.bmp-content { flex: 1; padding: 28px 28px; }

/* ─── PAGE HEADER ────────────────────────────────────────── */
.bmp-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.bmp-page-title { font-size: 22px; font-weight: 800; color: var(--bmp-text); }
.bmp-page-subtitle { font-size: 13px; color: var(--bmp-text-3); margin-top: 3px; }
.bmp-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.bmp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--bmp-radius);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all var(--bmp-transition);
  line-height: 1; white-space: nowrap;
}
.bmp-btn:disabled { opacity: .55; cursor: not-allowed; }

.bmp-btn-primary { background: var(--bmp-primary); color: #fff; border-color: var(--bmp-primary); }
.bmp-btn-primary:hover:not(:disabled) { background: var(--bmp-primary-dark); border-color: var(--bmp-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,.35); }

.bmp-btn-secondary { background: var(--bmp-surface); color: var(--bmp-text); border-color: var(--bmp-border-2); }
.bmp-btn-secondary:hover:not(:disabled) { background: var(--bmp-surface-2); border-color: var(--bmp-border-2); }

.bmp-btn-ghost { background: transparent; color: var(--bmp-text-2); border-color: transparent; }
.bmp-btn-ghost:hover:not(:disabled) { background: var(--bmp-surface-2); color: var(--bmp-text); }

.bmp-btn-danger { background: #fef2f2; color: var(--bmp-red); border-color: #fecaca; }
.bmp-btn-danger:hover:not(:disabled) { background: var(--bmp-red); color: #fff; }

.bmp-btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }
.bmp-btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 12px; }
.bmp-btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: var(--bmp-radius-sm); }

/* ─── CARDS ──────────────────────────────────────────────── */
.bmp-card {
  background: var(--bmp-surface);
  border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md);
  box-shadow: var(--bmp-shadow-sm);
  overflow: hidden;
}
.bmp-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--bmp-border);
}
.bmp-card-title { font-size: 15px; font-weight: 700; color: var(--bmp-text); }
.bmp-card-body { padding: 22px; }
.bmp-card-footer { padding: 14px 22px; border-top: 1px solid var(--bmp-border); background: var(--bmp-surface-2); }

/* ─── STAT CARDS ─────────────────────────────────────────── */
.bmp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.bmp-stat-card {
  background: var(--bmp-surface);
  border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md);
  padding: 20px 22px;
  display: flex; align-items: flex-start; justify-content: space-between;
  box-shadow: var(--bmp-shadow-sm);
  transition: box-shadow var(--bmp-transition), transform var(--bmp-transition);
  position: relative; overflow: hidden;
}
.bmp-stat-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--bmp-stat-color, var(--bmp-primary));
}
.bmp-stat-card:hover { box-shadow: var(--bmp-shadow-md); transform: translateY(-2px); }
.bmp-stat-info { flex: 1; }
.bmp-stat-label { font-size: 12px; font-weight: 600; color: var(--bmp-text-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.bmp-stat-value { font-size: 26px; font-weight: 800; color: var(--bmp-text); line-height: 1; }
.bmp-stat-sub { font-size: 12px; color: var(--bmp-text-3); margin-top: 4px; }
.bmp-stat-icon {
  width: 44px; height: 44px; border-radius: var(--bmp-radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--bmp-stat-bg, var(--bmp-primary-light));
  color: var(--bmp-stat-color, var(--bmp-primary));
  flex-shrink: 0;
}

/* ─── FORM ELEMENTS ──────────────────────────────────────── */
.bmp-form-group { margin-bottom: 18px; }
.bmp-label { display: block; font-size: 13px; font-weight: 600; color: var(--bmp-text-2); margin-bottom: 6px; }
.bmp-label-required::after { content: ' *'; color: var(--bmp-red); }

.bmp-input, .bmp-select, .bmp-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bmp-surface); border: 1.5px solid var(--bmp-border-2);
  border-radius: var(--bmp-radius); font-size: 13.5px; color: var(--bmp-text);
  transition: all var(--bmp-transition); outline: none;
  appearance: none;
}
.bmp-input:focus, .bmp-select:focus, .bmp-textarea:focus {
  border-color: var(--bmp-primary);
  box-shadow: 0 0 0 3px var(--bmp-primary-light);
}
.bmp-input::placeholder { color: var(--bmp-text-3); }
.bmp-textarea { min-height: 90px; resize: vertical; }
.bmp-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}

.bmp-input-group { position: relative; }
.bmp-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bmp-text-3); width: 16px; height: 16px; pointer-events: none; }
.bmp-input-group .bmp-input { padding-left: 38px; }
.bmp-input-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

/* Password toggle */
.bmp-password-wrap { position: relative; }
.bmp-password-wrap .bmp-input { padding-right: 44px; }
.bmp-password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--bmp-text-3); padding: 4px;
  transition: color var(--bmp-transition);
  display: flex; align-items: center;
}
.bmp-password-toggle:hover { color: var(--bmp-primary); }

.bmp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bmp-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.bmp-form-error { font-size: 12px; color: var(--bmp-red); margin-top: 4px; }
.bmp-form-help { font-size: 12px; color: var(--bmp-text-3); margin-top: 4px; }

/* ─── TABLE ──────────────────────────────────────────────── */
.bmp-table-wrap { overflow-x: auto; border-radius: var(--bmp-radius-md); border: 1px solid var(--bmp-border); }
.bmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bmp-table thead { background: var(--bmp-surface-2); }
.bmp-table th {
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--bmp-text-3); border-bottom: 1px solid var(--bmp-border);
  white-space: nowrap;
}
.bmp-table td { padding: 13px 16px; border-bottom: 1px solid var(--bmp-border); color: var(--bmp-text); vertical-align: middle; }
.bmp-table tbody tr { transition: background var(--bmp-transition); }
.bmp-table tbody tr:last-child td { border-bottom: none; }
.bmp-table tbody tr:hover { background: var(--bmp-surface-2); }
.bmp-table .bmp-table-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ─── BADGES / PILLS ─────────────────────────────────────── */
.bmp-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.bmp-badge-scheduled   { background: #ede9fe; color: #5b21b6; }
.bmp-badge-confirmed   { background: #d1fae5; color: #065f46; }
.bmp-badge-in_progress { background: #fef3c7; color: #92400e; }
.bmp-badge-finished    { background: #dbeafe; color: #1e40af; }
.bmp-badge-cancelled   { background: #fee2e2; color: #991b1b; }
.bmp-badge-no_show     { background: #f3f4f6; color: #374151; }
.bmp-badge-paid        { background: #d1fae5; color: #065f46; }
.bmp-badge-pending     { background: #fef3c7; color: #92400e; }
.bmp-badge-green  { background: #d1fae5; color: #065f46; }
.bmp-badge-red    { background: #fee2e2; color: #991b1b; }
.bmp-badge-blue   { background: #dbeafe; color: #1e40af; }
.bmp-badge-purple { background: #ede9fe; color: #5b21b6; }

/* ─── MODALS ─────────────────────────────────────────────── */
.bmp-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
  z-index: 1000; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.bmp-overlay.open { opacity: 1; pointer-events: all; }

.bmp-modal {
  background: var(--bmp-surface); border-radius: var(--bmp-radius-lg);
  box-shadow: var(--bmp-shadow-lg); width: 100%; max-width: 580px;
  max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(20px) scale(.97);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.bmp-overlay.open .bmp-modal { transform: translateY(0) scale(1); }
.bmp-modal-lg { max-width: 800px; }
.bmp-modal-xl { max-width: 1000px; }

.bmp-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--bmp-border); flex-shrink: 0;
}
.bmp-modal-title { font-size: 17px; font-weight: 800; color: var(--bmp-text); }
.bmp-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  color: var(--bmp-text-3); display: flex; align-items: center; justify-content: center;
  transition: all var(--bmp-transition);
}
.bmp-modal-close:hover { background: var(--bmp-surface-2); color: var(--bmp-text); }
.bmp-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.bmp-modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--bmp-border);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  flex-shrink: 0; background: var(--bmp-surface-2);
}

/* ─── SEARCH & FILTERS ───────────────────────────────────── */
.bmp-filters {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.bmp-search-input {
  flex: 1; min-width: 200px; max-width: 320px;
  padding: 9px 14px 9px 38px;
  background: var(--bmp-surface); border: 1.5px solid var(--bmp-border-2);
  border-radius: var(--bmp-radius-xl); font-size: 13px; color: var(--bmp-text);
  outline: none; transition: all var(--bmp-transition);
}
.bmp-search-input:focus { border-color: var(--bmp-primary); box-shadow: 0 0 0 3px var(--bmp-primary-light); }
.bmp-filter-wrap { position: relative; }
.bmp-filter-wrap .bmp-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bmp-text-3); pointer-events: none; }

/* ─── PAGINATION ─────────────────────────────────────────── */
.bmp-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-top: 1px solid var(--bmp-border);
  font-size: 13px; color: var(--bmp-text-3);
}
.bmp-pagination-pages { display: flex; gap: 4px; }
.bmp-page-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--bmp-radius-sm); border: 1px solid var(--bmp-border-2);
  background: var(--bmp-surface); cursor: pointer; font-size: 13px; color: var(--bmp-text);
  transition: all var(--bmp-transition);
}
.bmp-page-btn:hover:not(:disabled) { border-color: var(--bmp-primary); color: var(--bmp-primary); }
.bmp-page-btn.active { background: var(--bmp-primary); color: #fff; border-color: var(--bmp-primary); }
.bmp-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ─── AVATAR / PHOTO ─────────────────────────────────────── */
.bmp-avatar {
  border-radius: 50%; object-fit: cover;
  background: var(--bmp-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--bmp-primary);
  flex-shrink: 0;
}
.bmp-avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.bmp-avatar-md { width: 44px; height: 44px; font-size: 16px; }
.bmp-avatar-lg { width: 72px; height: 72px; font-size: 24px; }

/* ─── TABS ───────────────────────────────────────────────── */
.bmp-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--bmp-border); margin-bottom: 24px; overflow-x: auto; }
.bmp-tab {
  padding: 10px 20px; font-size: 13.5px; font-weight: 600; color: var(--bmp-text-3);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: all var(--bmp-transition);
}
.bmp-tab:hover { color: var(--bmp-primary); }
.bmp-tab.active { color: var(--bmp-primary); border-bottom-color: var(--bmp-primary); }
.bmp-tab-panel { display: none; }
.bmp-tab-panel.active { display: block; }

/* ─── ALERTS / TOASTS ────────────────────────────────────── */
.bmp-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: var(--bmp-radius); border: 1px solid;
  font-size: 13.5px; margin-bottom: 16px;
}
.bmp-alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.bmp-alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.bmp-alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.bmp-alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

#bmp-toast-container {
  position: fixed; top: 80px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.bmp-toast {
  background: var(--bmp-surface); border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md); padding: 14px 18px;
  box-shadow: var(--bmp-shadow-lg);
  display: flex; align-items: flex-start; gap: 12px;
  animation: bmpToastIn .3s cubic-bezier(.34,1.56,.64,1);
  font-size: 13.5px;
}
.bmp-toast.success .bmp-toast-icon { color: var(--bmp-green); }
.bmp-toast.error   .bmp-toast-icon { color: var(--bmp-red); }
.bmp-toast.warning .bmp-toast-icon { color: var(--bmp-yellow); }
.bmp-toast-title { font-weight: 700; margin-bottom: 2px; }
.bmp-toast-msg   { color: var(--bmp-text-2); font-size: 12.5px; }
.bmp-toast-close { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--bmp-text-3); }

@keyframes bmpToastIn {
  from { opacity: 0; transform: translateX(20px) scale(.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.bmp-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 24px; text-align: center; color: var(--bmp-text-3);
}
.bmp-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .5; }
.bmp-empty-title { font-size: 16px; font-weight: 700; color: var(--bmp-text-2); margin-bottom: 6px; }
.bmp-empty-text  { font-size: 13px; max-width: 280px; }

/* ─── LOADER / SKELETON ──────────────────────────────────── */
.bmp-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; color: var(--bmp-text-3);
}
.bmp-spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--bmp-border);
  border-top-color: var(--bmp-primary);
  border-radius: 50%; animation: bmpSpin .7s linear infinite;
}
@keyframes bmpSpin { to { transform: rotate(360deg); } }
/* ===== Global page loader (top progress bar style) ===== */
#bmp-global-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9998;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
#bmp-global-loader.active {
  opacity: 1;
}
#bmp-global-loader::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--bmp-primary);
  border-radius: 0 3px 3px 0;
  animation: bmpProgress 1s ease-in-out infinite;
}
@keyframes bmpProgress {
  0%   { margin-left: -40%; }
  100% { margin-left: 100%; }
}


.bmp-skeleton {
  background: linear-gradient(90deg, var(--bmp-border) 25%, var(--bmp-surface-2) 50%, var(--bmp-border) 75%);
  background-size: 200% 100%;
  animation: bmpShimmer 1.3s infinite;
  border-radius: var(--bmp-radius-sm);
}
@keyframes bmpShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ─── COLOR SWATCH ───────────────────────────────────────── */
.bmp-color-input { display: flex; align-items: center; gap: 10px; }
.bmp-color-preview { width: 32px; height: 32px; border-radius: 6px; border: 2px solid var(--bmp-border); cursor: pointer; }
input[type="color"] { width: 0; height: 0; opacity: 0; position: absolute; }

/* ─── PHOTO UPLOAD ───────────────────────────────────────── */
.bmp-photo-upload {
  width: 100px; height: 100px; border-radius: 50%;
  border: 2px dashed var(--bmp-border-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: var(--bmp-text-3); font-size: 12px;
  transition: all var(--bmp-transition); overflow: hidden; position: relative;
}
.bmp-photo-upload:hover { border-color: var(--bmp-primary); color: var(--bmp-primary); }
.bmp-photo-upload img { width: 100%; height: 100%; object-fit: cover; }
.bmp-photo-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ─── DROPDOWN ───────────────────────────────────────────── */
.bmp-dropdown-wrap { position: relative; display: inline-block; }
.bmp-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--bmp-surface); border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md); box-shadow: var(--bmp-shadow-md);
  min-width: 180px; z-index: 300; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: all .18s ease;
}
.bmp-dropdown-wrap.open .bmp-dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.bmp-dropdown-item {
  padding: 10px 16px; font-size: 13.5px; cursor: pointer;
  display: flex; align-items: center; gap: 10px; color: var(--bmp-text);
  transition: background var(--bmp-transition);
}
.bmp-dropdown-item:hover { background: var(--bmp-surface-2); }
.bmp-dropdown-item.danger { color: var(--bmp-red); }
.bmp-dropdown-divider { height: 1px; background: var(--bmp-border); margin: 4px 0; }

/* ─── DASHBOARD GRID ─────────────────────────────────────── */
.bmp-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bmp-dashboard-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ─── APPOINTMENT LIST (today) ───────────────────────────── */
.bmp-appt-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--bmp-border);
}
.bmp-appt-row:last-child { border-bottom: none; }
.bmp-appt-time {
  font-size: 13px; font-weight: 700; color: var(--bmp-text); min-width: 52px; text-align: center;
  background: var(--bmp-primary-light); color: var(--bmp-primary);
  padding: 4px 8px; border-radius: 6px;
}
.bmp-appt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bmp-appt-info { flex: 1; min-width: 0; }
.bmp-appt-client { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmp-appt-service { font-size: 12px; color: var(--bmp-text-3); }
.bmp-appt-collab { font-size: 12px; color: var(--bmp-text-3); }

/* ─── BIRTHDAY CARD ──────────────────────────────────────── */
.bmp-birthday-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bmp-border); }
.bmp-birthday-item:last-child { border-bottom: none; }
.bmp-birthday-emoji { font-size: 18px; }

/* ─── CLIENT HISTORY ─────────────────────────────────────── */
.bmp-history-item { padding: 12px 0; border-bottom: 1px solid var(--bmp-border); display: flex; gap: 12px; }
.bmp-history-item:last-child { border-bottom: none; }
.bmp-history-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bmp-primary-light); color: var(--bmp-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ─── SALE BUILDER ───────────────────────────────────────── */
.bmp-sale-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bmp-sale-item-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; background: var(--bmp-surface-2); padding: 8px 12px; border-radius: var(--bmp-radius); }
.bmp-sale-total-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 2px solid var(--bmp-border); font-weight: 700; font-size: 15px; }

/* ─── COMMISSION SUMMARY ─────────────────────────────────── */
.bmp-commission-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--bmp-border); }
.bmp-commission-row:last-child { border-bottom: none; }

/* ─── REPORT CHARTS ──────────────────────────────────────── */
.bmp-chart-container { position: relative; padding: 8px 0; }
.bmp-chart-container canvas { max-height: 280px; }

/* ─── MARKETING CAMPAIGN ─────────────────────────────────── */
.bmp-campaign-card { padding: 16px; border: 1px solid var(--bmp-border); border-radius: var(--bmp-radius-md); margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; transition: box-shadow var(--bmp-transition); }
.bmp-campaign-card:hover { box-shadow: var(--bmp-shadow-md); }
.bmp-campaign-status-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }

/* ─── SETTINGS ───────────────────────────────────────────── */
.bmp-settings-section { margin-bottom: 36px; }
.bmp-settings-section-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.bmp-settings-section-desc { font-size: 13px; color: var(--bmp-text-3); margin-bottom: 18px; }
.bmp-setting-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--bmp-border); }
.bmp-setting-label { font-weight: 600; font-size: 14px; }
.bmp-setting-desc { font-size: 12px; color: var(--bmp-text-3); margin-top: 3px; }
.bmp-setting-control { flex-shrink: 0; min-width: 200px; }

/* Toggle switch */
.bmp-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.bmp-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.bmp-toggle-track { width: 42px; height: 24px; background: var(--bmp-border-2); border-radius: 12px; transition: background .2s; }
.bmp-toggle input:checked ~ .bmp-toggle-track { background: var(--bmp-primary); }
.bmp-toggle-thumb { position: absolute; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.bmp-toggle input:checked ~ .bmp-toggle-thumb { transform: translateX(18px); }

/* ─── LOGIN PAGE ─────────────────────────────────────────── */
.bmp-login-wrap {
  min-height: 100vh; display: flex;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}
.bmp-login-visual {
  flex: 1; display: none; padding: 48px;
  flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: rgba(255,255,255,.85);
}
@media(min-width:1024px) { .bmp-login-visual { display: flex; } }
.bmp-login-visual-title { font-size: 36px; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.bmp-login-visual-sub { font-size: 16px; opacity: .7; max-width: 360px; }

.bmp-login-panel {
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 40px; background: var(--bmp-surface);
  min-height: 100vh;
}
.bmp-login-logo { margin-bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; }
.bmp-login-logo img { height: 44px; object-fit: contain; }
.bmp-login-logo-name { font-size: 22px; font-weight: 900; color: var(--bmp-primary); margin-top: 10px; }
.bmp-login-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.bmp-login-sub { color: var(--bmp-text-3); margin-bottom: 30px; font-size: 14px; }
.bmp-login-footer { margin-top: 24px; font-size: 12px; color: var(--bmp-text-3); text-align: center; }

/* ─── ACCESS DENIED ──────────────────────────────────────── */
.bmp-access-denied { padding: 60px; text-align: center; color: var(--bmp-red); font-size: 16px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .bmp-dashboard-grid-3 { grid-template-columns: 1fr 1fr; }
}
/* Mobile overlay - hidden by default, toggled by JS */
.bmp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 98;   /* below sidebar (100) but above content */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ===== Sale item dynamic rows (generated by JS) ===== */
.bmp-sale-item {
  display: grid;
  grid-template-columns: 1fr 70px 110px auto;
  gap: 8px;
  align-items: center;
  background: var(--bmp-surface-2);
  padding: 8px 12px;
  border-radius: var(--bmp-radius);
}
.bmp-sale-total-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bmp-text);
}
.bmp-sale-total-label { color: var(--bmp-text-secondary); font-weight: 400; font-size: .9rem; }
.bmp-sale-total-value { color: var(--bmp-primary); font-size: 1.25rem; }
.bmp-form-row-end { justify-content: flex-end; align-items: center; }

/* ===== Slot grid for availability ===== */
.bmp-slots-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bmp-slot-btn {
  padding: 6px 12px;
  border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius);
  background: var(--bmp-surface);
  color: var(--bmp-text);
  cursor: pointer;
  font-size: .8125rem;
  transition: all .15s;
}
.bmp-slot-btn:hover, .bmp-slot-btn.selected {
  background: var(--bmp-primary);
  color: #fff;
  border-color: var(--bmp-primary);
}

/* ===== Status action buttons row ===== */
.bmp-status-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ===== Autocomplete dropdown ===== */
.bmp-autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bmp-surface);
  border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius);
  box-shadow: var(--bmp-shadow-lg);
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
}
.bmp-autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  border-bottom: 1px solid var(--bmp-border);
}
.bmp-autocomplete-item:last-child { border-bottom: none; }
.bmp-autocomplete-item:hover { background: var(--bmp-surface-2); }
.bmp-autocomplete-item small { color: var(--bmp-text-secondary); margin-left: auto; }

/* ===== Label row (label + button side by side) ===== */
.bmp-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

/* ===== Login alert ===== */
.bmp-login-alert {
  padding: 10px 14px;
  border-radius: var(--bmp-radius);
  border: 1px solid transparent;
  font-size: .875rem;
  margin-bottom: 1rem;
}

/* ===== Spin animation ===== */
.bmp-spin { animation: bmpSpin .8s linear infinite; display: inline-block; vertical-align: middle; }

/* ===== Login template specific ===== */
.bmp-login-page { margin: 0; padding: 0; min-height: 100vh; background: var(--bmp-bg); display: flex; }
.bmp-login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
  background: var(--bmp-bg);
}
.bmp-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bmp-surface);
  border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--bmp-shadow-lg);
}
.bmp-login-brand { text-align: center; margin-bottom: 2rem; }
.bmp-login-icon {
  width: 60px; height: 60px;
  background: var(--bmp-primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
}
.bmp-login-logo { max-height: 60px; object-fit: contain; margin-bottom: .75rem; }
.bmp-login-title { font-size: 1.5rem; font-weight: 800; color: var(--bmp-text); margin: 0 0 .25rem; }
.bmp-login-subtitle { font-size: .875rem; color: var(--bmp-text-secondary); margin: 0; }
.bmp-login-form { display: flex; flex-direction: column; gap: 1rem; }
.bmp-login-row { display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; }
.bmp-login-footer { margin-top: 2rem; font-size: .75rem; color: var(--bmp-text-secondary); text-align: center; }
.bmp-btn-block { width: 100%; justify-content: center; }
.bmp-btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }

/* ============================================================
   TEMPLATE CLASS ALIASES
   Maps classes used in templates to the CSS design system
   ============================================================ */

/* Nav links (template uses bmp-nav-link, CSS had bmp-nav-item) */
.bmp-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: var(--bmp-radius);
  cursor: pointer;
  color: var(--bmp-sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--bmp-transition), color var(--bmp-transition);
  margin-bottom: 1px;
  user-select: none;
  letter-spacing: .1px;
}
.bmp-nav-link:hover {
  background: rgba(124,58,237,.09);
  color: var(--bmp-primary);
}
.bmp-nav-link.active {
  background: var(--bmp-primary);
  color: #fff;
  font-weight: 700;
}
.bmp-nav-link.active .bmp-nav-icon {
  opacity: 1;
  color: #fff;
}
.bmp-nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: inherit; }
.bmp-nav-label { font-size: 13px; font-weight: 600; }

/* Sidebar toggle button */
.bmp-sidebar-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bmp-sidebar-text);
  padding: 6px;
  border-radius: var(--bmp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--bmp-transition);
  width: 32px;
  height: 32px;
}
.bmp-sidebar-toggle-btn:hover { background: var(--bmp-sidebar-active-bg); color: var(--bmp-sidebar-active); }

/* .bmp-wrap layout */
.bmp-wrap {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh; /* dynamic viewport height for mobile browsers */
  width: 100%;
  background: var(--bmp-bg);
  position: relative;
  overflow-x: hidden;
}
.bmp-wrap *, .bmp-wrap *::before, .bmp-wrap *::after {
  box-sizing: border-box;
}
.bmp-wrap button, .bmp-wrap input, .bmp-wrap select, .bmp-wrap textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}

/* Main content offset from sidebar */
.bmp-main {
  flex: 1;
  margin-left: var(--bmp-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--bmp-transition);
  min-width: 0;
}
.sidebar-collapsed .bmp-main { margin-left: var(--bmp-sidebar-collapsed); }

/* Topbar right section */
.bmp-topbar-left  { display: flex; align-items: center; gap: 12px; flex: 1; }
.bmp-topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* User menu */
.bmp-user-menu    { position: relative; }
.bmp-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  padding: 6px 10px; border-radius: var(--bmp-radius);
  color: var(--bmp-text); font-size: 14px;
  transition: background var(--bmp-transition);
}
.bmp-user-btn:hover { background: var(--bmp-surface-2); }
.bmp-user-name { font-weight: 600; font-size: 13px; }
.bmp-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bmp-surface);
  border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md);
  box-shadow: var(--bmp-shadow-lg);
  padding: 8px;
  z-index: 200;
  display: none;
}
.bmp-user-dropdown.open { display: block; }
.bmp-user-info {
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--bmp-border);
  margin-bottom: 6px;
}
.bmp-user-info strong { display: block; font-size: 13px; color: var(--bmp-text); }
.bmp-user-info small  { font-size: 11px; color: var(--bmp-text-secondary); }
.bmp-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px;
  background: none; border: none; cursor: pointer;
  border-radius: var(--bmp-radius-sm);
  color: var(--bmp-text); font-size: 13px; text-align: left;
  transition: background var(--bmp-transition);
}
.bmp-dropdown-item:hover { background: var(--bmp-surface-2); }
.bmp-dropdown-item.bmp-text-danger, .bmp-text-danger { color: var(--bmp-red) !important; }

/* Module panels */
.bmp-module-panel { display: none; padding: 28px 32px; }
.bmp-module-panel.active { display: block; }

/* Page header */
.bmp-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.bmp-page-title { font-size: 22px; font-weight: 800; color: var(--bmp-text); }
.bmp-page-subtitle { font-size: 13px; color: var(--bmp-text-secondary); margin-top: 2px; }
.bmp-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Stat icon colors */
.bmp-stat-icon-blue   { background: #dbeafe; color: var(--bmp-blue); }
.bmp-stat-icon-green  { background: #d1fae5; color: var(--bmp-green); }
.bmp-stat-icon-purple { background: #ede9fe; color: var(--bmp-primary); }
.bmp-stat-icon-pink   { background: #fce7f3; color: var(--bmp-accent); }
.bmp-stat-icon-yellow { background: #fef3c7; color: var(--bmp-yellow); }

/* Stats grid */
.bmp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.bmp-stats-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Stat card */
.bmp-stat-card {
  background: var(--bmp-surface);
  border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--bmp-shadow-sm);
}
.bmp-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--bmp-radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bmp-stat-content { flex: 1; min-width: 0; }
.bmp-stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--bmp-text-secondary); display: block; margin-bottom: 4px; }
.bmp-stat-value { font-size: 24px; font-weight: 800; color: var(--bmp-text); line-height: 1; }

/* Card */
.bmp-card {
  background: var(--bmp-surface);
  border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md);
  box-shadow: var(--bmp-shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.bmp-card-compact { padding: 0; }
.bmp-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bmp-border);
  gap: 12px;
}
.bmp-card-title { font-size: 15px; font-weight: 700; color: var(--bmp-text); }
.bmp-card-body { padding: 20px; }
.bmp-p0 { padding: 0 !important; }

/* Table */
.bmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bmp-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--bmp-text-secondary); border-bottom: 2px solid var(--bmp-border); background: var(--bmp-surface-2); }
.bmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--bmp-border); color: var(--bmp-text); vertical-align: middle; }
.bmp-table tr:last-child td { border-bottom: none; }
.bmp-table tr:hover td { background: var(--bmp-surface-2); }
.bmp-td-empty { text-align: center; color: var(--bmp-text-secondary); padding: 40px !important; font-size: 13px; }
.bmp-table-sm td, .bmp-table-sm th { padding: 8px 12px; }

/* Table actions */
.bmp-table-actions { display: flex; align-items: center; gap: 4px; }

/* Form */
.bmp-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.bmp-form-row > .bmp-field { flex: 1; min-width: 160px; }
.bmp-field { margin-bottom: 14px; }
.bmp-label { display: block; font-size: 12px; font-weight: 600; color: var(--bmp-text-secondary); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .3px; }
.bmp-input, .bmp-select, .bmp-textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--bmp-border);
  border-radius: var(--bmp-radius);
  background: var(--bmp-surface);
  color: var(--bmp-text);
  transition: border-color var(--bmp-transition), box-shadow var(--bmp-transition);
  outline: none;
  font-size: 14px;
}
.bmp-input:focus, .bmp-select:focus, .bmp-textarea:focus {
  border-color: var(--bmp-primary);
  box-shadow: 0 0 0 3px var(--bmp-primary-light);
}
.bmp-textarea { min-height: 80px; resize: vertical; }
.bmp-field-hint { font-size: 11px; color: var(--bmp-text-secondary); margin-top: 4px; display: block; }

/* Buttons */
.bmp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--bmp-radius);
  font-size: 13.5px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all var(--bmp-transition);
  white-space: nowrap; text-decoration: none;
}
.bmp-btn-primary { background: var(--bmp-primary); color: #fff; }
.bmp-btn-primary:hover { background: var(--bmp-primary-dark); }
.bmp-btn-ghost { background: transparent; color: var(--bmp-text); border: 1.5px solid var(--bmp-border); }
.bmp-btn-ghost:hover { background: var(--bmp-surface-2); }
.bmp-btn-danger { background: var(--bmp-red); color: #fff; }
.bmp-btn-danger:hover { background: #dc2626; }
.bmp-btn-success { background: var(--bmp-green); color: #fff; }
.bmp-btn-success:hover { background: #059669; }
.bmp-btn-warning { background: var(--bmp-yellow); color: #fff; }
.bmp-btn-sm { padding: 5px 10px; font-size: 12px; }
.bmp-btn-lg { padding: 11px 22px; font-size: 15px; }
.bmp-btn-block { width: 100%; justify-content: center; }
.bmp-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Icon button */
.bmp-icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--bmp-text-secondary); padding: 5px;
  border-radius: var(--bmp-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--bmp-transition);
}
.bmp-icon-btn:hover { background: var(--bmp-surface-2); color: var(--bmp-primary); }
.bmp-icon-btn-danger:hover { color: var(--bmp-red); }

/* Tabs */
.bmp-tabs-wrap { margin-bottom: 0; }
.bmp-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--bmp-border); padding-bottom: 0; margin-bottom: 20px; flex-wrap: wrap; }
.bmp-tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 10px 16px; font-size: 13.5px; font-weight: 600;
  color: var(--bmp-text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--bmp-transition);
  border-radius: var(--bmp-radius-sm) var(--bmp-radius-sm) 0 0;
}
.bmp-tab-btn:hover { color: var(--bmp-primary); background: var(--bmp-primary-light); }
.bmp-tab-btn.active { color: var(--bmp-primary); border-bottom-color: var(--bmp-primary); }
.bmp-tab-panel { display: none; }
.bmp-tab-panel.active { display: block; }

/* Modal */
.bmp-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  z-index: 1000; align-items: center; justify-content: center;
  padding: 20px;
}
.bmp-modal.active { display: flex; }
.bmp-modal-box {
  background: var(--bmp-surface);
  border-radius: var(--bmp-radius-lg);
  box-shadow: var(--bmp-shadow-lg);
  width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
}
.bmp-modal-lg { max-width: 760px; }
.bmp-modal-sm { max-width: 400px; }
.bmp-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--bmp-border);
  position: sticky; top: 0; background: var(--bmp-surface); z-index: 1;
}
.bmp-modal-title { font-size: 16px; font-weight: 700; color: var(--bmp-text); }
.bmp-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--bmp-text-secondary);
  padding: 2px 6px; border-radius: 4px;
  transition: all var(--bmp-transition);
}
.bmp-modal-close:hover { background: var(--bmp-surface-2); color: var(--bmp-text); }
.bmp-modal-body { padding: 22px; }
.bmp-modal-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 16px 22px;
  border-top: 1px solid var(--bmp-border);
}

/* Badge */
.bmp-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}
.bmp-badge-primary, .bmp-badge-info    { background: var(--bmp-primary-light); color: var(--bmp-primary); }
.bmp-badge-success                     { background: #d1fae5; color: #065f46; }
.bmp-badge-warning                     { background: #fef3c7; color: #92400e; }
.bmp-badge-danger                      { background: #fee2e2; color: #991b1b; }
.bmp-badge-secondary                   { background: var(--bmp-surface-2); color: var(--bmp-text-secondary); }

/* Filters row */
.bmp-filters-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Empty state */
.bmp-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; color: var(--bmp-text-secondary); gap: 12px; }
.bmp-empty-state svg { opacity: .3; }
.bmp-empty-state p { font-size: 14px; }

/* Misc */
.bmp-count { font-size: 13px; font-weight: 500; color: var(--bmp-text-secondary); margin-left: 6px; }
.bmp-desktop-only { display: inline; }
.bmp-mobile-only { display: none; }
.bmp-text-muted { color: var(--bmp-text-secondary) !important; }
.bmp-required { color: var(--bmp-red); }
.bmp-chart-wrap { height: 280px; position: relative; }
.bmp-chart-wrap-doughnut { height: 240px; }
.bmp-form-actions { padding-top: 16px; border-top: 1px solid var(--bmp-border); margin-top: 8px; }
.bmp-row { display: flex; gap: 20px; }
.bmp-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bmp-color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.bmp-color-input { height: 38px; padding: 3px; border: 1.5px solid var(--bmp-border); border-radius: var(--bmp-radius); cursor: pointer; background: var(--bmp-surface); }
.bmp-avatar-placeholder { width: 36px; height: 36px; border-radius: 50%; background: var(--bmp-primary-light); color: var(--bmp-primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.bmp-avatar-initials { border-radius: 50%; background: var(--bmp-primary); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.bmp-avatar-sm.bmp-avatar-initials { width: 32px; height: 32px; font-size: 13px; }
.bmp-search-wrap { position: relative; flex: 1; max-width: 340px; }
.bmp-search-input { width: 100%; padding: 8px 12px 8px 36px; border: 1.5px solid var(--bmp-border); border-radius: var(--bmp-radius); background: var(--bmp-surface-2); color: var(--bmp-text); font-size: 13.5px; outline: none; transition: border-color var(--bmp-transition); }
.bmp-search-input:focus { border-color: var(--bmp-primary); background: var(--bmp-surface); }
.bmp-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--bmp-text-secondary); pointer-events: none; }
.bmp-search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bmp-surface); border: 1px solid var(--bmp-border); border-radius: var(--bmp-radius-md); box-shadow: var(--bmp-shadow-lg); z-index: 300; max-height: 300px; overflow-y: auto; }
.bmp-search-empty { padding: 16px; text-align: center; color: var(--bmp-text-secondary); font-size: 13px; }
.bmp-search-group-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--bmp-text-secondary); padding: 10px 14px 4px; }
.bmp-search-item { display: flex; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer; font-size: 13px; color: var(--bmp-text); text-decoration: none; }
.bmp-search-item:hover { background: var(--bmp-surface-2); }
.bmp-search-item small { color: var(--bmp-text-secondary); margin-left: auto; }
.bmp-search-item-icon { color: var(--bmp-text-secondary); }
.bmp-checkbox-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.bmp-radio-group { display: flex; gap: 16px; }
.bmp-radio-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.bmp-hours-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--bmp-border); }
.bmp-hours-row:last-child { border-bottom: none; }
.bmp-logo-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bmp-input-group { position: relative; display: flex; align-items: center; }
.bmp-input-group .bmp-input { padding-right: 40px; }
.bmp-password-toggle { position: absolute; right: 10px; background: none; border: none; cursor: pointer; color: var(--bmp-text-secondary); padding: 4px; display: flex; align-items: center; }
.bmp-password-toggle:hover { color: var(--bmp-primary); }
.bmp-link { color: var(--bmp-primary); text-decoration: none; font-size: 13px; }
.bmp-link:hover { text-decoration: underline; }
.bmp-filter-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--bmp-sidebar-text); margin-bottom: 10px; padding: 0 4px; }
.bmp-search-field { flex: 1; max-width: 280px; }
.bmp-search-field .bmp-input { padding: 8px 12px; }

/* ===== RESPONSIVE — single clean block ===== */
@media (max-width: 900px) {
  /* Hide sidebar off-screen by default on mobile */
  .bmp-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  /* Show sidebar when JS adds this class to .bmp-wrap */
  .sidebar-mobile-open .bmp-sidebar {
    transform: translateX(0);
  }
  /* Show overlay only when sidebar is open */
  .sidebar-mobile-open .bmp-sidebar-overlay {
    display: block;
  }
  /* Content takes full width (no sidebar margin) */
  .bmp-main {
    margin-left: 0 !important;
  }
  .bmp-mobile-only { display: flex; }
  .bmp-desktop-only { display: none; }
  .bmp-module-panel { padding: 16px; }
  .bmp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bmp-topbar { padding: 10px 14px; }
  .bmp-page-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .bmp-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bmp-form-row { flex-direction: column; }
  .bmp-row-2 { grid-template-columns: 1fr; }
  .bmp-module-panel { padding: 12px; }
  .bmp-card-body { padding: 14px; }
  .bmp-modal-box { margin: 0; border-radius: var(--bmp-radius-md) var(--bmp-radius-md) 0 0; max-height: 95vh; }
  .bmp-modal { align-items: flex-end; }
}

/* Toast container */
#bmp-toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.bmp-toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--bmp-radius-md); box-shadow: var(--bmp-shadow-lg); min-width: 280px; max-width: 380px; font-size: 13.5px; color: var(--bmp-text); background: var(--bmp-surface); border: 1px solid var(--bmp-border); opacity: 0; transform: translateX(20px); transition: all .25s; }
.bmp-toast.show { opacity: 1; transform: translateX(0); }
.bmp-toast-success { border-left: 4px solid var(--bmp-green); }
.bmp-toast-error   { border-left: 4px solid var(--bmp-red); }
.bmp-toast-warning { border-left: 4px solid var(--bmp-yellow); }
.bmp-toast-info    { border-left: 4px solid var(--bmp-blue); }
.bmp-toast-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 18px; color: var(--bmp-text-secondary); padding: 0 4px; line-height: 1; }
.bmp-toast-icon { flex-shrink: 0; }

/* Pagination */
.bmp-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 16px; }
.bmp-page-btn { background: none; border: 1px solid var(--bmp-border); border-radius: var(--bmp-radius-sm); padding: 5px 10px; cursor: pointer; color: var(--bmp-text); font-size: 13px; transition: all var(--bmp-transition); }
.bmp-page-btn:hover:not(:disabled) { background: var(--bmp-primary-light); border-color: var(--bmp-primary); color: var(--bmp-primary); }
.bmp-page-btn.active { background: var(--bmp-primary); color: #fff; border-color: var(--bmp-primary); }
.bmp-page-btn:disabled { opacity: .4; cursor: not-allowed; }


/* ===== Settings — Páginas tab ===== */
.bmp-pages-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.bmp-pages-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bmp-pages-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bmp-text);
}
.bmp-shortcode-hint {
  display: inline-block;
  background: var(--bmp-surface-2);
  border: 1px solid var(--bmp-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  color: var(--bmp-primary);
  font-weight: 600;
  letter-spacing: .2px;
  width: fit-content;
}
.bmp-pages-desc {
  font-size: 12px;
  color: var(--bmp-text-secondary);
  line-height: 1.5;
}
.bmp-pages-divider {
  border: none;
  border-top: 1px solid var(--bmp-border);
  margin: 0;
}
.bmp-pages-url-preview {
  display: block;
  font-size: 11px;
  color: var(--bmp-text-secondary);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-height: 14px;
}
.bmp-pages-url-preview:not(:empty)::before {
  content: '🔗 ';
}
.bmp-pages-select.configured {
  border-color: var(--bmp-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 36px center;
}
.bmp-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--bmp-radius);
  font-size: 13px;
  border: 1px solid transparent;
}
.bmp-alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.bmp-alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.bmp-alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.bmp-alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ===== Settings — Sidebar color picker ===== */
.bmp-color-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bmp-color-field .bmp-color-input {
  width: 40px;
  height: 36px;
  padding: 2px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: var(--bmp-radius-sm);
}
.bmp-color-field .bmp-color-hex {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: .5px;
  max-width: 100px;
  padding: 8px 10px;
}

/* Sidebar preview widget */
.bmp-sidebar-color-preview {
  background: var(--bmp-surface-2);
  border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bmp-scprev-sidebar {
  width: 180px;
  border-radius: var(--bmp-radius);
  overflow: hidden;
  border: 1px solid var(--bmp-border);
  box-shadow: var(--bmp-shadow-sm);
}
.bmp-scprev-header {
  height: 36px;
  background: inherit;
  border-bottom: 1px solid;
  border-bottom-color: inherit;
}
.bmp-scprev-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: default;
}
.bmp-scprev-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: currentColor;
  opacity: .5;
  flex-shrink: 0;
}
.bmp-scprev-text {
  font-size: 12px;
  font-weight: 600;
}
.bmp-scprev-label {
  font-size: 11px;
  color: var(--bmp-text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

/* ===== Settings — Sidebar color themes grid ===== */
.bmp-sidebar-themes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 900px) {
  .bmp-sidebar-themes-grid { grid-template-columns: 1fr; }
}
.bmp-sidebar-theme-col {
  padding: 20px;
  border-right: 1px solid var(--bmp-border);
}
.bmp-sidebar-theme-col:last-child { border-right: none; }
.bmp-sidebar-theme-dark {
  background: #1a1828;
  border-radius: 0 0 var(--bmp-radius-md) 0;
}
@media (max-width: 900px) {
  .bmp-sidebar-theme-dark { border-radius: 0 0 var(--bmp-radius-md) var(--bmp-radius-md); }
}

.bmp-sidebar-theme-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--bmp-text-secondary);
  margin-bottom: 14px;
}
.bmp-sidebar-theme-dark .bmp-sidebar-theme-header { color: #7e7a9a; }

/* Mini sidebar preview */
.bmp-sidebar-preview {
  background: #f3f1ff;
  border: 1px solid #e2dff5;
  border-radius: var(--bmp-radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.bmp-sidebar-preview-dark { background: #1a1828; border-color: #2e2b45; }
.bmp-sprev-bar { padding: 8px 6px; }
.bmp-sprev-logo {
  height: 28px;
  background: rgba(124,58,237,.15);
  border-radius: 4px;
  margin-bottom: 8px;
}
.bmp-sidebar-preview-dark .bmp-sprev-logo { background: rgba(124,58,237,.25); }
.bmp-sprev-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #5a5880;
  margin-bottom: 2px;
}
.bmp-sidebar-preview-dark .bmp-sprev-item { color: #7e7a9a; }
.bmp-sprev-item-muted { opacity: .5; }
.bmp-sprev-active { background: #7c3aed; color: #fff !important; }
.bmp-sprev-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: currentColor;
  opacity: .6;
  flex-shrink: 0;
}
.bmp-sprev-active .bmp-sprev-dot { opacity: 1; background: rgba(255,255,255,.7); }

/* Color field rows */
.bmp-sidebar-color-list { display: flex; flex-direction: column; gap: 10px; }
.bmp-scfield { display: flex; flex-direction: column; gap: 5px; }
.bmp-scfield-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--bmp-text-secondary);
}
.bmp-sidebar-theme-dark .bmp-scfield-label { color: #7e7a9a; }
.bmp-scfield-input { display: flex; align-items: center; gap: 8px; }

/* Color swatch — native input hidden behind a styled square */
.bmp-color-swatch-wrap {
  position: relative;
  width: 36px; height: 36px;
  border-radius: var(--bmp-radius-sm);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,.12);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: box-shadow var(--bmp-transition);
}
.bmp-color-swatch-wrap:hover { box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.bmp-swatch-input {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}
.bmp-color-swatch {
  display: block;
  width: 100%; height: 100%;
  pointer-events: none;
}
.bmp-scfield-input .bmp-input {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: .5px;
  padding: 7px 10px;
  max-width: 96px;
  text-transform: uppercase;
}
.bmp-sidebar-theme-dark .bmp-scfield-input .bmp-input {
  background: #231f34;
  border-color: #3d3960;
  color: #f1f0ff;
}
