/*
 * Live Activity Feed Section
 * Real-time activity display
 */

.live-activity-feed {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.live-activity-feed:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="3" cy="3" r="1.5" fill="rgba(255,107,53,0.1)"/></svg>');
  pointer-events: none;
}

.activity-feed-container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  max-height: 500px;
  overflow-y: auto;
  position: relative;
}

.activity-feed-container::-webkit-scrollbar {
  width: 8px;
}

.activity-feed-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.activity-feed-container::-webkit-scrollbar-thumb {
  background: #ff6b35;
  border-radius: 10px;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 15px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.activity-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.activity-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-right: 20px;
  flex-shrink: 0;
}

.activity-icon.order {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity-icon.payment {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.activity-icon.table {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.activity-icon.kitchen {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.activity-content {
  flex: 1;
}

.activity-business {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.activity-action {
  font-size: 15px;
  color: #666;
  margin-bottom: 3px;
}

.activity-location {
  font-size: 13px;
  color: #999;
}

.activity-location i {
  color: #ff6b35;
  margin-right: 5px;
}

.activity-time {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  margin-left: 15px;
}

.activity-amount {
  font-size: 20px;
  font-weight: 700;
  color: #28a745;
  margin-left: 15px;
}

/* Live Stats Grid */
.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.stat-box {
  background: white;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #ff2c6d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .activity-item {
    flex-direction: column;
    text-align: center;
  }
  
  .activity-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .activity-time,
  .activity-amount {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .live-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-box {
    justify-content: center;
    text-align: center;
  }
}

/* Pulse animation for stats */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.stat-box.pulse-once {
  animation: pulse 0.6s ease-in-out;
}
