/* AI-Gauge — auth pages (Devise). Centered, responsive, dark.
   All rules scoped under .auth-shell/.auth-card so they never leak to other pages.
   Inputs are >=16px so iOS Safari does not zoom-jump on focus. */

.auth-shell {
  min-height: 100vh;
  min-height: 100svh;   /* mobile: exclude the URL bar, no height jump */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(900px 500px at 50% -12%, #141b28 0%, rgba(20,27,40,0) 60%),
    #0b0e14;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  background: #12161f;
  border: 1px solid #232a36;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 60px -30px rgba(0,0,0,.7);
  color: #e6e9ef;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -.01em;
}

.auth-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; letter-spacing: -.02em; font-size: 15px;
  margin-bottom: 22px;
}
.auth-dot {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  background: linear-gradient(150deg, #56c2e6, #3a7fb0);
  box-shadow: 0 0 0 1px rgba(86,194,230,.35), 0 4px 14px -4px rgba(86,194,230,.5);
}

.auth-card h2 { margin: 0 0 20px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }

.auth-card .field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 0.25rem; }
.auth-card .field br { display: none; }   /* Devise puts a <br> between label and input; kill it */
.auth-card label { font-size: 13px; color: #9aa4b2; margin: 0.25rem 0 0; }

.auth-card input[type=email],
.auth-card input[type=password],
.auth-card input[type=text] {
  width: 100%; box-sizing: border-box;
  font-size: 16px;                 /* >=16px prevents iOS zoom-jump */
  line-height: 1.3;
  padding: 11px 12px; border-radius: 10px;
  background: #0e121b; border: 1px solid #2a3342; color: #e6e9ef;
  outline: none; font-family: inherit;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.auth-card input[type=email]:focus,
.auth-card input[type=password]:focus,
.auth-card input[type=text]:focus {
  border-color: #56c2e6; box-shadow: 0 0 0 3px rgba(86,194,230,.18);
}
.auth-card input::placeholder { color: #69727f; }

/* remember-me: put checkbox + its label on one row */
.auth-card .field:has(input[type=checkbox]) { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 20px; }
.auth-card input[type=checkbox] { width: 16px; height: 16px; accent-color: #56c2e6; flex: none; margin: 0; }
.auth-card .field:has(input[type=checkbox]) label { color: #e6e9ef; }

.auth-card .actions { margin-top: 4px; }
.auth-card input[type=submit] {
  width: 100%; box-sizing: border-box; cursor: pointer;
  font-size: 15px; font-weight: 600; padding: 11px 14px; border-radius: 10px;
  border: 0; color: #04222e; font-family: inherit;
  background: linear-gradient(150deg, #56c2e6, #3a7fb0);
  transition: filter .12s ease;
}
.auth-card input[type=submit]:hover { filter: brightness(1.06); }
.auth-card input[type=submit]:focus-visible { outline: 2px solid #56c2e6; outline-offset: 2px; }

.auth-card a { display: inline-block; margin: 16px 16px 0 0; color: #8fd6ef; text-decoration: none; font-size: 13px; }
.auth-card a:hover { text-decoration: underline; }

/* flash (login errors / notices) — was previously not rendered at all */
.auth-card .auth-flash { font-size: 13px; padding: 9px 12px; border-radius: 9px; margin-bottom: 18px; }
.auth-card .auth-flash-notice { background: rgba(89,212,153,.12); color: #7fe0b0; border: 1px solid rgba(89,212,153,.25); }
.auth-card .auth-flash-alert  { background: rgba(242,104,143,.12); color: #f2a0b6; border: 1px solid rgba(242,104,143,.28); }
/* AI-Gauge Central Dashboard — dark theme matching the mockup */

:root {
  --bg: #0b0e14;
  --panel: #12161f;
  --panel-2: #171c26;
  --panel-3: #1c2230;
  --border: #232a36;
  --border-soft: #1b212c;
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --faint: #69727f;
  --accent: #56c2e6;
  --good: #59d499;
  --warn: #f0a35e;
  --danger: #f2688f;
  --a-coding: #6ea8fe;
  --a-testing: #59d499;
  --a-review: #c792ea;
  --a-debugging: #f0a35e;
  --a-build: #4fd1c5;
  --a-docs: #f2c94c;
  --a-other: #69727f;
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -18px rgba(0,0,0,.65);
  --sb: 236px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* Layout */
.app { display: grid; grid-template-columns: var(--sb) 1fr; min-height: 100vh; }

/* Sidebar */
.sb {
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #0e121b, #0b0e14);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 4px 8px 16px;
}

.brand .dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(150deg, var(--accent), #3a7fb0);
  box-shadow: 0 0 0 1px rgba(86,194,230,.35), 0 4px 14px -4px rgba(86,194,230,.5);
}

.navlbl {
  color: var(--faint);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 14px 8px 6px;
}

.nav {
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.nav:hover { background: var(--panel-2); color: var(--text); }
.nav.on { background: var(--panel-3); color: var(--text); }
.nav.on svg { color: var(--accent); }
.nav svg { width: 16px; height: 16px; opacity: 0.9; flex: none; }

.sb .foot {
  margin-top: auto;
  color: var(--faint);
  font-size: 11px;
  padding: 10px 8px;
  border-top: 1px solid var(--border-soft);
}

/* Main */
main { min-width: 0; padding: 0 0 60px; }

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: rgba(11,14,20,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.bar h1 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.bar .crumb { color: var(--faint); font-weight: 500; font-size: 13px; }
.bar .spacer { flex: 1; }

.ctrl { display: flex; align-items: center; gap: 8px; }

.seg {
  display: inline-flex;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 2px;
}

.seg button {
  all: unset;
  cursor: pointer;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 6px;
  color: var(--muted);
}

.seg button.on {
  background: var(--panel-3);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.sel {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 12.5px;
  padding: 6px 10px;
  font-family: inherit;
}

.page { padding: 24px 28px; }

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad { padding: 18px; }

.grid { display: grid; gap: 16px; }
.hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hd h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.subtle { color: var(--faint); font-size: 12px; }

/* KPI row */
.kpirow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.kpi { padding: 16px 20px; border-left: 1px solid var(--border-soft); position: relative; }
.kpi:first-child { border-left: 0; }
.kpi .u { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.kpi .n {
  font-size: 26px;
  font-weight: 650;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.kpi .d { font-size: 12px; margin-top: 6px; color: var(--muted); }
.up { color: var(--good); }
.down { color: var(--danger); }

/* Charts */
.chart { width: 100%; display: block; }
.glabel { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; margin-top: 8px; }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 9px 16px; }
.lg { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lg b { color: var(--text); font-weight: 600; font-family: var(--font-mono); }

/* Tables */
table.t { width: 100%; border-collapse: collapse; }
table.t th {
  text-align: left;
  font-size: 10.5px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--border-soft); font-size: 13px; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: var(--panel-2); }

td.r, th.r { text-align: right; }

.who { display: flex; align-items: center; gap: 10px; }
.av {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0b0e14;
  background: var(--accent);
}
.who .nm b { font-weight: 600; }
.who .nm span { display: block; color: var(--faint); font-size: 11px; }

.tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--muted);
}

.mini_abar {
  display: inline-flex;
  height: 8px;
  width: 120px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel-3);
  vertical-align: middle;
}
.mini_abar span { height: 100%; }

.chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--panel-2);
}

.warnnote {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  background: rgba(240,163,94,.07);
  border: 1px solid rgba(240,163,94,.2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 2px;
}
.warnnote b { color: #f3bd8b; }

.sample {
  font-size: 10.5px;
  color: var(--faint);
  border: 1px dashed var(--border);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Identity/membership board */
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }

.btn {
  all: unset;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel-2);
}
.btn:hover { background: var(--panel-3); border-color: #2c3543; }
.btn.primary {
  background: linear-gradient(150deg, var(--accent), #3a7fb0);
  color: #04222e;
  border-color: transparent;
  font-weight: 600;
}

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }

.col {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-height: 150px;
  transition: 0.12s;
}
.col.unassigned { border-style: dashed; border-color: #39404f; background: rgba(105,114,127,.06); }
.col h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.col h3 .dotc { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.col h3 .cnt { margin-left: auto; color: var(--faint); font-weight: 500; font-size: 11px; font-family: var(--font-mono); }
.col.drop { outline: 2px dashed var(--accent); outline-offset: -3px; background: var(--panel-3); }

.pcard {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 9px;
  margin-bottom: 8px;
  cursor: grab;
  font-size: 12.5px;
}
.pcard:active { cursor: grabbing; }
.pcard.dragging { opacity: 0.35; }
.pcard .av { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }

/* Flash messages */
.flash {
  padding: 12px 28px;
  font-size: 13px;
}
.flash.notice { background: rgba(89,212,153,.1); color: var(--good); }
.flash.alert { background: rgba(242,104,143,.1); color: var(--danger); }

/* No data placeholder */
.no_data {
  color: var(--faint);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sb { display: none; }
  .kpirow { grid-template-columns: repeat(2, 1fr); }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
