/* ── Dashboard layout ─────────────────────────────────────────────────────── */
.dash-body { background: #f5f5f2; min-height: 100vh; }

.dash-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 56px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  padding-top: calc(56px + 40px);
  gap: 32px;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.dash-sidebar {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  position: sticky;
  top: 88px;
}

.dash-user-card {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.dash-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #c1f11d;
  color: #141414;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.dash-user-name {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #141414;
  margin-bottom: 4px;
}

.dash-user-email {
  font-size: .8125rem;
  font-weight: 500;
  color: #888;
}

/* ── Sidebar nav ──────────────────────────────────────────────────────────── */
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 700;
  color: #666;
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.dash-nav-link:hover { background: #f5f5f2; color: #141414; }
.dash-nav-link.active { background: #c1f11d; color: #141414; }
.dash-nav-logout { color: #888; }
.dash-nav-logout:hover { background: #fee2e2; color: #b91c1c; }

/* ── Main ─────────────────────────────────────────────────────────────────── */
.dash-main { min-width: 0; }

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

.dash-page-header h1 {
  font-size: 1.75rem;
  font-weight: 900;
  color: #141414;
}

/* ── Application cards ────────────────────────────────────────────────────── */
.dash-apps-list { display: flex; flex-direction: column; gap: 16px; }

.dash-app-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  border: 1px solid #eee;
  transition: box-shadow .2s;
}

.dash-app-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }

.dash-app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-app-name {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #141414;
  margin-bottom: 4px;
}

.dash-app-date {
  font-size: .8125rem;
  color: #888;
  font-weight: 500;
}

/* ── Status badge ─────────────────────────────────────────────────────────── */
.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-status--pending  { background: #fef3c7; color: #92400e; }
.dash-status--accepted { background: #dcfce7; color: #166534; }
.dash-status--rejected { background: #fee2e2; color: #b91c1c; }
.dash-status--waitlist { background: #e0e7ff; color: #3730a3; }

/* ── App details grid ─────────────────────────────────────────────────────── */
.dash-app-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.dash-detail-item label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
}

.dash-detail-item span {
  font-size: .9375rem;
  font-weight: 600;
  color: #141414;
}

/* AI score bar */
.dash-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.dash-score-label { font-size: .8125rem; font-weight: 600; color: #888; }
.dash-score-val   { font-size: .9375rem; font-weight: 900; color: #141414; min-width: 40px; }
.dash-score-bar-wrap { flex: 1; height: 6px; background: #eee; border-radius: 99px; overflow: hidden; }
.dash-score-bar { height: 100%; border-radius: 99px; background: #c1f11d; transition: width .4s; }

/* ── Empty / loading states ───────────────────────────────────────────────── */
.dash-loading { text-align: center; padding: 48px; color: #888; font-weight: 600; }

.dash-empty {
  background: #fff;
  border-radius: 16px;
  padding: 64px 32px;
  text-align: center;
  border: 1px dashed #ddd;
}
.dash-empty p { color: #888; font-size: .9375rem; margin-bottom: 20px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dash-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
  .dash-sidebar { position: static; }
  .dash-app-details { grid-template-columns: repeat(2, 1fr); }
}
