/*
 * kc-theme.css — app-wide look decisions that must win over styles.css.
 * Load order on every page: kc-bridge.css -> styles.css -> kc-theme.css
 *
 * Decision 2026-11-13: flat design, no drop shadows. Focus rings (keyboard outline on
 * fields and buttons) are kept for accessibility; 1px rings used as borders are kept.
 */
.home-media-card,
.home-media-preview-chip,
.home-resource-card,
.inbox:hover,
#myLinks,
.footer-uploads #kc-uploads-badge,
.message-tabs .nav-link.active,
.message-panel,
.sticky-message-card,
.message-row,
.message-row:hover,
.message-row-selected,
.message-thread,
.reply-card,
.forecast-card,
.mini-analytic-card,
.forecast-analytics-panel,
.business-health-band,
.performance-panel,
.shadow,
.shadow-sm,
.shadow-lg {
  box-shadow: none !important;
}

/* Surfaces that relied on a shadow to stand out get a hairline border instead */
.home-media-card,
.home-resource-card,
.message-panel,
.message-row,
.message-thread,
.reply-card,
.forecast-card {
  outline: 1px solid rgba(9, 9, 11, 0.08);
  outline-offset: -1px;
}
/* KPI/analytic cards, the health band and performance panels draw their own hairline
   border in styles.css; the analytics wrapper is a plain section, not a card. */
.card.forecast-analytics-panel {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}
.message-row-selected { outline-color: rgba(37, 99, 235, 0.45); }

/* Error popup / plain .alert: styles.css uses var(--color-red-500) on var(--color-red-100) (2.96:1, fails WCAG AA).
   Same red family, readable: var(--color-red-700) on var(--color-red-50) (6.2:1). */
.alert:not([class*="alert-"]) {
  color: var(--color-red-700);
  background-color: var(--color-red-50);
  border: 1px solid rgba(220, 38, 38, 0.35);
}

/* =========================================================================
 * Catalyst look (decision 2026-11-13: "full Catalyst look").
 * White chrome with hairlines, zinc text, Catalyst type scale, neutral
 * secondary buttons, brand blue only for primary actions. The SVG tile buttons
 * and the daycare illustrations are untouched.
 * ========================================================================= */
:root {
  --cat-950: var(--color-zinc-950); --cat-900: var(--color-zinc-900); --cat-700: var(--color-zinc-700); --cat-600: var(--color-zinc-600);
  --cat-500: var(--color-zinc-500); --cat-400: var(--color-zinc-400); --cat-200: var(--color-zinc-200); --cat-100: var(--color-zinc-100); --cat-50: var(--color-zinc-50);
  --cat-line: rgba(9, 9, 11, 0.1); --cat-line-soft: rgba(9, 9, 11, 0.06);
}

/* ---- type: 14px body, dark zinc headings at Catalyst sizes */
body { font-size: var(--kc-text-sm); line-height: 1.5rem; } /* text colour stays styles.css var(--color-zinc-900) */
/* Heading colours are NOT overridden (decision 2026-11-13): titles keep the KidCare colours
   from styles.css (green var(--color-emerald-500), and each component's own heading colour). */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 600; letter-spacing: -.015em; }
/* Page and section titles keep their original sizes (user request 2026-11-13: "title needs
   to be bigger"): h1 up to 40px, h2 up to 32px, same as before the migration. */
h1, .h1 { font-size: var(--kc-text-3xl); line-height: var(--kc-leading-3xl); }
h2, .h2 { font-size: var(--kc-text-2xl); line-height: var(--kc-leading-2xl); }
@media (min-width: 1200px) {
  h1, .h1 { font-size: var(--kc-text-4xl); line-height: var(--kc-leading-4xl); }
  h2, .h2 { font-size: var(--kc-text-3xl); line-height: var(--kc-leading-3xl); }
}
h3, .h3 { font-size: var(--kc-text-xl); line-height: var(--kc-leading-xl); }
h4, .h4 { font-size: var(--kc-text-lg); line-height: var(--kc-leading-lg); }
h5, .h5 { font-size: var(--kc-text-base); line-height: var(--kc-leading-base); }
h6, .h6 { font-size: var(--kc-text-sm); line-height: var(--kc-leading-sm); }
.text-muted, .text-secondary { color: var(--cat-500) !important; }

/* Page titles: left-aligned heading with a divider underneath */
.section > h1, .section > .header h1, .section > .header h2, .section > h2 {
  text-align: left !important;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid var(--cat-line);
}
.breadcrumb { margin-bottom: .75rem; }

/* ---- top bar and footer keep the KidCare blue from styles.css (user request 2026-11-13:
   "the header needs a background color to add contrast", "same with the footer"). */
#installButtonContainer { background-color: var(--cat-950) !important; color: #fff !important; padding-top: .5rem !important; padding-bottom: .5rem !important; font-size: var(--kc-text-sm); }

/* ---- buttons: neutral outline; primary actions are black (.btn-primary, styles.css) */
.btn-outline-primary, .btn-outline-secondary, .btn-outline-dark {
  color: var(--cat-950) !important;
  background-color: #fff !important;
  border-color: rgba(9, 9, 11, 0.12) !important;
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-dark:hover,
.btn-outline-primary.active, .btn-outline-primary:active {
  color: var(--cat-950) !important;
  background-color: var(--cat-50) !important;
  border-color: rgba(9, 9, 11, 0.2) !important;
}
.btn-outline-primary.disabled, .btn-outline-primary:disabled { color: var(--cat-400) !important; opacity: 1; }
.btn-lg { font-size: var(--kc-text-sm) !important; font-weight: 600; }
/* Primary buttons are black (styles.css); nothing to override here. */

/* ---- cards: hairline ring, white header with a quiet label */
.card { border: 0 !important; border-radius: .75rem !important; box-shadow: 0 0 0 1px var(--cat-line-soft) !important; }
.card-header {
  background-color: #fff !important;
  border-bottom: 1px solid var(--cat-line-soft) !important;
  font-size: var(--kc-text-sm); font-weight: 600;
  padding: .875rem 1.25rem;
}

/* Dashboard overview and activity feeds: styled for everyone in styles.css ("Admin home") */

/* Business health: styled for everyone in styles.css (".kc-health"); status is a coloured pill */

/* Quick access label */
.quick-access-heading { color: var(--cat-500); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: var(--kc-text-sm); }
