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

:root {
  --green-dark: #1a4d2e;
  --green-mid: #2d7a4f;
  --green-light: #4caf78;
  --green-pale: #e8f5ee;
  --green-border: #c8e6d4;
  --white: #ffffff;
  --off-white: #f7faf8;
  --text-dark: #0f2d1c;
  --text-mid: #3a5c47;
  --text-muted: #7a9b87;
  --gold: #c9a84c;
  --shadow: 0 4px 24px rgba(26, 77, 46, 0.10);
  --shadow-lg: 0 8px 40px rgba(26, 77, 46, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  background: var(--green-dark);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-sub {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

nav a.btn-nav {
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 600;
}

nav a.btn-nav:hover {
  background: #e0bc6a;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  padding: 80px 2rem 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  color: rgba(255,255,255,0.80);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.22s;
}

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

.btn-primary:hover {
  background: #e0bc6a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-green {
  background: var(--green-dark);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
  border-radius: 7px;
}

/* ── CARDS / FEATURES ── */
.section {
  padding: 70px 2rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 0.95rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--green-border);
  transition: transform 0.22s, box-shadow 0.22s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--green-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── FORM ── */
.form-page {
  min-height: calc(100vh - 72px);
  padding: 60px 2rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--green-border);
}

.form-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 36px 40px;
  text-align: center;
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.form-header p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.form-body {
  padding: 40px;
}

.form-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-pale);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
}

label span.req { color: #e53e3e; margin-left: 2px; }

input, select, textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  padding: 11px 14px;
  border: 1.5px solid var(--green-border);
  border-radius: 9px;
  background: var(--off-white);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,122,79,0.12);
  background: var(--white);
}

textarea { resize: vertical; min-height: 100px; }

.submit-row {
  margin-top: 28px;
  text-align: center;
}

.submit-row .btn {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 1rem;
}

/* ── CONFIRMATION ── */
.confirm-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 2rem;
}

.confirm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--green-border);
}

.confirm-top {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 48px 40px 36px;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
}

.confirm-top h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.confirm-top p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.confirm-ref {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 24px;
  border-radius: 8px;
  margin-top: 16px;
  letter-spacing: 0.05em;
}

.confirm-body {
  padding: 36px 40px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--green-pale);
  gap: 16px;
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.detail-val {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  text-align: right;
}

.type-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--green-pale);
  color: var(--green-dark);
}

/* ── ADMIN ── */
.admin-page {
  min-height: calc(100vh - 72px);
  padding: 40px 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h2 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  font-size: 1.7rem;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow);
}

.filter-bar input, .filter-bar select {
  width: auto;
  margin-bottom: 0;
  padding: 9px 14px;
  font-size: 0.88rem;
}

.filter-bar input { min-width: 220px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--green-dark);
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--green-border);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead {
  background: var(--green-dark);
  color: var(--white);
}

thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr {
  border-bottom: 1px solid var(--green-pale);
  transition: background 0.15s;
}

tbody tr:hover { background: var(--green-pale); }
tbody tr:last-child { border-bottom: none; }

td {
  padding: 14px 16px;
  color: var(--text-dark);
  vertical-align: middle;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.btn-approve { background: #d1fae5; color: #065f46; }
.btn-approve:hover { background: #a7f3d0; }
.btn-cancel { background: #fee2e2; color: #991b1b; }
.btn-cancel:hover { background: #fecaca; }
.btn-delete { background: #f3f4f6; color: #374151; }
.btn-delete:hover { background: #e5e7eb; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 24px 2rem;
  font-size: 0.85rem;
  margin-top: auto;
}

footer span { color: var(--gold); }

/* ── ALERT ── */
.alert {
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}

.alert.show { display: block; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-body { padding: 24px 20px; }
  .form-header { padding: 28px 20px; }
  .confirm-body { padding: 24px 20px; }
  nav a:not(.btn-nav) { display: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar input { min-width: auto; width: 100%; }
  thead { display: none; }
  tbody tr { display: block; padding: 12px 16px; }
  td { display: flex; justify-content: space-between; padding: 6px 0; border: none; }
  td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); font-size: 0.78rem; }
}
