@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Lato:wght@400;500;600&display=swap');

:root {
  --green: #3d5b4b;
  --green-dark: #2e4236;
  --beige: #f3efe5;
  --sand: #efe6d6;
  --gold: #c49a6c;
  --text: #2b2b2b;
  --muted: #6c757d;
  --border: #ded6c8;
  --bg: #faf8f3;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.brand-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-nav .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links form {
  display: inline;
}

.nav-links a,
.nav-links form button {
  color: var(--muted);
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-links a.active {
  color: var(--green);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.15rem;
}

.btn,
button,
input[type='submit'] {
  font-family: inherit;
}

.btn-primary,
button.btn-primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  background: transparent;
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(61, 91, 75, 0.08);
}

.card-header {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--green);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
}

tbody tr:nth-child(odd) {
  background: var(--beige);
}

tbody tr:hover {
  background: rgba(196, 154, 108, 0.1);
}

.form-grid {
  display: grid;
  gap: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .form-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  font-weight: 600;
  color: var(--green);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='date'],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 91, 75, 0.15);
}

.alert {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #ffe7e1;
  border: 1px solid #ffc4b3;
  color: #873227;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--green);
  font-size: 0.8rem;
}

.table-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.status-pill {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(61, 91, 75, 0.12);
  color: var(--green);
  font-size: 0.85rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.nav-user strong {
  color: var(--green);
  font-weight: 600;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.table-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.login-wrapper {
  max-width: 430px;
  margin: 4rem auto;
}

.qr-box {
  text-align: center;
  background: var(--beige);
  padding: 1.5rem;
  border-radius: 16px;
}

.d-flex {
  display: flex;
}
