.stat-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--primary-light);
  border-radius: 50%;
  transform: translate(30%, -30%);
  opacity: 0.5;
  z-index: 0;
}

.stat-card-header {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-card-body {
  position: relative;
  z-index: 1;
}

.stat-title {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.stat-change {
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.stat-change.positive {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--success);
}

.stat-change.negative {
  background-color: rgba(211, 47, 47, 0.1);
  color: var(--danger);
}

.stat-comparison {
  color: var(--text-muted);
}
