/* Event Actions Module Styles */

.event-action-rule {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
  position: relative;
  transition: all 0.2s ease;
}

.event-action-rule:hover {
  background: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-action-rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.event-action-rule-event {
  font-weight: 600;
  color: #1976d2;
  font-size: 14px;
}

.event-action-rule-delete {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.event-action-rule-delete:hover {
  background-color: rgba(211, 47, 47, 0.1);
}

.event-action-rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.event-action-badge {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  color: #555;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-action-badge i {
  font-size: 16px;
}

.event-action-builder-action {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.event-action-builder-action-select {
  flex: 1;
}

.event-action-builder-action-delete {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  padding: 8px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.event-action-builder-action-delete:hover {
  background-color: rgba(211, 47, 47, 0.1);
}

.event-action-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Action icons mapping */
.action-icon-playSound::before {
  content: "volume_up";
}

.action-icon-captureScreenshot::before {
  content: "photo_camera";
}

.action-icon-showNotification::before {
  content: "notifications";
}

.action-icon-copyPlayerState::before {
  content: "content_copy";
}

.action-icon-logToConsole::before {
  content: "terminal";
}

.action-icon-pausePlayback::before {
  content: "pause";
}

.action-icon-takeQualitySnapshot::before {
  content: "assessment";
}
