/**
 * Trigger Chain Debugger Panel Styles
 *
 * Uses design tokens from UI-STYLING-GUIDE.md
 */

.TriggerChainDebuggerPanel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--theme-color-bg-1);
  color: var(--theme-color-fg-default);
  overflow: hidden;
}

/* =================================================================
   Header
   ================================================================= */

.Header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--theme-color-border-default);
  background-color: var(--theme-color-bg-2);
}

.Title {
  display: flex;
  align-items: center;
  gap: 8px;

  h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-color-fg-default-shy);
  }
}

.RecordingIndicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: var(--theme-color-bg-3);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--theme-color-fg-highlight);
}

.RecordingDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444; /* Red for recording indicator */
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* =================================================================
   Controls
   ================================================================= */

.Controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--theme-color-border-default);
  background-color: var(--theme-color-bg-2);
}

.EventCount {
  margin-left: auto;
  padding: 6px 12px;
  background-color: var(--theme-color-bg-3);
  border: 1px solid var(--theme-color-border-default);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--theme-color-fg-default);

  span {
    color: var(--theme-color-fg-highlight);
  }
}

/* =================================================================
   Content - Scrollable Area
   ================================================================= */

.Content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* =================================================================
   Empty State
   ================================================================= */

.EmptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--theme-color-fg-default-shy);

  h3 {
    margin: 16px 0 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-color-fg-default);
  }

  p {
    margin: 0;
    font-size: 13px;
  }
}

/* =================================================================
   Recording State
   ================================================================= */

.RecordingState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--theme-color-fg-default-shy);

  h3 {
    margin: 16px 0 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-color-fg-highlight);
  }

  p {
    margin: 0;
    font-size: 13px;
  }
}

/* =================================================================
   Timeline Container
   ================================================================= */

.TimelineContainer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.Placeholder {
  padding: 48px 24px;
  text-align: center;
  background-color: var(--theme-color-bg-2);
  border: 1px dashed var(--theme-color-border-default);
  border-radius: 4px;
  color: var(--theme-color-fg-default-shy);

  p {
    margin: 0 0 8px;
    font-size: 14px;
  }
}

.SmallText {
  font-size: 12px !important;
  font-style: italic;
  color: var(--theme-color-fg-default-shy);
}
