.admin-body {
  min-width: 320px;
}

.admin-shell {
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(111, 132, 168, 0.14);
  background: rgba(243, 245, 248, 0.9);
  backdrop-filter: blur(18px);
}

.admin-topbar__inner {
  max-width: var(--content-width);
  min-height: 80px;
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
}

.admin-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.admin-brand:hover {
  color: var(--text);
}

.admin-brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d2a46 0%, #2f7de1 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.admin-brand__copy {
  display: flex;
  flex-direction: column;
}

.admin-brand__eyebrow {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-brand__title {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.admin-nav {
  padding: 5px;
  display: flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-nav__link {
  padding: 10px 15px;
  border-radius: 11px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  transition: color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.admin-nav__link:hover {
  color: var(--accent-strong);
}

.admin-nav__link.is-active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 5px 14px rgba(35, 49, 77, 0.09);
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-identity {
  max-width: 220px;
  overflow: hidden;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 30px 28px 56px;
}

.admin-body .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.admin-flash {
  margin-bottom: 18px;
  padding: 14px 17px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 700;
}

.admin-flash--notice {
  border-color: rgba(28, 163, 114, 0.2);
  background: rgba(28, 163, 114, 0.1);
  color: #167a55;
}

.admin-flash--alert {
  border-color: rgba(201, 60, 74, 0.2);
  background: rgba(201, 60, 74, 0.09);
  color: #a23542;
}

.admin-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-page__eyebrow {
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-page__title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.admin-page__lead {
  max-width: 68ch;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.admin-page__actions,
.admin-form__actions,
.admin-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.admin-card--padded {
  padding: 24px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(111, 132, 168, 0.12);
  vertical-align: middle;
}

.admin-table th {
  background: rgba(238, 243, 248, 0.68);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: rgba(232, 241, 255, 0.3);
}

.admin-table__primary {
  color: var(--text);
  font-weight: 800;
}

.admin-table__secondary {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.admin-table__actions {
  width: 1%;
  white-space: nowrap;
}

.admin-muted {
  color: var(--text-muted);
}

.admin-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
}

.admin-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-badge--positive {
  border-color: rgba(28, 163, 114, 0.22);
  background: rgba(28, 163, 114, 0.1);
  color: #167a55;
}

.admin-badge--accent {
  border-color: rgba(47, 125, 225, 0.2);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.admin-empty {
  padding: 54px 24px;
  display: grid;
  justify-items: center;
  gap: 13px;
  color: var(--text-muted);
  text-align: center;
}

.admin-empty h2 {
  color: var(--text);
  font-size: 24px;
}

.admin-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-section__title {
  font-size: 22px;
}

.admin-section__description {
  max-width: 72ch;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--border);
}

.admin-detail {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-detail--wide {
  grid-column: 1 / -1;
}

.admin-detail__label {
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-detail__value {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-token {
  display: block;
  padding: 13px 15px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(47, 125, 225, 0.18);
  border-radius: 13px;
  background: rgba(232, 241, 255, 0.58);
  color: #1d416e;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  user-select: all;
}

.admin-note {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 13px 13px 0;
  background: rgba(232, 241, 255, 0.55);
  color: #375272;
  font-size: 13px;
  line-height: 1.55;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.admin-list__item {
  min-width: 0;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.admin-list__title {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list__meta {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.admin-form__errors {
  padding: 16px 18px;
  border: 1px solid rgba(201, 60, 74, 0.2);
  border-radius: 14px;
  background: rgba(201, 60, 74, 0.08);
  color: #8f303b;
}

.admin-form__errors strong {
  display: block;
  margin-bottom: 8px;
}

.admin-form__errors ul {
  margin: 0;
  padding-left: 20px;
}

.admin-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-field--wide {
  grid-column: 1 / -1;
}

.admin-field label,
.admin-field__label {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.admin-field__hint {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-field input[type="text"],
.admin-field input[type="number"],
.admin-field input[type="password"],
.admin-field input[type="time"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.admin-field input:focus {
  border-color: rgba(47, 125, 225, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 125, 225, 0.12);
}

.admin-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.admin-check {
  min-width: 0;
  min-height: 62px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.67);
  cursor: pointer;
}

.admin-check:hover {
  border-color: rgba(47, 125, 225, 0.34);
  background: rgba(232, 241, 255, 0.42);
}

.admin-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.admin-check__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-check__title {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-check__meta {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.admin-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-auth {
  min-height: calc(100vh - 170px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 40px;
}

.admin-auth__hero {
  padding: 28px;
}

.admin-auth__hero h1 {
  max-width: 10ch;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
}

.admin-auth__hero p {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.admin-auth__form {
  padding: 28px;
}

.admin-auth__form h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.admin-auth__form > p {
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .admin-topbar__inner {
    grid-template-columns: 1fr auto;
  }

  .admin-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .admin-nav__link {
    flex: 1;
    text-align: center;
  }

  .admin-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-topbar {
    position: static;
  }

  .admin-topbar__inner {
    padding: 14px 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-topbar__actions {
    grid-row: 2;
    justify-content: space-between;
  }

  .admin-nav {
    grid-row: 3;
  }

  .admin-main {
    padding: 24px 18px 42px;
  }

  .admin-page__head,
  .admin-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page__actions,
  .admin-page__actions .button {
    width: 100%;
  }

  .admin-page__actions .button {
    text-align: center;
  }

  .admin-detail-grid,
  .admin-form__grid,
  .admin-toggles {
    grid-template-columns: 1fr;
  }

  .admin-auth {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .admin-auth__hero {
    padding: 18px 4px;
  }
}
/*
 * 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.
 *


 */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --page-bg: #f3f5f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-muted: #eef3f8;
  --surface-strong: #e7edf5;
  --text: #23314d;
  --text-muted: #6a7894;
  --accent: #2f7de1;
  --accent-strong: #1b5cb2;
  --accent-soft: #e8f1ff;
  --border: rgba(111, 132, 168, 0.18);
  --border-strong: rgba(111, 132, 168, 0.32);
  --shadow-lg: 0 24px 60px rgba(35, 49, 77, 0.12);
  --shadow-md: 0 14px 32px rgba(35, 49, 77, 0.09);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(47, 125, 225, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(74, 160, 124, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f1f4f8 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background: transparent;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(243, 245, 248, 0.76);
  border-bottom: 1px solid rgba(111, 132, 168, 0.12);
}

.app-topbar__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d2a46 0%, #2f7de1 100%);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow-md);
}

.app-brand__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-brand__title {
  font-size: 18px;
  font-weight: 800;
}

.app-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-user-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.app-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px;
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(47, 125, 225, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}

.page-hero__eyebrow {
  margin-bottom: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 800;
}

.page-hero__title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.96;
  max-width: 12ch;
}

.page-hero__subtitle {
  margin-top: 12px;
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.surface-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.panel {
  padding: 24px;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.button--primary,
input[type="submit"] {
  background: linear-gradient(135deg, #2f7de1 0%, #1f63bd 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(47, 125, 225, 0.26);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--border);
}

.inline-form {
  display: inline;
}

input[type="text"],
input[type="number"],
input[type="date"] {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  padding: 0 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus {
  outline: none;
  border-color: rgba(47, 125, 225, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 125, 225, 0.12);
  background: #fff;
}

label {
  color: var(--text);
  font-weight: 700;
}

.eyebrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

@media (max-width: 1000px) {
  .app-topbar__inner,
  .app-main {
    padding: 18px;
  }

  .app-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 24px 22px;
  }
}
