/*
 * 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.
 */

/* Space Mono for headings and nav brand */
h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Datatype', ui-monospace, monospace;
}

/* CRT scanline background */
body {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  background-attachment: fixed;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    );
  }
}

/* Dashboard desktop-only cells: hidden on mobile, table-cell on md+ */
.dashboard-desktop-cell {
  display: none;
}
@media (min-width: 768px) {
  .dashboard-desktop-cell {
    display: table-cell;
  }
  .dashboard-desktop-cell.column-hidden {
    display: none;
  }
}

/* Dashboard mobile-only cell: visible on mobile, hidden on md+ */
.dashboard-mobile-cell {
  display: table-cell;
}
@media (min-width: 768px) {
  .dashboard-mobile-cell {
    display: none;
  }
}

/* Dark mode overrides for form elements */
@media (prefers-color-scheme: dark) {
  input[type="date"],
  input[type="number"],
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="url"],
  textarea,
  select {
    color-scheme: dark;
  }

  /* Keyboard shortcut keys */
  kbd {
    background-color: rgb(55, 65, 81);
  }
}
