:root {
  --brand-dark: #2E1B28;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f5f5f5;
}

/* Top nav */
.app-nav {
  background: var(--brand-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.app-nav button {
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.app-nav button:hover {
  background: rgba(255,255,255,0.08);
}

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

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  border: 1px solid #eee;
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

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

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
}

input,
select,
button.primary {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

select {
  background-color: #fff;
}

button.primary {
  background: var(--brand-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

button.primary:hover {
  filter: brightness(1.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

tr:hover {
  background: #fafafa;
}

.muted {
  color: #777;
  font-size: 0.85rem;
}

.text-right {
  text-align: right;
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e0f2f1;
  color: #004d40;
  font-size: 0.75rem;
}

.btn-delete {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

/* Auth card */
#authContainer {
  max-width: 480px;
  margin: 2rem auto;
}

@media (max-width: 640px) {
  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .text-right {
    text-align: left;
    margin-top: 0.5rem;
  }
}

@media print {

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

  /* Hide things we don't want printed */
  .app-nav,
  #btnSignOut,
  #btnPrint,
  .btn-delete {
    display: none !important;
  }

  .card:nth-of-type(2) {
  display: none !important;
}

  /* Make cards flat (no shadows) */
  .card {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  main {
    margin: 0;
    padding: 0;
  }

  /* Table styling for print */
  table {
    font-size: 12px;
  }

  th {
    border-bottom: 2px solid #000;
  }

  td {
    border-bottom: 1px solid #ccc;
  }

  /* Optional: bigger title */
  h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
}