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

@font-face {
  font-family: "DOS";
  src: url("/assets/Web437_DOS-V_re_ANK24-3b160530.woff") format("woff");
}

:root {
  font-size: 18px;
}

* {
  image-rendering: pixelated;
}

body {
  font-family: "DOS", monospace;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

body > header {
  text-align: left;
}

header nav {
  font-size: 1rem;
}

header nav a {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

header nav a:hover {
  text-decoration: underline;
}

.title-link {
  text-decoration: none !important;
  color: inherit !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font: inherit !important;
  cursor: pointer;
}

.title-link:hover {
  text-decoration: none !important;
  opacity: 0.8;
}

nav[aria-label="breadcrumb"] {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light, #666);
}

nav[aria-label="breadcrumb"] a {
  text-decoration: none;
  color: var(--accent, #0066cc);
}

nav[aria-label="breadcrumb"] a:hover {
  text-decoration: underline;
}

main {
  padding: 0;
}

meter {
  width: 100%;
}

table {
  white-space: nowrap;
}

section table {
  font-size: 0.8rem;
}

td code {
  display: inline-block;
  vertical-align: bottom;
}

td code[data-truncate] {
  max-width: 25vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

td code[hidden] {
  display: none;
}

.pagy {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.pagy a {
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
}

.pagy a:hover:not([aria-disabled]) {
  background: var(--accent, #0066cc);
  color: white;
}

.pagy a[aria-current="page"] {
  background: var(--accent, #0066cc);
  color: white;
}

.pagy a[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

.login-card {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .login-card {
    background: var(--bg, #2b2b2b);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }
}
