/* ── TRYDR Commute Hub / Dashboard Styles ────────────────────────── */

.dashboard-body {
  background: #0E0E0E;
  color: #EDEDED;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dashboard Header */
.dash-nav {
  background: #141414;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dash-brand-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-brand-logo span.lime {
  color: #C8F11D;
}

.dash-badge {
  background: rgba(200, 241, 29, 0.12);
  color: #C8F11D;
  border: 1px solid rgba(200, 241, 29, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}

.dash-nav-links {
  display: flex;
  gap: 8px;
}

.dash-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dash-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.dash-tab-btn.is-active {
  color: #171717;
  background: #C8F11D;
  font-weight: 700;
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Dashboard Container */
.dash-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

/* Hero Welcome Banner */
.dash-banner {
  background: linear-gradient(135deg, #1C1C1C 0%, #151515 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.dash-banner-left h1 {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.dash-banner-left p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

/* Stat Grid */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.dash-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 241, 29, 0.3);
}

.dash-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}

.dash-stat-value.lime {
  color: #C8F11D;
}

/* Main Section Card */
.dash-section-card {
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 28px;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.dash-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Routes List */
.dash-routes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-route-item {
  background: #1F1F1F;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.dash-route-item:hover {
  border-color: rgba(200, 241, 29, 0.25);
  background: #232323;
}

.dash-route-path {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.dash-route-arrow {
  color: #C8F11D;
}

.dash-route-meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.dash-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.dash-tag-offer {
  background: rgba(200, 241, 29, 0.15);
  color: #C8F11D;
}

.dash-tag-catch {
  background: rgba(66, 133, 244, 0.15);
  color: #70A7FF;
}

/* Match Radar Cards */
.dash-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.dash-radar-card {
  background: #1C1C1C;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.dash-radar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 241, 29, 0.35);
}

.dash-radar-commuter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-radar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 241, 29, 0.2);
  color: #C8F11D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

/* Table for Cost-Share / Payments */
.dash-table-wrap {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.dash-table th {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

.dash-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 900px) {
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dash-stats-grid {
    grid-template-columns: 1fr;
  }
  .dash-nav {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .dash-nav-links {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .dash-route-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
