/* Nimbus Telecom — shared styles for the mock portal.
 *
 * Pure CSS, no preprocessor. The visual language mirrors the Nimbus
 * Telecom brand page in the agent-hub-sandbox project (xpi/sandbox):
 * a light #f4f6fb page, the system font stack, a blue→violet brand
 * gradient (#5b8cff → #8b5cf6), rounded white cards with soft shadows,
 * and gradient primary buttons. Class + custom-property names are kept
 * stable so the four HTML pages (which reference vars inline) don't
 * need to change when the palette does. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand — blue→violet gradient, matching the sandbox brand page. */
  --brand: #5b8cff;
  --brand-2: #8b5cf6;
  --brand-dark: #4f46e5; /* stronger indigo for links + text on white */

  /* Ink + surfaces — sandbox brand-page tokens. */
  --ink: #0f1729;
  --ink-soft: #54607a;
  --ink-mute: #94a3bd;
  --surface: #ffffff;
  --canvas: #f4f6fb;
  --border: #e6eaf2;
  --border-soft: #eef1f7;

  --positive: #1f7a4d;
  --warn: #b5791a;
  --warn-bg: #fff4e3;

  --shadow: 0 1px 2px rgba(15, 23, 41, 0.04),
    0 10px 30px -22px rgba(15, 23, 41, 0.5);
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- Layout primitives --- */

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 14px 32px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: -0.01em;
}

.brand-mark {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 8px;
  box-shadow: 0 6px 16px -8px rgba(91, 140, 255, 0.8);
  color: white;
  display: inline-block;
  font-weight: 800;
  padding: 4px 8px;
}

.topnav {
  display: flex;
  gap: 24px;
}

.topnav a {
  color: var(--ink-soft);
  font-size: 14px;
}

.topnav a.active {
  color: var(--ink);
  font-weight: 600;
}

.user-chip {
  align-items: center;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 13px;
  gap: 10px;
  padding: 6px 14px;
}

.user-chip-action {
  border-left: 1px solid var(--border);
  color: var(--ink-mute);
  font-weight: 600;
  padding-left: 10px;
}

.user-chip-action:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 920px;
  padding: 32px 24px 64px;
}

main.narrow {
  max-width: 460px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.card + .card {
  margin-top: 16px;
}

h1 {
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

h2 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.lede {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 16px;
}

/* --- Forms --- */

.field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  color: var(--ink-soft);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.field-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
  outline: none;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row > .field {
  flex: 1;
}

.field-hint {
  color: var(--ink-mute);
  font-size: 12px;
  margin-top: 4px;
}

.checkbox {
  align-items: flex-start;
  display: flex;
  font-size: 13px;
  gap: 8px;
  margin: 12px 0;
}

.checkbox input {
  accent-color: var(--brand);
  margin-top: 3px;
}

.checkbox label {
  color: var(--ink-soft);
  line-height: 1.4;
}

.fine-print {
  color: var(--ink-mute);
  font-size: 11px;
}

/* --- Login page --- *
 * Two tiny additions only used by index.html. Anything reusable
 * would have been added to a primitive instead. */

.login-aux {
  align-items: center;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.login-aux .checkbox {
  margin: 0;
}

/* Out-of-character note under the sign-in card. Quiet visual weight
 * (neutral surface, no brand color) so it reads as an annotation
 * rather than a real piece of the portal UI. */
.demo-banner {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 16px;
  padding: 14px 18px;
}

.demo-banner strong {
  color: var(--ink);
}

/* --- Buttons --- */

.btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  text-align: center;
  transition: background 0.12s ease, border-color 0.12s ease,
    filter 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  background: var(--canvas);
  border-color: var(--ink-mute);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  box-shadow: 0 10px 24px -14px rgba(79, 70, 229, 0.9);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  filter: brightness(1.05);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn + .btn {
  margin-left: 8px;
}

/* --- Bill summary --- */

.bill-row {
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}
.bill-row:last-child {
  border-bottom: none;
}

.bill-row strong {
  font-weight: 700;
}

.bill-total {
  align-items: center;
  border-top: 2px solid var(--ink);
  display: flex;
  font-size: 18px;
  font-weight: 700;
  justify-content: space-between;
  padding: 14px 0 4px;
}

.amount-due {
  background: linear-gradient(135deg, #eef2ff, #f3ecff);
  border: 1px solid #dfe3ff;
  border-radius: 12px;
  margin: 16px 0;
  padding: 18px 20px;
}

.amount-due-label {
  color: var(--ink-soft);
  font-size: 13px;
}

.amount-due-value {
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 800;
}

.muted {
  color: var(--ink-mute);
  font-size: 13px;
}

.callout-warn {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  margin: 14px 0;
  padding: 10px 14px;
}

footer {
  color: var(--ink-mute);
  font-size: 12px;
  margin: 32px auto 24px;
  max-width: 920px;
  padding: 0 24px;
  text-align: center;
}

footer a {
  color: var(--ink-mute);
  margin: 0 8px;
}
