:root {
  --urme-primary: #0d6efd;
  --urme-primary-dark: #0a58ca;
  --urme-sidebar: #0b1220;
  --urme-sidebar-2: #111c33;
  --urme-sidebar-text: #9fb0c9;
  --urme-accent: #16c79a;
  --urme-radius: 14px;
  --urme-shadow: 0 8px 30px rgba(15, 35, 70, .08);
  --urme-border: #e6ebf2;
}

[data-bs-theme="dark"] {
  --urme-sidebar: #070b14;
  --urme-sidebar-2: #0d1526;
  --urme-border: #223047;
  --urme-shadow: 0 10px 34px rgba(0, 0, 0, .45);
}

* { scrollbar-width: thin; }
body {
  background: #f4f7fb;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans Bengali", sans-serif;
  color: #1e293b;
  font-size: .925rem;
}
[data-bs-theme="dark"] body { background: #0d1220; color: #dbe4f0; }

h1, h2, h3, h4, h5, .fw-semibold { letter-spacing: -.015em; }

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 1040;
  background:
    radial-gradient(900px 480px at -20% -10%, rgba(30, 64, 175, .30), transparent 60%),
    radial-gradient(600px 420px at 120% 110%, rgba(22, 199, 154, .10), transparent 55%),
    linear-gradient(180deg, var(--urme-sidebar) 0%, var(--urme-sidebar-2) 100%);
  color: var(--urme-sidebar-text);
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(148, 163, 184, .10);
  box-shadow: 14px 0 40px rgba(2, 6, 23, .16);
}
.sidebar-brand {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.2rem 1.1rem 1.05rem;
  color: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
}
.brand-link {
  display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0;
  color: inherit; text-decoration: none; border-radius: 12px;
  transition: opacity .15s ease;
}
.brand-link:hover { color: inherit; opacity: .88; }
.brand-link:focus-visible { outline: 2px solid rgba(94, 156, 255, .65); outline-offset: 3px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, #0d6efd, #16c79a);
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  color: #fff; box-shadow: 0 8px 20px rgba(13, 110, 253, .45);
  flex-shrink: 0;
}
.brand-mark.has-logo { background: #fff; padding: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.brand-mark.has-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.brand-preview {
  min-height: 84px; border: 1px dashed var(--urme-border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 12px;
  background: #f8fafc;
}
.brand-preview img { max-height: 64px; max-width: 100%; object-fit: contain; }
.brand-preview.square img { max-height: 56px; max-width: 56px; }
[data-bs-theme="dark"] .brand-preview { background: #111a2b; }
.auth-brand-logo { max-height: 60px; max-width: 250px; object-fit: contain; }
.auth-hero .brand-link { gap: .9rem; }
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.auth-brand-text strong { font-size: 1.1rem; letter-spacing: .13em; font-weight: 800; color: #f1f5f9; text-transform: uppercase; }
.auth-brand-text span { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: #7f93b3; font-weight: 600; margin-top: .15rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong {
  font-size: .88rem; letter-spacing: .055em; color: #f1f5f9;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.brand-text span { font-size: .62rem; letter-spacing: .16em; color: #7f93b3; text-transform: uppercase; font-weight: 600; margin-top: .18rem; }
.sidebar-close { margin-left: auto; color: #8fa3c2; }
.sidebar-nav {
  flex: 1; overflow-y: auto; padding: .45rem .6rem .9rem;
  scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .22) transparent;
  overscroll-behavior: contain;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .15); border-radius: 99px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, .3); }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.nav-section {
  display: flex; align-items: center; gap: .55rem;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .16em;
  color: #647a9c; padding: 1.05rem .65rem .4rem; font-weight: 700;
}
.nav-section::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, .22), transparent);
}
.sidebar .nav-link {
  display: flex; align-items: center; gap: .68rem; position: relative;
  color: var(--urme-sidebar-text); padding: .42rem .58rem; border-radius: 10px;
  font-weight: 500; margin-bottom: 2px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.sidebar .nav-link i {
  font-size: .95rem; width: 30px; height: 30px; flex-shrink: 0;
  display: inline-grid; place-items: center; border-radius: 8px;
  background: rgba(148, 163, 184, .09);
  transition: background .15s ease, color .15s ease;
}
.sidebar .nav-link:hover { background: rgba(148, 163, 184, .08); color: #fff; }
.sidebar .nav-link:hover i { background: rgba(96, 165, 250, .18); color: #cfe0ff; }
.sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(13, 110, 253, .24), rgba(22, 199, 154, .10));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .28), 0 6px 16px rgba(2, 6, 23, .22);
}
.sidebar .nav-link.active::before {
  content: ""; position: absolute; left: -.6rem; top: 18%; bottom: 18%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #60a5fa, #16c79a);
  box-shadow: 0 0 10px rgba(96, 165, 250, .55);
}
.sidebar .nav-link.active i { background: rgba(96, 165, 250, .30); color: #fff; }
.sidebar .nav-link:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(96, 165, 250, .55); }
.sidebar .nav-link .badge { margin-left: auto; }
.sidebar-foot {
  display: flex; align-items: center; gap: .55rem;
  padding: .8rem 1.05rem; border-top: 1px solid rgba(148, 163, 184, .10);
  background: linear-gradient(0deg, rgba(2, 6, 23, .4), transparent);
  color: #7187a8; font-size: .72rem;
  white-space: nowrap; overflow: hidden;
}
.sidebar-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: #16c79a; box-shadow: 0 0 8px rgba(22, 199, 154, .8); flex-shrink: 0; }
.tiny { font-size: .7rem; opacity: .75; }

.app-main { margin-left: 272px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1020;
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--urme-border);
  padding: .65rem 1.4rem;
}
[data-bs-theme="dark"] .topbar { background: rgba(13, 18, 32, .9); }
.topbar-title h1 { font-size: 1.12rem; margin: 0; font-weight: 650; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.topbar-search {
  position: relative; align-items: center; margin-right: .5rem;
}
.topbar-search i { position: absolute; left: .7rem; color: #94a3b8; pointer-events: none; }
.topbar-search input {
  width: 260px; border: 1px solid var(--urme-border); border-radius: 9px;
  padding: .42rem .8rem .42rem 2.1rem; font-size: .85rem; background: transparent;
  color: inherit; outline: none;
}
.topbar-search input:focus { border-color: var(--urme-primary); box-shadow: 0 0 0 3px rgba(13, 110, 253, .12); }
.btn-icon {
  width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center;
  color: #64748b; border: 1px solid transparent; background: transparent;
}
.btn-icon:hover { background: rgba(13, 110, 253, .08); color: var(--urme-primary); }
[data-bs-theme="dark"] .btn-icon { color: #9fb0c9; }
.notif-dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px;
  background: #ef4444; border-radius: 50%; box-shadow: 0 0 0 2px #fff;
}
[data-bs-theme="dark"] .notif-dot { box-shadow: 0 0 0 2px #0d1220; }
.notif-pulse { animation: notifPulse 1.5s ease; }
@keyframes notifPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  30% { transform: translate(-50%, -50%) scale(1.45); }
  60% { transform: translate(-50%, -50%) scale(.95); }
}
.user-chip {
  display: flex; align-items: center; gap: .6rem; border: 1px solid var(--urme-border);
  background: transparent; border-radius: 12px; padding: .3rem .55rem .3rem .3rem; color: inherit;
}
.user-chip strong { font-size: .8rem; line-height: 1.1; }
.user-chip small { font-size: .68rem; color: #94a3b8; }
.avatar {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0d6efd, #6ea8fe); color: #fff; font-weight: 700; font-size: .8rem;
}

.content { padding: 1.5rem 1.6rem 1rem; flex: 1; }
.page-header h1 { font-size: 1.15rem; }
.app-footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem .2rem 1rem; color: #94a3b8; font-size: .74rem;
}
.sidebar-backdrop { display: none; }

/* ---------- Cards & stats ---------- */
.card {
  border: 1px solid var(--urme-border); border-radius: var(--urme-radius);
  box-shadow: var(--urme-shadow); background: #fff;
}
[data-bs-theme="dark"] .card { background: #121a2b; border-color: #1f2b40; }
.card-header {
  background: transparent; border-bottom: 1px solid var(--urme-border);
  font-weight: 600; padding: .9rem 1.1rem; display: flex; align-items: center; gap: .5rem;
}
.card-body { padding: 1.1rem; }
.stat-card { position: relative; overflow: hidden; height: 100%; }
.stat-card .stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #7c8ca5; font-weight: 600; }
.stat-card .stat-value { font-size: 1.85rem; font-weight: 750; line-height: 1.1; margin: .35rem 0 .1rem; }
.stat-card .stat-note { font-size: .74rem; color: #94a3b8; }
.stat-icon {
  position: absolute; right: .9rem; top: .9rem; width: 42px; height: 42px;
  border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem;
}
.bg-soft-primary { background: rgba(13, 110, 253, .1); color: #0d6efd; }
.bg-soft-success { background: rgba(22, 199, 154, .12); color: #0f9d78; }
.bg-soft-warning { background: rgba(245, 158, 11, .14); color: #b45309; }
.bg-soft-danger { background: rgba(239, 68, 68, .12); color: #dc2626; }
.bg-soft-info { background: rgba(14, 165, 233, .12); color: #0284c7; }
.bg-soft-purple { background: rgba(139, 92, 246, .12); color: #7c3aed; }

.chart-wrap { position: relative; height: 260px; }
.chart-wrap.sm { height: 220px; }

/* ---------- Tables ---------- */
.table { font-size: .86rem; margin: 0; vertical-align: middle; }
.table > thead th {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #7c8ca5;
  font-weight: 700; border-bottom-width: 1px; background: rgba(15, 35, 70, .025);
  white-space: nowrap;
}
[data-bs-theme="dark"] .table > thead th { background: rgba(255, 255, 255, .02); }
.table > tbody > tr > td { padding: .65rem .75rem; }
.table-hover > tbody > tr:hover > * { background: rgba(13, 110, 253, .04); }
.table-responsive { border-radius: var(--urme-radius); }
.mini-table { font-size: .82rem; }

.badge { font-weight: 600; font-size: .7rem; padding: .34em .6em; border-radius: 6px; }
.badge.status-draft { background: #e2e8f0; color: #475569; }
.badge.status-scheduled, .badge.status-ready { background: #dbeafe; color: #1d4ed8; }
.badge.status-running { background: #0d6efd; color: #fff; }
.badge.status-paused { background: #fef3c7; color: #92400e; }
.badge.status-completed, .badge.status-delivered { background: #dcfce7; color: #15803d; }
.badge.status-failed { background: #fee2e2; color: #b91c1c; }
.badge.status-sent { background: #e0e7ff; color: #4338ca; }
.badge.status-queued, .badge.status-skipped { background: #f1f5f9; color: #475569; }
.badge.status-open { background: #dbeafe; color: #1d4ed8; }
.badge.status-pending { background: #fef3c7; color: #92400e; }
.badge.status-closed { background: #e2e8f0; color: #475569; }
.badge.status-opted_in { background: #dcfce7; color: #15803d; }
.badge.status-opted_out { background: #fee2e2; color: #b91c1c; }
.badge.status-unknown, .badge.status-read { background: #e2e8f0; color: #334155; }
.badge.status-manual { background: #e0f2fe; color: #0369a1; }

/* ---------- Forms ---------- */
.form-label { font-size: .78rem; font-weight: 600; color: #52627a; margin-bottom: .3rem; }
.form-control, .form-select {
  border-radius: 9px; border-color: var(--urme-border); font-size: .88rem;
  padding: .5rem .7rem; background-color: transparent; color: inherit;
}
.form-control:focus, .form-select:focus {
  border-color: var(--urme-primary); box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
  background-color: transparent; color: inherit;
}
.form-text { font-size: .74rem; }
.form-check-label { font-size: .86rem; }
.helper-note {
  font-size: .78rem; color: #6b7a92; background: rgba(13, 110, 253, .05);
  border-left: 3px solid var(--urme-primary); padding: .6rem .8rem; border-radius: 0 8px 8px 0;
}
.secret-row { font-family: "SFMono-Regular", Consolas, monospace; font-size: .78rem; }

.btn { border-radius: 9px; font-size: .855rem; font-weight: 550; }
.btn-primary { background: var(--urme-primary); border-color: var(--urme-primary); }
.btn-primary:hover { background: var(--urme-primary-dark); border-color: var(--urme-primary-dark); }
.btn-sm { font-size: .78rem; padding: .32rem .62rem; }

/* ---------- Page bits ---------- */
.page-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.15rem; flex-wrap: wrap; }
.page-head h2 { font-size: 1.3rem; margin: 0; font-weight: 700; }
.page-head .sub { color: #7c8ca5; font-size: .84rem; margin-top: .15rem; }
.page-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 140px; }
.empty-state { text-align: center; padding: 2.4rem 1rem; color: #94a3b8; }
.empty-state i { font-size: 2.2rem; display: block; margin-bottom: .6rem; opacity: .6; }

.progress { height: 7px; border-radius: 20px; background: rgba(13, 110, 253, .1); }
.progress-bar { background: linear-gradient(90deg, #0d6efd, #16c79a); border-radius: 20px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 .95rem 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--urme-primary);
}
.timeline li::after {
  content: ""; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px;
  background: var(--urme-border);
}
.timeline li:last-child::after { display: none; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; }
.info-grid .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: #7c8ca5; font-weight: 600; }
.info-grid .value { font-size: .9rem; font-weight: 550; word-break: break-word; }

.avatar-lg {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0d6efd, #16c79a); color: #fff; font-weight: 700; font-size: 1.2rem;
}

/* ---------- Inbox ---------- */
.inbox-grid { display: grid; grid-template-columns: 340px 1fr; gap: 1rem; align-items: start; }
.conv-list { max-height: calc(100vh - 190px); overflow-y: auto; }
.conv-item {
  display: flex; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--urme-border);
  color: inherit; text-decoration: none; transition: background .12s;
}
.conv-item:hover { background: rgba(13, 110, 253, .04); color: inherit; }
.conv-item.active { background: rgba(13, 110, 253, .08); border-left: 3px solid var(--urme-primary); }
.conv-item .name { font-weight: 600; font-size: .87rem; }
.conv-item .preview { font-size: .78rem; color: #7c8ca5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.conv-item .meta { font-size: .68rem; color: #94a3b8; white-space: nowrap; }
.chat-thread { max-height: calc(100vh - 260px); overflow-y: auto; padding: 1rem 1.1rem; }
.msg-row { display: flex; margin-bottom: .7rem; }
.msg-row.out { justify-content: flex-end; }
.bubble {
  max-width: 72%; padding: .55rem .8rem; border-radius: 12px; font-size: .86rem;
  word-break: break-word; background: #eef2f8; border-bottom-left-radius: 4px;
}
.bubble .msg-text { white-space: pre-wrap; }
[data-bs-theme="dark"] .bubble { background: #1b2740; }
.msg-row.out .bubble { background: #d8e7ff; border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
[data-bs-theme="dark"] .msg-row.out .bubble { background: #143a6b; }
.bubble .meta { display: block; font-size: .65rem; color: #7c8ca5; margin-top: .25rem; }
.bubble.note { background: #fff8e1; border: 1px dashed #f0c36d; }
[data-bs-theme="dark"] .bubble.note { background: #2b2413; border-color: #6b5a2a; }
.bubble.inbound { background: #fff; border: 1px solid var(--urme-border); }
[data-bs-theme="dark"] .bubble.inbound { background: #121a2b; }
.chat-media { display: block; max-width: 260px; max-height: 240px; border-radius: 10px; object-fit: cover; }
.chat-media-link {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border-radius: 8px;
  font-size: .8rem; font-weight: 600; color: #0d6efd; background: rgba(13, 110, 253, .08);
  text-decoration: none; margin-bottom: .35rem;
}
.chat-media-link:hover { background: rgba(13, 110, 253, .16); color: #0b5ed7; }
[data-bs-theme="dark"] .chat-media-link { color: #8ab8ff; background: rgba(13, 110, 253, .2); }
[data-bs-theme="dark"] .chat-media-link:hover { background: rgba(13, 110, 253, .3); }
.sidebar-panel .list-group-item { background: transparent; font-size: .83rem; padding: .5rem 0; border-color: var(--urme-border); }

/* ---------- Campaign preview ---------- */
.wa-preview {
  background: #e5ddd5; border-radius: 16px; padding: 1.2rem; max-width: 360px;
  background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
.wa-bubble {
  background: #fff; border-radius: 10px 10px 10px 3px; padding: .65rem .8rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.12); font-size: .86rem; white-space: pre-wrap;
}
.wa-bubble .time { font-size: .62rem; color: #8696a0; text-align: right; display: block; margin-top: .3rem; }

.code-block {
  background: #0b1220; color: #c9d7ee; border-radius: 10px; padding: 1rem;
  font-family: "SFMono-Regular", Consolas, monospace; font-size: .78rem; overflow-x: auto;
}
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; background: rgba(13, 110, 253, .08); color: #1d4ed8; }
[data-bs-theme="dark"] .chip { color: #8ab6ff; }

/* ---------- Auth ---------- */
.auth-body {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 10% 10%, #12305e 0%, #0b1220 55%, #070b14 100%);
}
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-hero { padding: 4rem; color: #e7eefc; display: flex; flex-direction: column; justify-content: center; }
.auth-hero .brand-row { display: flex; align-items: center; gap: .8rem; margin-bottom: 3rem; }
.auth-hero h1 { font-size: 2.55rem; font-weight: 750; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1rem; }
.auth-hero p { color: #9fb0c9; max-width: 30rem; font-size: 1rem; }
.auth-features { list-style: none; padding: 0; margin-top: 2.2rem; display: grid; gap: .9rem; }
.auth-features li { display: flex; gap: .75rem; align-items: flex-start; color: #c4d3ea; font-size: .9rem; }
.auth-features i { color: var(--urme-accent); font-size: 1.1rem; margin-top: .05rem; }
.auth-panel { display: grid; place-items: center; padding: 2rem; }
.auth-card {
  width: 100%; max-width: 420px; background: #fff; color: #1e293b; border-radius: 20px;
  padding: 2.4rem; box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}
.auth-card h2 { font-size: 1.5rem; font-weight: 700; }
.auth-card .sub { color: #7c8ca5; font-size: .86rem; margin-bottom: 1.6rem; }
.auth-flash { position: fixed; top: 1rem; right: 1rem; z-index: 1080; width: min(420px, 92vw); }
.auth-foot { margin-top: 1.6rem; font-size: .74rem; color: #94a3b8; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(7, 11, 20, .55); z-index: 1035; }
  .app-main { margin-left: 0; }
  .content { padding: 1.1rem; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { padding: 1.2rem; }
  .inbox-grid { grid-template-columns: 1fr; }
  .conv-list { max-height: 380px; }
  .chat-thread { max-height: 52vh; }
  .topbar { padding: .55rem .8rem; }
}
@media (max-width: 575.98px) {
  .auth-card { padding: 1.6rem; }
  .stat-card .stat-value { font-size: 1.55rem; }
  .page-actions { width: 100%; }
}

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .app-footer, .page-actions, .filter-bar, .btn { display: none !important; }
  .app-main { margin-left: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .content { padding: 0; }
}

/* Theme toggle icons */
[data-bs-theme="light"] .theme-icon-light { display: none; }
[data-bs-theme="dark"] .theme-icon-dark { display: none; }
.theme-icon-dark, .theme-icon-light { display: inline-block; }
