/* Dashboard — Blazor Home.razor parity */
.dash-wrap { --dash-radius: 14px; --dash-shadow: 0 4px 24px rgba(15, 23, 42, 0.06); }

.dash-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #0ea5e9 100%);
  border-radius: var(--dash-radius);
  padding: 1.75rem 2rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.dash-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -5%;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.dash-hero h1 { font-size: 1.65rem; font-weight: 700; margin-bottom: 0.35rem; }

.dash-filter-bar {
  background: #fff;
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dash-stat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1.25rem 1.35rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.dash-stat-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--dash-radius) var(--dash-radius) 0 0;
}

.dash-stat-card.accent-blue::after { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.dash-stat-card.accent-rose::after { background: linear-gradient(90deg, #e11d48, #fb7185); }
.dash-stat-card.accent-emerald::after { background: linear-gradient(90deg, #059669, #34d399); }
.dash-stat-card.accent-sky::after { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.dash-stat-card.accent-violet::after { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.dash-stat-card.accent-amber::after { background: linear-gradient(90deg, #d97706, #fbbf24); }
.dash-stat-card.accent-red::after { background: linear-gradient(90deg, #dc2626, #f87171); }
.dash-stat-card.accent-teal::after { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.dash-stat-card.accent-orange::after { background: linear-gradient(90deg, #ea580c, #fb923c); }

.dash-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #64748b;
}

.dash-stat-value { font-size: 1.55rem; font-weight: 700; margin: 0.4rem 0 0.25rem; line-height: 1.2; }
.dash-stat-meta { font-size: 0.78rem; color: #94a3b8; }

.dash-stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.dash-stat-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-stat-card:hover .dash-stat-footer { color: #1d4ed8; }

.dash-panel {
  background: #fff;
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.dash-panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: linear-gradient(to bottom, #fafbfc, #fff);
}

.dash-panel-title { font-size: 1rem; font-weight: 600; margin: 0; color: #1e293b; }

.dash-report-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #334155;
  border: 1px solid #f1f5f9;
  background: #fafbfc;
  transition: all 0.18s ease;
  height: 100%;
}

.dash-report-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateX(2px);
}

.dash-report-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.dash-report-link span { font-size: 0.85rem; font-weight: 500; line-height: 1.3; }

.dash-quick-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.dash-hero .dash-quick-nav a {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s;
}

.dash-hero .dash-quick-nav a:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.dash-quick-nav-dark a {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s;
}

.dash-quick-nav-dark a:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.transaction-tab .nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  border: none !important;
  background: transparent;
  width: 100%;
}

.transaction-tab .nav-link.active {
  color: #2563eb !important;
  border-bottom: 2px solid #2563eb !important;
  background: transparent !important;
}

#salesPurchaseChart { width: 100% !important; height: 320px !important; }

.sales-legend, .purchase-legend {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.sales-legend { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.purchase-legend { background: linear-gradient(135deg, #e11d48, #fb7185); }

.graph-sets ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 1rem; }
.graph-sets ul li { display: flex; align-items: center; font-size: 0.82rem; color: #64748b; }

.dash-view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.dash-view-all:hover { color: #1d4ed8; text-decoration: underline; }
