/* ═══════════════════════════════════════════════
   index.css — Dashboard page only
   Style.css handles all base styles and vars.
═══════════════════════════════════════════════ */

/* ── Main grid ───────────────────────────────── */
#main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
  animation: fadeUp 0.5s 0.3s ease both;
}

#recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#recent-list .empty-state { padding: 3rem 1rem; }

/* ── Endpoint rows ───────────────────────────── */
.endpoint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.endpoint-row:last-child { border-bottom: none; }

/* ── Pipeline stages ─────────────────────────── */
.pipeline-stages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Stat card hover glow ────────────────────── */
.stat-card {
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(245,166,35,0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
  pointer-events: none;
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover .stat-value { color: var(--amber); }

/* Staggered animation */
.stats-grid .stat-card { animation: fadeUp 0.5s ease both; }
.stats-grid .stat-card:nth-child(1) { animation-delay:.07s; }
.stats-grid .stat-card:nth-child(2) { animation-delay:.14s; }
.stats-grid .stat-card:nth-child(3) { animation-delay:.21s; }
.stats-grid .stat-card:nth-child(4) { animation-delay:.28s; }

/* ── Swagger link ────────────────────────────── */
.swagger-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.swagger-link .btn { width: 100%; }

/* ── Right column sticky ─────────────────────── */
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 72px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — DASHBOARD SPECIFIC
══════════════════════════════════════════════ */

@media (max-width: 900px) {
  #main-grid { grid-template-columns: 1fr; }

  .dashboard-right {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    gap: 0.875rem;
  }
  .dashboard-right::-webkit-scrollbar { display: none; }
  .dashboard-right .card { min-width: 280px; flex-shrink: 0; }
}

@media (max-width: 540px) {
  .dashboard-right {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .dashboard-right .card { min-width: unset; flex-shrink: unset; }
  .lecture-card:hover { transform: none; }
  .stat-card:hover { transform: none; box-shadow: none; }
}