/* Wyldecrest additions on top of the WowDash theme (vendor/css/style.css). */
@font-face {
  font-family: "Inter";
  src: url("/vendor/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

[hidden] { display: none !important; }

:root {
  --ch-google: #34a853;
  --ch-meta: #0866ff;
  --ch-instagram: #e1306c;
  --ch-facebook: #1877f2;
  --ch-ga4: #f9ab00;
}

/* ── Brand block in the sidebar ─────────────────────── */
.wr-logo { gap: 10px; text-decoration: none; }
.wr-logo img { max-height: 36px; border-radius: 8px; }
.wr-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.wr-logo-text strong { font-size: 1.05rem; color: var(--text-primary-light); letter-spacing: -0.01em; }
.wr-logo-text small { font-size: 0.75rem; color: var(--text-secondary-light); }
.sidebar.active:not(:hover) .wr-logo-text { display: none; }
.sidebar-menu .menu-icon { font-size: 1.25rem; }

/* ── Top bar bits ───────────────────────────────────── */
.wr-fresh {
  align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; background: var(--neutral-100); color: var(--text-secondary-light);
  white-space: nowrap;
}
.wr-fresh .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success-main); }
.wr-fresh.stale .dot { background: var(--warning-main); }
.wr-fresh.old .dot { background: var(--danger-main); }
.wr-avatar {
  width: 40px; height: 40px; border: 0; background: var(--primary-600); color: #fff; font-weight: 600; font-size: 0.9rem;
}

/* ── KPI cards ──────────────────────────────────────── */
.wr-kpi .card-body { padding: 20px; }
.wr-kpi .label { font-weight: 500; color: var(--text-secondary-light); margin-bottom: 4px; font-size: 0.875rem; }
.wr-kpi .value { font-size: 1.5rem; font-weight: 600; margin: 0; color: var(--text-primary-light); font-variant-numeric: tabular-nums; }
.wr-kpi .icon-wrap { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; font-size: 1.4rem; }
.wr-kpi .delta { font-size: 0.8125rem; font-weight: 500; margin-top: 12px; display: flex; align-items: center; gap: 6px; color: var(--text-secondary-light); }
.wr-kpi .delta .chg { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.wr-kpi .delta .up { color: var(--success-main); }
.wr-kpi .delta .down { color: var(--danger-main); }
.wr-kpi .delta .flat { color: var(--text-secondary-light); }
.wr-explain { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--neutral-300, #d0d5dd); font-size: 0.78rem; line-height: 1.45; color: var(--text-secondary-light); }
.wr-explain i { color: var(--warning-main); margin-top: 1px; }

/* Plain-English overview */
.wr-story li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--neutral-200); font-size: 0.975rem; line-height: 1.55; color: var(--text-primary-light); }
.wr-story li:last-child { border-bottom: 0; }
.wr-story .s-ico { width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.wr-story .good { background: var(--success-focus, #dcfce7); color: var(--success-main); }
.wr-story .bad { background: var(--danger-focus, #fee2e2); color: var(--danger-main); }
.wr-story .info { background: var(--primary-50); color: var(--primary-600); }
.wr-story b { font-weight: 600; }
.wr-period { display: flex; flex-wrap: wrap; gap: 8px; }
.wr-period span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; background: var(--neutral-100); color: var(--text-secondary-light); }
.wr-period span.now { background: var(--primary-50); color: var(--primary-600); }
.wr-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.wr-chip.up { background: var(--success-focus, #dcfce7); color: var(--success-main); }
.wr-chip.down { background: var(--danger-focus, #fee2e2); color: var(--danger-main); }
.wr-chip.flat { background: var(--neutral-100); color: var(--text-secondary-light); }
.wr-yoy th, .wr-yoy td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wr-yoy td.metric { white-space: normal; min-width: 210px; }
.wr-yoy td.metric small { display: block; color: var(--text-secondary-light); font-size: 0.75rem; line-height: 1.35; margin-top: 2px; }
.wr-yoy .ly { color: var(--text-secondary-light); }
.wr-yoy td.metric, .wr-yoy thead tr:first-child th:first-child { position: sticky; left: 0; z-index: 1; background: var(--white); box-shadow: 1px 0 0 var(--neutral-200); }
.wr-yoy td.metric.sub span { color: var(--text-secondary-light); font-weight: 500; }
.wr-yoy th.mh { text-align: center; border-bottom: 2px solid var(--primary-600) !important; }
.wr-glossary dt { font-weight: 600; color: var(--text-primary-light); margin-top: 12px; }
.wr-glossary dd { color: var(--text-secondary-light); margin: 2px 0 0; line-height: 1.5; }

.bg-google { background: var(--ch-google) !important; }
.bg-meta { background: var(--ch-meta) !important; }
.bg-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af) !important; }
.bg-facebook { background: var(--ch-facebook) !important; }
.bg-ga4 { background: var(--ch-ga4) !important; }

/* ── Cards / tables ─────────────────────────────────── */
.card .wr-card-title { font-size: 1.0625rem !important; font-weight: 600; margin: 0; line-height: 1.4; }
.wr-card-sub { font-size: 0.8125rem; color: var(--text-secondary-light); margin: 2px 0 0; }
.wr-table { font-variant-numeric: tabular-nums; }
.wr-table th { cursor: pointer; user-select: none; white-space: nowrap; }
.wr-table th.num, .wr-table td.num { text-align: right; }
.wr-table th[aria-sort="ascending"]::after { content: " \2191"; }
.wr-table th[aria-sort="descending"]::after { content: " \2193"; }
.wr-table td { white-space: nowrap; }
.wr-table td.wrap { white-space: normal; min-width: 240px; max-width: 420px; }
.wr-table-scroll { max-height: 520px; overflow: auto; }
.wr-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--neutral-200); flex: none; }
.wr-bar { height: 6px; border-radius: 3px; background: var(--neutral-200); overflow: hidden; min-width: 80px; }
.wr-bar > span { display: block; height: 100%; background: var(--primary-600); border-radius: 3px; }
.wr-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8125rem; color: var(--text-secondary-light); }
.wr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ── Empty / loading states ─────────────────────────── */
.wr-empty { text-align: center; padding: 56px 24px; }
.wr-empty .ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; background: var(--primary-50); color: var(--primary-600); }
.wr-empty code { background: var(--neutral-100); padding: 2px 6px; border-radius: 4px; font-size: 0.8125rem; }
.wr-skel { background: linear-gradient(90deg, var(--neutral-100), var(--neutral-200), var(--neutral-100)); background-size: 200% 100%; animation: wr-sk 1.2s infinite; border-radius: 12px; }
@keyframes wr-sk { to { background-position: -200% 0; } }

.wr-toast { position: fixed; right: 20px; bottom: 20px; z-index: 2000; max-width: calc(100vw - 40px); }
.wr-sample-banner { border: 1px dashed var(--warning-main); background: var(--warning-50, rgba(255, 159, 41, 0.08)); }

/* ── Login page ─────────────────────────────────────── */
.wr-auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.wr-auth-hero {
  background: radial-gradient(1200px 600px at -10% -10%, #6c8dff 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 110%, #22c5a0 0%, transparent 55%), #1d2a5b;
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.wr-auth-hero h2 { color: #fff; font-size: 2.1rem; line-height: 1.2; max-width: 460px; }
.wr-auth-hero p { color: rgba(255, 255, 255, 0.78); max-width: 440px; }
.wr-auth-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wr-auth-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.875rem; }
.wr-auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: var(--white); }
@media (max-width: 991px) { .wr-auth { grid-template-columns: 1fr; } .wr-auth-hero { display: none; } }

@media (max-width: 575px) {
  .dashboard-main-body { padding: 16px !important; }
  .navbar-header { padding: 0.75rem 1rem; }
}

