/* RadioPub Stats Modal */
.radiopub-stats-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.radiopub-stats-modal {
  background: white;
  border-radius: 1rem;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

/* Header */
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
  background: linear-gradient(135deg, var(--color-primary) 0%, #be0606 100%);
  border-radius: 1rem 1rem 0 0;
  color: white;
}

.stats-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-title i {
  font-size: 2rem;
}

.stats-title h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.stats-date {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.btn-close-stats {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-stats:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Content */
.stats-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: #f8fafc;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Stat Cards */
.radio-stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  border-left: 4px solid;
}

.radio-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.radio-stat-primary {
  border-left-color: #3b82f6;
}

.radio-stat-success {
  border-left-color: #10b981;
}

.radio-stat-info {
  border-left-color: #06b6d4;
}

.radio-stat-warning {
  border-left-color: #f59e0b;
}

.radio-stat-purple {
  border-left-color: #8b5cf6;
}

.radio-stat-gold {
  border-left-color: #eab308;
}

.radio-stat-taxi {
  border-left-color: #ec4899;
}

.radio-stat-cost {
  border-left-color: #ef4444;
}

.radio-stat-balance {
  border-left-color: #14b8a6;
}

.radio-stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-stat-primary .radio-stat-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.radio-stat-success .radio-stat-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.radio-stat-info .radio-stat-icon {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.radio-stat-warning .radio-stat-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.radio-stat-purple .radio-stat-icon {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.radio-stat-gold .radio-stat-icon {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.radio-stat-taxi .radio-stat-icon {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.radio-stat-cost .radio-stat-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.radio-stat-balance .radio-stat-icon {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.radio-stat-icon i {
  font-size: 1.75rem;
}

.radio-stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.5px;
}

.radio-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.stat-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-detail-bar {
  width: 4px;
  height: 1rem;
  border-radius: 2px;
}

.stat-detail-success {
  color: #10b981;
}

.stat-detail-success .stat-detail-bar {
  background: #10b981;
}

.stat-detail-danger {
  color: #ef4444;
}

.stat-detail-danger .stat-detail-bar {
  background: #ef4444;
}

/* Footer */
.stats-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
  background: white;
  border-radius: 0 0 1rem 1rem;
}

.btn-close-footer-stats {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  background: #e2e8f0;
  color: #475569;
}

.btn-close-footer-stats:hover {
  background: #cbd5e1;
  transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Responsive */
@media (max-width: 768px) {
  .radiopub-stats-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .stats-header {
    border-radius: 0;
    padding: 1rem;
  }

  .stats-title h2 {
    font-size: 1.125rem;
  }

  .stats-content {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-footer {
    border-radius: 0;
  }

  .btn-close-footer-stats {
    width: 100%;
    justify-content: center;
  }
}
