/* Aviatory · Control: what the panel's own options cannot do. Plain CSS, no build step.
   Registered in AdminPanelProvider (->assets) and published by `php artisan filament:assets`.
   Only Filament's class hooks (.fi-…) and its colour variables are used.
   (Not in resources/css: that folder would mean a build step, and a test forbids it.) */

/* Dark theme: the site's navy instead of Filament's neutral grey. Filament paints the page with
   --gray-950 and cards, sidebar and inputs with --gray-900 / --gray-800. */
html.dark {
  --gray-950: #0c2031;
  --gray-900: #102c42;
  --gray-800: #17354d;
  --gray-700: #24465f;
}

/* The mark: the site's logo. The file is white. */
.av-brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.av-brand-logo {
  height: 100%;
  width: auto;
  filter: brightness(0); /* light theme: the white logo, drawn dark */
}
html.dark .av-brand-logo {
  filter: none;
}

/* The sign-in pages: the site's faint drawing-sheet grid behind the card. */
.fi-simple-layout {
  background-image:
    linear-gradient(rgba(127, 127, 127, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 127, 127, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* The emailed sign-in code: six equal boxes across the card (Filament's sit to the left). */
.fi-one-time-code-input-ctn {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.625rem;
  width: 100%;
}
.fi-one-time-code-input-digit {
  width: 100%;
  height: 3.25rem;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 600;
}

/* The media library: small thumbnails in the list, the image at a reading size on its page. */
.av-media-thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.375rem;
}
.av-media-preview img {
  max-width: 100%;
  max-height: 420px;
  height: auto;
  border-radius: 0.5rem;
}
.av-media-preview figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* The code block's code field: the site's mono face, no wrapping. */
.av-code-input {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  white-space: pre;
}

/* Email texts: the preview of an email, in a frame so its own styles stay its own. */
.av-mail-subject {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.av-mail-preview {
  display: block;
  width: 100%;
  height: 70vh;
  border: 0;
  border-radius: 0.5rem;
  background: #f4f6f8;
}

/* The opening page's next-event card. */
.av-next-event {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.av-next-event-title {
  font-size: 1.125rem;
  font-weight: 600;
}
.av-next-event-when,
.av-next-event-note {
  font-size: 0.875rem;
  opacity: 0.75;
}
.av-next-event-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.av-next-event-number {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.75rem;
  font-weight: 700;
}

/* A new API key, shown once (ApiKeys → New key): one click selects it whole. */
.aviatory-api-key {
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 0.25);
  font-family: var(--mono-font-family, monospace);
  user-select: all;
  word-break: break-all;
}
