/* =========================================================================
   listmonk-modern — a "Brevo-like" reskin of Listmonk's stock Bulma/Buefy UI.
   Injected on top of /public/static/style.css by the nginx proxy — never
   touches Listmonk's own files, so it survives upgrades untouched.
   ========================================================================= */

:root {
  --lm-bg: #fafbfc;
  --lm-surface: #ffffff;
  --lm-border: #e8eaef;
  --lm-text: #23262f;
  --lm-text-muted: #7b8091;
  --lm-accent: #0ea5a3;
  --lm-accent-dark: #0b8785;
  --lm-accent-soft: #eafbf9;
  --lm-sidebar-bg: #ffffff;
  --lm-sidebar-text: #565b6b;
  --lm-sidebar-text-active: #0b8785;
  --lm-radius: 12px;
  --lm-radius-sm: 8px;
  --lm-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 6px rgba(16, 24, 40, 0.05);
  --lm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

html, body {
  background: var(--lm-bg) !important;
  color: var(--lm-text);
  font-family: var(--lm-font) !important;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top navbar ---------- */
.navbar,
.navbar.is-fixed-top {
  background: var(--lm-surface) !important;
  border-bottom: 1px solid var(--lm-border);
  box-shadow: none !important;
}
.navbar .logo img { height: 26px; }
.navbar-item, .navbar-link { color: var(--lm-text) !important; }

/* ---------- Sidebar ---------- */
.wrapper .sidebar,
.b-sidebar,
.b-sidebar .sidebar-content {
  background: var(--lm-sidebar-bg) !important;
  border-right: 1px solid var(--lm-border) !important;
}
.sidebar .menu-label {
  color: #9aa0b0 !important;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.9rem 0.9rem 0.3rem;
}
.sidebar .menu-list a {
  color: var(--lm-sidebar-text) !important;
  border-radius: var(--lm-radius-sm);
  padding: 0.55rem 0.75rem;
  margin: 1px 0.5rem;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}
.sidebar .menu-list a:hover {
  background: #f2f4f7 !important;
  color: var(--lm-text) !important;
}
.sidebar .menu-list a.is-active,
.sidebar .menu-list a.router-link-exact-active {
  background: var(--lm-accent-soft) !important;
  color: var(--lm-sidebar-text-active) !important;
  font-weight: 600;
}
.sidebar .menu-list li ul {
  margin: 0 0 0 0.6rem;
  border-left: 1px solid var(--lm-border);
  padding-left: 0.4rem;
}

/* ---------- Main content area ---------- */
.wrapper .main {
  padding: 1.75rem 2rem;
}

/* ---------- Cards / boxes / panels ---------- */
.box,
.card,
.modal-card,
.panel {
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius) !important;
  box-shadow: var(--lm-shadow) !important;
}
.modal-card-head, .modal-card-foot {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
}

/* ---------- Buttons ---------- */
.button {
  border-radius: var(--lm-radius-sm) !important;
  font-weight: 600;
  border-color: var(--lm-border);
  transition: transform 0.05s ease, box-shadow 0.12s ease;
}
.button.is-primary {
  background: var(--lm-accent) !important;
  border-color: var(--lm-accent) !important;
}
.button.is-primary:hover { background: var(--lm-accent-dark) !important; }
.button:active { transform: translateY(1px); }

/* ---------- Forms ---------- */
.input, .textarea, .select select, .taginput .taginput-container {
  border-radius: var(--lm-radius-sm) !important;
  border-color: var(--lm-border) !important;
  box-shadow: none !important;
}
.input:focus, .textarea:focus, .select select:focus,
.taginput .taginput-container.is-focused {
  border-color: var(--lm-accent) !important;
  box-shadow: 0 0 0 3px var(--lm-accent-soft) !important;
}
label.label { font-weight: 600; color: var(--lm-text); }

/* ---------- Tables ---------- */
.table {
  background: transparent;
}
.table thead th {
  border-width: 0 0 1px 0;
  border-color: var(--lm-border);
  color: var(--lm-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.table td {
  border-color: var(--lm-border);
  vertical-align: middle;
}
.table.is-hoverable tbody tr:hover { background: var(--lm-accent-soft); }

/* ---------- Tags / pills ---------- */
.tag {
  border-radius: 999px !important;
  font-weight: 600;
}

/* ---------- Tabs ---------- */
.tabs a {
  border-bottom-width: 2px;
  color: var(--lm-text-muted);
  font-weight: 600;
}
.tabs li.is-active a {
  color: var(--lm-accent) !important;
  border-bottom-color: var(--lm-accent) !important;
}

/* ---------- Notifications / alerts ---------- */
.notification {
  border-radius: var(--lm-radius) !important;
  border: 1px solid transparent;
}

/* ---------- Pagination ---------- */
.pagination-link, .pagination-previous, .pagination-next {
  border-radius: var(--lm-radius-sm) !important;
}
.pagination-link.is-current {
  background: var(--lm-accent) !important;
  border-color: var(--lm-accent) !important;
}

/* ---------- Dashboard stat cards ---------- */
.dashboard .box {
  border-radius: var(--lm-radius) !important;
}

/* ---------- Scrollbar polish (WebKit) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d3d8e4; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
