:root {
  --forest: #102b22;
  --green: #173d2e;
  --lime: #dafa67;
  --ink: #172920;
  --muted: #51655a;
  --paper: #f5f7f3;
  --line: #e0e7df;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* TOP NAVBAR (Identical to mockup) */
.top-nav-bar {
  background: var(--forest);
  color: #e1ece5;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  color: #d1dfd6;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
  background: transparent;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-pill.active {
  background: var(--lime);
  color: var(--forest);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(218, 250, 103, 0.25);
}

/* SUB HEADER */
.sub-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.cat-badge {
  display: inline-block;
  background: #edf4e8;
  color: var(--forest);
  border: 1px solid #d2e2cd;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

/* MAIN CONTENT CONTAINER */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* HERO BANNER (from mockup) */
.hero-card {
  min-height: 290px;
  border-radius: 20px;
  background: linear-gradient(90deg, #102b22 0%, #102b22fa 45%, #102b2255 100%),
              url('/court.jpg') center right / cover no-repeat,
              var(--green);
  color: var(--white);
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-shadow: 0 12px 36px rgba(16, 43, 34, 0.12);
  margin-bottom: 24px;
}

.hero-eyebrow {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-title em {
  font-style: normal;
  color: var(--lime);
}

.hero-desc {
  font-size: 16px;
  color: #e0ede6;
  max-width: 480px;
  margin: 14px 0 24px;
  line-height: 1.5;
}

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

.btn-lime {
  background: var(--lime);
  color: var(--forest);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(218, 250, 103, 0.3);
}

.btn-lime:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* STAT / METRIC CARDS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
  box-shadow: 0 6px 18px rgba(16, 43, 34, 0.06);
}

.metric-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #edf5ea;
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.metric-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}

.metric-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* SECTION CARDS & TABLES */
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ROLE SWITCHER PILL */
.role-switch-container {
  display: inline-flex;
  background: #eef3eb;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.role-btn {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  transition: all 0.15s ease;
}

.role-btn.active {
  background: var(--forest);
  color: var(--lime);
}

/* SCHEDULE TABLE (Fitsi Pilot) */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.schedule-table th {
  background: #f7faf5;
  color: var(--muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.schedule-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.match-box {
  background: #f4f8f2;
  border: 1px solid #dbe6d7;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.match-box:hover {
  background: #e7f2e3;
  border-color: #bad3b4;
}

.match-box.highlight {
  background: #f5fddb;
  border: 1.5px solid var(--lime);
}
