/* ==================== EVENTS, TEAM & ALERTS STYLES ==================== */

/* Timeline Événements */
.events-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bs-secondary-bg);
  border-left: 4px solid var(--bs-primary);
  border-radius: 8px;
  transition: all 0.2s ease;
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.event-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.event-item.show {
  border-left-color: #f59e0b;
}

.event-item.playlist {
  border-left-color: #6366f1;
}

.event-item.upload {
  border-left-color: #10b981;
}

.event-item.config {
  border-left-color: #ec4899;
}

.event-icon {
  font-size: 1.4rem;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-content {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.event-time {
  font-size: 0.75rem;
  color: var(--bs-body-color);
  opacity: 0.6;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--bs-body-color);
  opacity: 0.7;
  margin-top: 4px;
}

/* Filtres */
.pill-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pill-filter:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--bs-primary);
}

.pill-filter.active {
  background: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

/* Équipe - Animateurs List */
.animator-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bs-secondary-bg);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.animator-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.animator-info {
  flex: 1;
  min-width: 0;
}

.animator-name {
  font-weight: 600;
  color: var(--bs-body-color);
  display: block;
  margin-bottom: 2px;
}

.animator-status {
  font-size: 0.75rem;
  color: var(--bs-body-color);
  opacity: 0.7;
}

.animator-status.online {
  color: #10b981;
  font-weight: 600;
}

.animator-badge {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Schedule Items */
.schedule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bs-secondary-bg);
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid var(--bs-primary);
}

.schedule-time {
  font-weight: 600;
  color: var(--bs-primary);
  min-width: 50px;
  font-size: 0.9rem;
}

.schedule-show {
  flex: 1;
  min-width: 0;
}

.schedule-show-name {
  font-weight: 500;
  color: var(--bs-body-color);
  display: block;
  margin-bottom: 2px;
}

.schedule-animator {
  font-size: 0.8rem;
  color: var(--bs-body-color);
  opacity: 0.7;
}

/* Warnings, Services, Metrics */
.alert-item,
.service-item,
.metric-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--bs-secondary-bg);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.alert-header,
.service-header,
.metric-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--bs-body-color);
}

.alert-header i,
.service-header i,
.metric-header i {
  font-size: 1.1rem;
}

.alert-message {
  color: var(--bs-body-color);
  opacity: 0.8;
  line-height: 1.4;
  margin-top: 4px;
}

.alert-time {
  font-size: 0.75rem;
  color: var(--bs-body-color);
  opacity: 0.6;
}

/* Status indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.status-indicator.online {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.status-indicator.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-indicator.partial {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.status-dot.online {
  background: #10b981;
}

.status-dot.offline {
  background: #ef4444;
}

.status-dot.partial {
  background: #f59e0b;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Metric bars */
.metric-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.metric-bar-label {
  font-size: 0.75rem;
  min-width: 45px;
  color: var(--bs-body-color);
  opacity: 0.7;
}

.metric-bar-background {
  flex: 1;
  height: 5px;
  background: var(--bs-border-color-translucent);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bs-primary), #8b5cf6);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.metric-bar-value {
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 35px;
  text-align: right;
  color: var(--bs-primary);
}

/* Empty states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--bs-body-color);
  opacity: 0.5;
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Dark mode */
[data-bs-theme="dark"] .event-item,
[data-bs-theme="dark"] .animator-item,
[data-bs-theme="dark"] .schedule-item,
[data-bs-theme="dark"] .alert-item,
[data-bs-theme="dark"] .service-item,
[data-bs-theme="dark"] .metric-item {
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .pill-filter {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .pill-filter:hover {
  background: rgba(99, 102, 241, 0.15);
}
