/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #1f2937;
  background: #f8fafc;
}

body {
  margin: 0;
  background: #f8fafc;
}

a {
  color: #1d4ed8;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  padding: 1rem 2rem;

  background: #111827;
  color: white;
}

.main-nav a {
  color: white;
  text-decoration: none;
}

.main-nav__brand {
  font-size: 1.1rem;
  font-weight: 700;
}

.main-nav__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;

  margin-bottom: 1.5rem;
}

.actions,
.page-actions,
.report-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.card {
  margin-bottom: 1.5rem;
  padding: 1.5rem;

  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.series-grid,
.feature-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.series-card,
.feature-card {
  padding: 1rem;

  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;

  color: inherit;
  text-decoration: none;
}

.feature-card:hover {
  border-color: #2563eb;
}

.feature-card span,
.muted {
  color: #6b7280;
}

.button,
input[type="submit"],
button {
  display: inline-block;

  padding: 0.55rem 0.9rem;

  border: 1px solid #d1d5db;
  border-radius: 0.375rem;

  background: white;
  color: #111827;

  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: white;
}

.button--danger {
  border-color: #b91c1c;
  background: #b91c1c;
  color: white;
}

.nav-button {
  border-color: #374151;
  background: #374151;
  color: white;
}

.flash {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
}

.flash--notice {
  background: #ecfdf5;
}

.flash--alert {
  background: #fef2f2;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f4f6;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: min(100%, 600px);
  box-sizing: border-box;

  padding: 0.55rem;

  border: 1px solid #d1d5db;
  border-radius: 0.375rem;

  font: inherit;
}

textarea {
  min-height: 120px;
}

form > div {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  background: #f9fafb;
  border-radius: 0.5rem;
}

@media (max-width: 700px) {
  .main-nav,
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav__links {
    flex-wrap: wrap;
  }
}