/* Dashboard typography & layout */
:root {
  --dashboard-bg: #f3f6ff;
  --card-border: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

body {
  background: var(--dashboard-bg);
}

.dashboard-wrapper {
  padding: 1.5rem 0 3rem;
}

.dashboard-grid {
  gap: 1.25rem;
}

.stat-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.08rem 1.12rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 126px;
  position: relative;
  overflow: hidden;
  color: #0f172a;
}

.stat-card .title {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.22rem;
}

.stat-card .value {
  font-size: 2.05rem;
  font-weight: 600;
  color: #0f172a;
}

.stat-card .value small {
  font-size: 0.7em;
  color: #475569;
  font-weight: 500;
}

.stat-card .value .stat-subvalue {
  display: inline-block;
  margin-left: 0.2rem;
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.stat-card .icon {
  position: absolute;
  top: 0.82rem;
  right: 0.9rem;
  font-size: 2rem;
  opacity: 0.1;
}

.stat-card .subtitle {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 0.5rem;
}

.stat-card:hover {
  transform: translateY(-6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.15);
}

.stat-card.gradient-purple,
.stat-card.bg-gradient-1 {
  background: linear-gradient(135deg, #5b21b6, #2563eb);
  color: #fff;
}
.stat-card.gradient-purple .title,
.stat-card.bg-gradient-1 .title,
.stat-card.gradient-orange .title,
.stat-card.bg-gradient-2 .title,
.stat-card.gradient-teal .title,
.stat-card.bg-gradient-3 .title,
.stat-card.gradient-amber .title,
.stat-card.bg-gradient-4 .title {
  color: rgba(255, 255, 255, 0.85);
}
.stat-card.gradient-purple .value,
.stat-card.bg-gradient-1 .value,
.stat-card.gradient-orange .value,
.stat-card.bg-gradient-2 .value,
.stat-card.gradient-teal .value,
.stat-card.bg-gradient-3 .value,
.stat-card.gradient-amber .value,
.stat-card.bg-gradient-4 .value {
  color: #fff;
}
.stat-card.gradient-purple .value .stat-subvalue,
.stat-card.bg-gradient-1 .value .stat-subvalue,
.stat-card.gradient-orange .value .stat-subvalue,
.stat-card.bg-gradient-2 .value .stat-subvalue,
.stat-card.gradient-teal .value .stat-subvalue,
.stat-card.bg-gradient-3 .value .stat-subvalue,
.stat-card.gradient-amber .value .stat-subvalue,
.stat-card.bg-gradient-4 .value .stat-subvalue {
  color: rgba(255, 255, 255, 0.96);
}
.stat-card.gradient-purple .icon,
.stat-card.bg-gradient-1 .icon,
.stat-card.gradient-orange .icon,
.stat-card.bg-gradient-2 .icon,
.stat-card.gradient-teal .icon,
.stat-card.bg-gradient-3 .icon,
.stat-card.gradient-amber .icon,
.stat-card.bg-gradient-4 .icon {
  opacity: 0.6;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.4);
}

.stat-card.gradient-orange,
.stat-card.bg-gradient-2 {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
}

.stat-card.gradient-teal,
.stat-card.bg-gradient-3 {
  background: linear-gradient(135deg, #0ea5e9, #0f172a);
  color: #fff;
}

.stat-card.gradient-amber,
.stat-card.bg-gradient-4 {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}

.dashboard-hero-card {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.96));
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-hero-card .hero-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dashboard-hero-card .hero-header .eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #2563eb;
}

.dashboard-hero-card h3 {
  margin: 0;
  font-size: 1.9rem;
  color: #0f172a;
}

.dashboard-hero-card p {
  color: #475569;
  margin: 0;
}

.dashboard-hero-card .hero-actions {
  display: flex;
  gap: 0.75rem;
}

.dashboard-hero-card .btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  text-decoration: none;
}

.dashboard-hero-card .btn-solid {
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-hero-card .hero-metrics {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-metrics .metric {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  flex: 1;
}

.hero-metrics .metric strong {
  display: block;
  font-size: 1.1rem;
  color: #0f172a;
}

.workflow-card {
  min-height: auto;
  background: #fff;
}

.workflow-card .workflow-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
}

.workflow-card .workflow-value {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.4rem 0;
  color: #0f172a;
}

.workflow-card .workflow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
}

.workflow-card .workflow-item {
  flex: 1;
  min-width: 140px;
}

.workflow-card .workflow-item span {
  display: block;
  font-size: 0.8rem;
  color: #718096;
}

.workflow-card .workflow-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.75rem;
}

.workflow-card .workflow-actions a {
  text-decoration: none;
  font-weight: 600;
  color: #2563eb;
}

.reports-seller-progress {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reports-seller-progress .report-row {
  align-items: flex-start;
}

.reports-seller-progress .chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 240px;
  max-height: 320px;
  overflow: hidden;
}

.reports-seller-progress .chart-wrapper canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.recent-upload-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recent-upload-card .progress-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.recent-upload-card .progress-dots span {
  width: 8px;
  height: 8px;
  background: #dbeafe;
  border-radius: 50%;
}

.recent-upload-card .progress-dots span.active {
  background: #2563eb;
}

.welcome-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.92));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.welcome-banner h4 {
  font-size: 2rem;
  margin: 0;
  color: #0f172a;
}

.welcome-banner p {
  color: #475569;
}

.welcome-banner .welcome-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

main.container {
  width: 100%;
  max-width: 1200px;
  overflow-x: hidden;
}

@media (max-width: 991px) {
  .dashboard-hero-card .hero-actions {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  body {
    padding: 0 0.75rem;
  }
  .stat-card {
    padding: 1.2rem;
  }
}
