.dashboard-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(20, 184, 166, 0.9) 100%);
  color: #fff;
  border-radius: 28px;
}

.dashboard-hero .display-6 {
  font-size: clamp(1.9rem, 1.1vw + 1.65rem, 2.45rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.dashboard-hero .lead {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 52ch;
}

.dashboard-hero .badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.quick-action.card {
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.quick-action.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 2.5rem rgba(15, 23, 42, 0.12);
}

.quick-action-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background-color: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
  font-size: 1.35rem;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.activity-card {
  display: flex;
  flex-direction: column;
}

.activity-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.activity-timeline-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.activity-timeline {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  width: 100%;
}

.activity-timeline::-webkit-scrollbar {
  width: 6px;
}

.activity-timeline::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.activity-timeline {
  scrollbar-width: thin;
}

.activity-item {
  padding: 0.5rem 0;
}

.activity-fade {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 65%, rgba(255, 255, 255, 1) 100%);
}

.activity-icon-inventory {
  background-color: rgba(99, 102, 241, 0.14);
  color: #4f46e5;
}

.activity-icon-scan {
  background-color: rgba(14, 165, 233, 0.14);
  color: #0ea5e9;
}

.activity-icon-wishlist {
  background-color: rgba(244, 63, 94, 0.16);
  color: #f43f5e;
}

.activity-item:not(:last-child) {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.activity-timestamp {
  white-space: nowrap;
  font-size: 0.75rem;
}

.insight-card {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.empty-state {
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.65);
  background-color: rgba(248, 250, 252, 0.6);
}

.backdrop-blur {
  backdrop-filter: blur(18px);
}

:root[data-bs-theme="dark"] .dashboard-hero {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.95) 0%, rgba(14, 116, 144, 0.9) 100%);
  color: #f8fafc;
}

:root[data-bs-theme="dark"] .dashboard-hero .badge {
  background-color: rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}

:root[data-bs-theme="dark"] .quick-action.card {
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow: none;
}

:root[data-bs-theme="dark"] .quick-action.card:hover {
  box-shadow: var(--collecthub-shadow-soft);
}

:root[data-bs-theme="dark"] .quick-action-icon {
  background-color: rgba(79, 70, 229, 0.3);
  color: #c7d2fe;
}

:root[data-bs-theme="dark"] .activity-icon {
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}

:root[data-bs-theme="dark"] .activity-icon-inventory {
  background-color: rgba(79, 70, 229, 0.22);
  color: #c7d2fe;
}

:root[data-bs-theme="dark"] .activity-icon-scan {
  background-color: rgba(14, 165, 233, 0.25);
  color: #bae6fd;
}

:root[data-bs-theme="dark"] .activity-icon-wishlist {
  background-color: rgba(244, 63, 94, 0.24);
  color: #fda4af;
}

:root[data-bs-theme="dark"] .activity-item:not(:last-child) {
  border-bottom: 1px solid rgba(71, 85, 105, 0.6);
}

:root[data-bs-theme="dark"] .activity-timeline::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.35);
}

:root[data-bs-theme="dark"] .insight-card {
  border-color: rgba(71, 85, 105, 0.6);
}

:root[data-bs-theme="dark"] .empty-state {
  border-color: rgba(94, 106, 133, 0.7);
  background-color: rgba(15, 23, 42, 0.6);
}

:root[data-bs-theme="dark"] .activity-fade {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0) 0%,
    rgba(15, 23, 42, 0.75) 65%,
    rgba(15, 23, 42, 0.92) 100%
  );
}
