/*
 * 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 {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: #f5f6f8;
  color: #1f2430;
}

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

.app-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem;
  background: #1f2430;
}

.app-nav a {
  color: #d7dbe4;
  text-decoration: none;
  font-size: 0.95rem;
}

.app-nav a:hover {
  color: #fff;
}

.app-nav__brand {
  color: #fff;
  font-weight: 600;
  margin-right: 1rem;
}

.app-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.flash {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.flash--notice {
  background: #e2f6e9;
  color: #206a3c;
}

.flash--alert {
  background: #fde8e8;
  color: #922424;
}

.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.button {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  background: #2f5fdb;
  color: #fff;
  text-decoration: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.button:hover {
  background: #2549ad;
}

.button--danger {
  background: #c53030;
}

.button--danger:hover {
  background: #9b2626;
}

.button--secondary {
  background: #6b7280;
}

.button--secondary:hover {
  background: #52585f;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

th {
  background: #eef0f4;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

td.actions {
  display: flex;
  gap: 0.75rem;
  white-space: nowrap;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.field-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  row-gap: 0.5rem;
}

.field-list dt {
  font-weight: 600;
  color: #52585f;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #33394a;
}

.field input,
.field select {
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd1db;
  border-radius: 6px;
  font-size: 0.95rem;
}

.field-error {
  color: #c53030;
  font-size: 0.8rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eef0f4;
  font-size: 0.8rem;
  text-transform: capitalize;
}
