/* Site styles on top of stock Bootstrap 5, matching the RockRecorder app.
   Tokens and components are copied from the app's light theme
   (rockrecorder html/static/css: tokens.css, common.css, styles.css,
   administration.css, auth-pages.css), so the site and the product look
   like one thing. When the app's look changes, update the tokens here. */

:root {
  /* app tokens (light theme) */
  --color-nav-bg: #14284b;
  --color-nav-text: #c9d4e8;
  --color-nav-active: #ffffff;
  --color-nav-hover: rgba(255, 255, 255, 0.08);
  --color-nav-separator: rgba(255, 255, 255, 0.18);
  --color-side-bg: #1b3360;
  --color-side-line: #364b73;
  --color-side-text: #e6ecf6;
  --color-side-muted: #a9b8d4;
  --color-frame-bg: #eef1f6;
  --color-surface: #ffffff;
  --color-surface-2: #f8f9fa;
  --color-text: #16181d;
  --color-text-secondary: #3d4350;
  --color-text-muted: #5b6270;
  --color-border-subtle: #edf0f5;
  --color-border: #dce1ea;
  --color-border-strong: #cfd6e2;
  --color-brand: #1e4fb4;
  --color-brand-hover: #183f90;
  --color-brand-subtle: rgba(30, 79, 180, 0.08);
  --color-focus-ring: rgba(30, 79, 180, 0.25);
  --color-table-header-bg: #e4e9f1;
  --color-table-stripe: #f6f8fb;

  /* Bootstrap picks these up */
  --bs-body-color: var(--color-text);
  --bs-body-bg: var(--color-frame-bg);
  --bs-border-color: var(--color-border);
  --bs-primary: var(--color-brand);
  --bs-primary-rgb: 30, 79, 180;
  --bs-link-color: var(--color-brand);
  --bs-link-color-rgb: 30, 79, 180;
  --bs-link-hover-color: var(--color-brand-hover);
  --bs-link-hover-color-rgb: 24, 63, 144;
  --bs-secondary-color: var(--color-text-muted);
}

/* Footer at the bottom of short pages: body is at least the window's height
   and main takes the spare room. The bars must never shrink, or an open
   mobile menu would spill out of the navbar. */
html { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100%; background: var(--color-frame-bg); color: var(--color-text); }
main { flex: 1 0 auto; }
.site-nav, .site-footer { flex-shrink: 0; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top bar: the app's navy navbar. Links sit on the right with icons; the
   active page is white with a 2px underline on the bar's bottom edge. */
.site-nav {
  background: var(--color-nav-bg);
  min-height: 56px;
  padding: 0;
}
.site-nav .navbar-brand { padding: 0; margin-right: auto; }
.site-nav .brand-logo { display: block; width: 260px; max-width: calc(100vw - 110px); height: auto; }
.site-nav .navbar-toggler { border-color: var(--color-nav-separator); }
.site-nav .navbar-toggler-icon { filter: invert(1) grayscale(100%) brightness(200%); }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 0.2rem var(--color-nav-separator); }
.site-nav .nav-link {
  color: var(--color-nav-text);
  white-space: nowrap;
  text-decoration: none;
}
.site-nav .nav-link .bi { margin-right: 0.3rem; }
.site-nav .nav-link:hover { color: var(--color-nav-active); }
.site-nav .nav-link.active { color: var(--color-nav-active); }
.nav-separator { width: 1px; height: 24px; background: var(--color-nav-separator); margin: 0 0.5rem; align-self: center; }
@media (min-width: 992px) {
  .site-nav .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 0.85rem;
  }
  .site-nav .nav-link.active { box-shadow: inset 0 -2px 0 var(--color-nav-active); }
}
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding-bottom: 0.75rem; }
  .site-nav .nav-link { padding-left: 0.6rem; padding-right: 0.6rem; border-radius: 5px; }
  .site-nav .nav-link:hover { background: var(--color-nav-hover); }
  .nav-separator { display: none; }
}

/* Buttons, as in the app's buttons.css and toolbar */
.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--color-brand);
  --bs-btn-border-color: var(--color-brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--color-brand-hover);
  --bs-btn-hover-border-color: var(--color-brand-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--color-brand-hover);
  --bs-btn-active-border-color: var(--color-brand-hover);
  --bs-btn-disabled-bg: var(--color-brand);
  --bs-btn-disabled-border-color: var(--color-brand);
}
.btn:focus-visible, .form-control:focus { box-shadow: 0 0 0 0.2rem var(--color-focus-ring); }
.btn-white {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn-white:hover, .btn-white:focus { background: var(--color-surface-2); color: var(--color-text); border-color: var(--color-border-strong); }

/* Home page hero: the sign-in page's brand panel (navy gradient with a
   soft light in the top corner) and its full logo and tagline */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-side-bg) 0%, var(--color-nav-bg) 60%, var(--color-nav-bg) 100%);
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 80%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-logo { display: block; width: 100%; max-width: 340px; height: auto; }
.hero-tagline { margin-top: 1rem; font-size: 1.05rem; color: rgba(255, 255, 255, 0.8); }
.hero-text { color: var(--color-side-text); max-width: 34rem; }
.hero .btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, 0.5); }
.hero-shot { display: block; width: 100%; height: auto; }

/* Page title strip under the navbar, like the app's .page-toolbar */
.page-toolbar {
  background: var(--color-frame-bg);
  border-bottom: 1px solid var(--color-border);
}
.page-heading { margin: 0; font-size: 1.1875rem; font-weight: 600; color: var(--color-text); }
.page-heading-meta { margin-left: 0.5rem; font-size: 0.85rem; font-weight: 400; color: var(--color-text-muted); }

/* Panels: the app's flat cards with a header strip on the table-header color */
.panel {
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 1rem;
  margin: 0;
  background: var(--color-table-header-bg);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}
.panel-header .bi { color: var(--color-text-secondary); }
.panel-body { padding: 1rem; color: var(--color-text-secondary); }
.panel-body > :last-child { margin-bottom: 0; }
.panel-auto { height: auto; }
.intro { max-width: 48rem; }

/* Long-form text (privacy policy) inside a panel */
.panel.prose { max-width: 52rem; margin-inline: auto; }   /* centered on the page */
.prose .panel-body { padding: 1.5rem; }
.prose h2 { margin: 1.75rem 0 0.6rem; font-size: 1rem; font-weight: 600; color: var(--color-text); }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--color-text); font-weight: 600; }

/* Rows inside a panel, like System Information on the status page */
.panel-rows { list-style: none; margin: 0; padding: 0; }
.panel-rows > li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
}
.panel-rows > li:last-child { border-bottom: 0; }
.panel-rows .row-label { flex: 0 0 auto; color: var(--color-text); }
.panel-rows .row-label .bi { margin-right: 0.4rem; color: var(--color-text-muted); }
.panel-rows .row-value { margin-left: auto; text-align: right; }

/* Data tables: 36px header (13px semibold), hairlines, stripes */
.data-table { margin: 0; font-size: 0.875rem; --bs-table-bg: var(--color-surface); --bs-table-border-color: var(--color-border-subtle); }
.data-table thead th {
  height: 36px;
  padding: 0 1rem;
  vertical-align: middle;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-table-header-bg);
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--color-border);
}
.data-table tbody td, .data-table tbody th { padding: 0.55rem 1rem; vertical-align: middle; }
.data-table tbody tr:nth-child(even) > * { background: var(--color-table-stripe); }
.data-table tbody th { font-weight: 600; white-space: nowrap; }

/* Forms: the app's 6px inputs on the strong border */
.form-control { background-color: var(--color-surface); border-color: var(--color-border-strong); border-radius: 6px; }
.form-control:focus { border-color: var(--color-brand); }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--color-text); }

/* Footer: the app's navy side panel, with its small uppercase section labels */
.site-footer {
  background: var(--color-side-bg);
  color: var(--color-side-muted);
  font-size: 0.875rem;
}
.site-footer .footer-logo { display: block; width: 220px; max-width: 100%; height: auto; }
.site-footer .section-label {
  margin-bottom: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-side-muted);
}
.site-footer a { color: var(--color-side-text); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer address { margin: 0; color: var(--color-side-text); }
.site-footer .footer-bottom { border-top: 1px solid var(--color-side-line); }
.site-footer .footer-company { display: inline-block; line-height: 0; }
.site-footer .footer-company img { display: block; height: 24px; width: auto; }
.site-footer .footer-bottom a { color: var(--color-side-muted); }
.site-footer .footer-bottom a:hover { color: #fff; }

/* Home page "Works with" strip: logos in their own colors (or names until a
   logo file is added) */
.brands-strip { margin-top: 3rem; text-align: center; }
.brands-heading {
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3.5rem;
}
.works-logo {
  height: 40px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}
.works-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  opacity: 0.65;
}
.brands-note { margin: 1.25rem 0 0; font-size: 0.75rem; color: var(--color-text-secondary); opacity: 0.8; }
@media (max-width: 575.98px) {
  .brands { gap: 1.5rem 2rem; }
  .works-logo { height: 32px; max-width: 130px; }
  .works-name { font-size: 1.15rem; }
}
