/* ROOT LAYOUT */
.fw-dashboard-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: #111827;
}

/* HERO HEADER */
.fw-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(
      120deg,
      rgba(249, 250, 251, 0.94),
      rgba(248, 248, 245, 0.96)
    ),
    #f9fafb;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.75rem;
  position: relative;
}

.fw-dash-hero::after {
  content: "";
  position: absolute;
  inset-inline: 1.25rem;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9b35c, #b8892a);
  opacity: 0.75;
}

/* AVATAR */
.fw-dash-hero-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.fw-dash-avatar-btn {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.fw-dash-avatar-ring {
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, #d9b35c, #b8892a);
  display: inline-flex;
}

.fw-dash-avatar-img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  background: #e5e7eb;
}

/* NAME + MINI STATS */
.fw-dash-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fw-dash-hero-name {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  margin: 0;
  color: #111827;
}

.fw-dash-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.fw-dash-hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fw-dash-hero-stat-item .stat-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.fw-dash-hero-stat-item .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

/* TABS */
.fw-dash-tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(243, 244, 246, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.06);
  margin-bottom: 1.75rem;
}

.fw-dash-tab {
  position: relative;
  border: none;
  background: transparent;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.fw-dash-tab.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}

/* PANELS */
.fw-dash-panel {
  display: none;
}

.fw-dash-panel.is-active {
  display: block;
}

/* GRID LAYOUTS */
.fw-dash-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 1.25rem;
}

.fw-dash-card--wide {
  grid-column: 1 / -1;
}

.fw-dash-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr);
  gap: 1.25rem;
}

/* CARDS */
.fw-dash-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  padding: 1rem 1.1rem 1.1rem;
}

.fw-dash-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.65rem;
}

.fw-dash-card-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.fw-dash-card-caption {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
}

.fw-dash-card-body {
  font-size: 0.9rem;
}

/* LISTS */
.fw-dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fw-dash-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(209, 213, 219, 0.7);
}

.fw-dash-list-item:last-child {
  border-bottom: none;
}

.fw-dash-list-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fw-dash-list-title {
  font-size: 0.92rem;
  font-weight: 500;
}

.fw-dash-list-title a {
  text-decoration: none;
  color: inherit;
}

.fw-dash-list-title a:hover {
  text-decoration: underline;
}

.fw-dash-list-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

/* PILLS */
.fw-dash-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(17, 24, 39, 0.05);
  background: #f9fafb;
  color: #4b5563;
  white-space: nowrap;
}

.fw-dash-pill--upcoming {
  background: #ecfdf5;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.16);
}

.fw-dash-pill--past {
  background: #f3f4f6;
  color: #4b5563;
  border-color: rgba(75, 85, 99, 0.18);
}

/* HELPER TEXT */
.muted {
  color: #6b7280;
  font-size: 0.86rem;
}

.loading {
  font-size: 0.86rem;
}

.fw-dash-empty {
  font-size: 0.86rem;
  color: #6b7280;
}

/* LINK IN STATS PANEL */
.fw-dash-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: #b8892a;
  text-decoration: none;
}

.fw-dash-link:hover {
  text-decoration: underline;
}

/* CTA BUTTONS */
.fw-dash-hero-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.fw-dash-cta-btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  color: #111827;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: 0.18s ease;
}

.fw-dash-cta-btn:hover {
  background: #f9fafb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09);
}

.fw-dash-cta-gold {
  background: linear-gradient(90deg, #d9b35c, #b8892a);
  border: none;
  color: white;
  box-shadow: 0 6px 18px rgba(184, 137, 42, 0.3);
}

.fw-dash-cta-gold:hover {
  filter: brightness(1.05);
}

/* MOBILE */
@media (max-width: 900px) {
  .fw-dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .fw-dash-hero-cta {
    margin-top: 1rem;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .fw-dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .fw-dash-overview-grid,
  .fw-dash-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .fw-dashboard-page {
    padding-inline: 1rem;
  }

  .fw-dash-hero {
    padding: 0.9rem 1rem;
  }

  .fw-dash-avatar-img {
    width: 60px;
    height: 60px;
  }

  .fw-dash-hero-name {
    font-size: 1.35rem;
  }

  .fw-dash-tabs {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
}
