/* Improved Stats Component */
.stats {
  display: inline-flex;
  overflow: hidden;
  border-radius: 0.75rem;
  flex-direction: row;
  width: 100%;
  max-width: 500px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  flex: 1;
  background: white;
}

.stat:last-child {
  border-right: none;
}

.stat:first-child {
  border-top-left-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
}

.stat:last-child {
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

.stat-figure {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .stats {
    flex-direction: row; /* Keep horizontal on mobile */
    width: 100%;
  }
  
  .stat {
    padding: 0.75rem 0.5rem; /* Reduce horizontal padding */
    min-width: auto;
  }
  
  .stat-figure {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
  
  .stat-value {
    font-size: 1.5rem; /* Smaller but still readable */
    margin-bottom: 0.125rem;
  }
  
  .stat-desc {
    font-size: 0.75rem; /* Slightly smaller text */
  }
}

/* Backdrop blur effect */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Glass morphism effect */
.stats-container .stats {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Hover effects */
.stat {
  transition: all 0.3s ease;
}

.stat:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Color variations */
.text-white-50 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Animation */
.stat-value {
  animation: countUp 0.6s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}