/* The Bright Control look for the KitcheQ application (Chadi, 26 Nov 2026: "apply the design on all pages of the
   application and website"; the website's home page = tools/website_v8/styles.css). A layer loaded after app.css:
   it changes colours, the top bar, buttons, cards, headings and fields, not the page layouts. The design is a light
   design: the application's dark mode is switched off with it (one look on every screen). */
:root, :root:root {
  --bg: #f2f4f8; --surface: #ffffff; --fg: #172334; --muted: #526071; --rule: #c9d2dc;
  --accent: #155edb; --accent-fg: #ffffff; --req-bg: #f4f6f9;
  --ink-line: #263345; --mint: #a8e0c3; --amber: #ffd36d; --coral: #ffb39e; --sky: #9ccaff; --graphite: #202e3f;
  --bar: #ffffff; --bar-fg: #172334; --bar-on: #155edb; --bar-rule: #c4ccd5;
  --font: "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root, :root:root { --bg: #f2f4f8; --surface: #ffffff; --fg: #172334; --muted: #526071; --rule: #c9d2dc;
    --accent: #155edb; --accent-fg: #ffffff; --req-bg: #f4f6f9; --pop-bg: #EAF6FF; --pop-fg: #031930;
    --ok: #1e7a46; --warn: #a15c07; --bad: #b3261e; --ok-bg: #e5f3ea; --warn-bg: #fbefdc; --bad-bg: #fbe5e3;
    --bar: #ffffff; --bar-fg: #172334; --bar-on: #155edb; --bar-rule: #c4ccd5; color-scheme: light; }
}
body { font: 15px/1.55 var(--font); }

/* the top bar: white, the KitcheQ logo, a blue line under the page that is open */
header.top { position: sticky; top: 0; z-index: 40; min-height: 72px; padding: 10px 28px; gap: 8px 26px;
  background: #fffffff5; backdrop-filter: blur(12px); border-bottom: 1px solid var(--bar-rule); }
header.top .brand img { height: 44px; }
header.top nav { gap: 6px 22px; font-weight: 600; font-size: 14px; }
header.top nav a { color: var(--bar-fg); padding: 4px 0; }
header.top nav a:hover { color: var(--accent); }
header.top nav a.on, header.top nav .menu > button.on { color: var(--accent); border-bottom-color: var(--accent); }
header.top nav .menu > button { color: var(--bar-fg); font-weight: 600; }
header.top nav .menu > button:hover { color: var(--accent); }
header.top nav .menu .drop { background: #fff; border: 1px solid var(--ink-line); border-radius: 12px;
  box-shadow: 0 5px 0 #24334435; }
header.top nav .menu .drop a:hover { background: #e3edff; }
header.top .who { color: var(--muted); }
header.top .who a, header.top .who button.plain { color: var(--accent); }
.badge { background: var(--amber); color: var(--fg); border: 1px solid var(--ink-line); }

/* headings: the design's black face */
h1 { font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Arial, sans-serif; font-weight: 900;
  letter-spacing: -.04em; font-size: 30px; line-height: 1.1; }
h2 { font-size: 18px; letter-spacing: -.01em; font-weight: 750; }
.sub { font-size: 15px; }

/* cards and figures: a dark edge and a raised lower edge */
section.card, .stat { border: 1px solid #344154; border-radius: 16px; box-shadow: 0 5px 0 #24334435; padding: 18px 20px; }
.stat { padding: 14px 16px; }
.stat b { font-family: "Arial Black", "Segoe UI Black", Arial, sans-serif; letter-spacing: -.04em; }
.ai-card { border-left: 1px solid #344154; background: #e0ecff; }
.msg { border: 1px solid currentColor; border-radius: 10px; box-shadow: 0 3px 0 #24334420; }
.pill { border-color: #3a4958; border-radius: 6px; font-weight: 700; }
th { color: #405774; }

/* buttons: the design's raised buttons (blue = the main action) */
button, .button { height: auto; min-height: 40px; padding: 8px 16px; border-radius: 11px; border: 1px solid #123b82;
  background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 4px 0 #0d347a, inset 0 1px 0 #ffffff45;
  transition: transform .2s, box-shadow .2s; }
button:hover:not(:disabled), .button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #0d347a, inset 0 1px 0 #ffffff45; }
button:active:not(:disabled), .button:active { transform: translateY(2px); box-shadow: 0 1px 0 #0d347a; }
button.plain, .button.plain { background: #fff; color: var(--fg); border-color: var(--ink-line);
  box-shadow: 0 4px 0 #24334442, inset 0 1px 0 #ffffff9c; }
button.danger { background: var(--coral); color: var(--fg); border-color: var(--ink-line); box-shadow: 0 4px 0 #a5543f; }
header.top .who button.plain, .pw .eye { background: transparent; border: 0; box-shadow: none; min-height: 0; padding: 4px; transform: none; }
header.top .who button.plain { color: var(--accent); font-weight: 600; }

/* fields */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { height: 40px; border-radius: 9px;
  border-color: #9aa8b7; background: #fff; }
textarea { border-radius: 9px; border-color: #9aa8b7; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
label { font-size: 13.5px; color: #405774; font-weight: 600; }

/* pages seen before login (login, registration): the logo above a white card */
main.narrow { max-width: 520px; }
.brandmark img { width: 220px; }
main.narrow > form, main.narrow > section { background: #fff; border: 1px solid #344154; border-radius: 18px;
  box-shadow: 0 6px 0 #24334435; padding: 22px 24px; }

/* the footer: the design's plain white footer */
footer.public { background: #fff; border-top: 1px solid #d8dfe8; margin-top: 30px; }
footer.public .social a { background: #fff; border: 1px solid var(--ink-line); box-shadow: 0 3px 0 #24334435; }
footer.public .social a svg { filter: invert(.85); }   /* the white icons drawn dark on the white boxes */
/* hover (Chadi, 29 Nov 2026: "it goes black almost"): the older rule darkened the box under a dark icon - now the box
   turns KitcheQ blue with the icon in white */
footer.public .social a:hover, footer.public .social a:focus-visible { background: #0566C2; border-color: #0566C2; }
footer.public .social a:hover svg, footer.public .social a:focus-visible svg { filter: none; }

/* the admin menu's group titles are buttons: plain menu words, not the raised buttons */
header.top nav .menu > button { min-height: 0; padding: 4px 0; background: none; border: 0;
  border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; transform: none; }
header.top nav .menu > button:hover, header.top nav .menu > button:active { transform: none; box-shadow: none; }
header.top nav .menu > button.on { border-bottom-color: var(--accent); }
