/* PixelFlow Test Suite - Shared Styles */

:root {
  --pf-primary: #2563eb;
  --pf-primary-dark: #1d4ed8;
  --pf-primary-light: #3b82f6;
  --pf-text: #1f2937;
  --pf-text-secondary: #6b7280;
  --pf-bg: #f9fafb;
  --pf-white: #ffffff;
  --pf-border: #e5e7eb;
  --pf-success: #10b981;
  --pf-warning: #f59e0b;
  --pf-error: #ef4444;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: var(--pf-bg);
  color: var(--pf-text);
  line-height: 1.6;
}

/* Header */
.header {
  background: var(--pf-white);
  border-bottom: 1px solid var(--pf-border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pf-text);
  text-decoration: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--pf-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--pf-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pf-primary);
}

/* Main Content */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--pf-primary);
  text-decoration: none;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-description {
  color: var(--pf-text-secondary);
  font-size: 1rem;
}

/* Sections */
.section {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  scroll-margin-top: 5rem;
}

.section-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--pf-border);
  background: var(--pf-bg);
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section-title code {
  background: var(--pf-primary);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
  margin-top: 0.25rem;
}

.section-body {
  padding: 1.5rem;
}

/* Buttons */
.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-primary {
  background: var(--pf-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--pf-primary-dark);
}

.btn-secondary {
  background: var(--pf-bg);
  color: var(--pf-text);
  border: 1px solid var(--pf-border);
}

.btn-secondary:hover {
  background: var(--pf-border);
}

.btn-success {
  background: var(--pf-success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-warning {
  background: var(--pf-warning);
  color: white;
}

.btn-warning:hover {
  background: #d97706;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pf-text);
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  font-size: 0.875rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
  background: var(--pf-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-card {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 480px;
}

/* Center and widen standalone form cards (not in a grid) */
.section-body > .form-card {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-card-subtitle {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
  margin-bottom: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkbox-group input {
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
}

/* Info Box */
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #1e40af;
}

.info-box strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Code Reference */
.code-reference {
  background: #1f2937;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
  overflow-x: auto;
}

.code-reference code {
  color: #e5e7eb;
  font-size: 0.8125rem;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  white-space: pre;
}

.code-reference .class-name {
  color: #60a5fa;
}
.code-reference .tag {
  color: #f472b6;
}
.code-reference .attr {
  color: #fbbf24;
}
.code-reference .value {
  color: #34d399;
}
.code-reference .comment {
  color: #9ca3af;
}

/* Code Block (for programmatic API) */
.code-block {
  background: #1f2937;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.code-block code {
  color: #e5e7eb;
  font-size: 0.8125rem;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  white-space: pre;
}

.code-block .keyword {
  color: #c792ea;
}
.code-block .function {
  color: #82aaff;
}
.code-block .string {
  color: #c3e88d;
}
.code-block .number {
  color: #f78c6c;
}
.code-block .property {
  color: #ffcb6b;
}
.code-block .comment {
  color: #676e95;
}
.code-block .variable {
  color: #eeffff;
}

/* Toast Notification - appears top right */
.notification {
  position: fixed;
  top: 5rem;
  right: 2rem;
  bottom: auto;
  background: var(--pf-text);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(-100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10001;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-image {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-primary);
  font-size: 0.875rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
  margin-bottom: 1rem;
}

/* Product Cards (E-commerce) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 1rem;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-image {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-primary);
  font-size: 0.75rem;
}

.product-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-id {
  font-size: 0.75rem;
  color: var(--pf-text-secondary);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pf-primary);
  margin-bottom: 0.75rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.quantity-input {
  width: 60px;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
}

/* Order Summary */
.order-summary {
  background: var(--pf-bg);
  border-radius: 8px;
  padding: 1.25rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--pf-border);
}

.order-item:last-child {
  border-bottom: none;
}

/* Remove border from last order-item when followed by order-total */
.order-item:has(+ .order-total) {
  border-bottom: none;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--pf-border);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Checkout Section */
.checkout-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .checkout-section {
    grid-template-columns: 1fr;
  }
}

/* Forms Grid */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

@media (max-width: 860px) {
  .forms-grid {
    grid-template-columns: 1fr;
  }
}

/* Search Components - 2 columns centered */
.search-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 800px) {
  .search-demo-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
}

.search-demo-card {
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 1.5rem;
  background: var(--pf-white);
}

.search-demo-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.search-demo-card p {
  font-size: 0.8125rem;
  color: var(--pf-text-secondary);
  margin-bottom: 1rem;
}

.search-box {
  display: flex;
  gap: 0.5rem;
}

.search-box.vertical {
  flex-direction: column;
}

.search-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  font-size: 0.875rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-with-icon {
  position: relative;
}

.search-input-with-icon input {
  width: 100%;
  padding-left: 2.5rem;
}

.search-input-with-icon svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--pf-text-secondary);
}

/* Store Locator */
.store-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.store-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  background: var(--pf-bg);
}

.store-icon {
  width: 48px;
  height: 48px;
  background: var(--pf-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.store-info h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.store-info p {
  font-size: 0.8125rem;
  color: var(--pf-text-secondary);
  margin: 0;
}

.store-info .distance {
  font-size: 0.75rem;
  color: var(--pf-primary);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Customizer (Engagement) */
.customizer {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

@media (max-width: 768px) {
  .customizer {
    grid-template-columns: 1fr;
  }
}

.customizer-preview {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.product-preview {
  text-align: center;
}

.product-preview-image {
  width: 200px;
  height: 200px;
  background: var(--pf-white);
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-preview-name {
  font-weight: 600;
  font-size: 1.125rem;
}

.customizer-options h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--pf-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.option-group {
  margin-bottom: 1.5rem;
}

.color-options {
  display: flex;
  gap: 0.5rem;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.color-option.selected {
  border-color: var(--pf-primary);
}

.size-options {
  display: flex;
  gap: 0.5rem;
}

.size-option {
  padding: 0.5rem 1rem;
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  background: var(--pf-white);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.size-option.selected {
  background: var(--pf-primary);
  color: white;
  border-color: var(--pf-primary);
}

/* Donation */
.donation-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.donation-amount {
  padding: 1rem;
  border: 2px solid var(--pf-border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--pf-white);
}

.donation-amount.selected {
  border-color: var(--pf-primary);
  background: #eff6ff;
}

.donation-amount .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pf-text);
}

.donation-amount .label {
  font-size: 0.75rem;
  color: var(--pf-text-secondary);
}

/* Time Slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.time-slot {
  padding: 0.75rem;
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  background: var(--pf-white);
}

.time-slot.selected {
  background: var(--pf-primary);
  color: white;
  border-color: var(--pf-primary);
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--pf-white);
  border: 2px solid var(--pf-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--pf-primary);
  position: relative;
}

.pricing-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pf-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pf-primary);
  margin-bottom: 0.25rem;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
  margin-bottom: 1rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.375rem 0;
}

.pricing-feature svg {
  width: 16px;
  height: 16px;
  fill: var(--pf-success);
}

/* API Demo (Programmatic) */
.api-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .api-demo {
    grid-template-columns: 1fr;
  }
}

.api-demo-form {
  background: var(--pf-bg);
  border-radius: 8px;
  padding: 1.25rem;
}

.api-demo-form h4 {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.console-output {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 1rem;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  color: #a0aec0;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.console-output .log {
  padding: 0.375rem 0;
  border-bottom: 1px solid #2d2d4a;
}

.console-output .log:last-child {
  border-bottom: none;
}

.console-output .log.success {
  color: #68d391;
}

.console-output .log.error {
  color: #fc8181;
}

.console-output .log.info {
  color: #63b3ed;
}

.console-output .log .time {
  color: #718096;
  margin-right: 0.5rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.event-btn {
  padding: 0.75rem 1rem;
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  background: var(--pf-white);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s;
}

.event-btn:hover {
  border-color: var(--pf-primary);
  background: #eff6ff;
}

.event-btn .event-name {
  display: block;
  color: var(--pf-text);
  margin-bottom: 0.125rem;
}

.event-btn .event-desc {
  font-size: 0.75rem;
  color: var(--pf-text-secondary);
  font-weight: 400;
}

/* API Reference Table */
.api-reference {
  margin-top: 2rem;
}

.api-reference h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.api-reference table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.api-reference th {
  text-align: left;
  padding: 0.75rem;
  background: var(--pf-bg);
  border-bottom: 1px solid var(--pf-border);
  font-weight: 600;
}

.api-reference td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--pf-border);
}

.api-reference td code {
  background: var(--pf-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.8125rem;
}

/* Index Page Specific */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--pf-text);
}

.hero p {
  font-size: 1.125rem;
  color: var(--pf-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: var(--pf-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--pf-white);
  border-radius: 12px;
  border: 1px solid var(--pf-border);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pf-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
}

.script-notice {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.script-notice svg {
  width: 20px;
  height: 20px;
  fill: #d97706;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.script-notice p {
  font-size: 0.875rem;
  color: #92400e;
}

.script-notice code {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.8125rem;
}

/* Quick Start Section */
.quick-start {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}

.quick-start-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quick-start-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pf-text);
  margin-bottom: 0.25rem;
}

.quick-start-header p {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
  margin: 0;
}

.quick-start-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.quick-start-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 200px;
  padding: 0 1rem;
}

.quick-start-step .step-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.quick-start-step .step-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--pf-primary);
}

.quick-start-step .step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-start-step .step-number {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--pf-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.quick-start-step .step-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pf-text);
  margin-bottom: 0.375rem;
}

.quick-start-step .step-content p {
  font-size: 0.8125rem;
  color: var(--pf-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.25rem;
}

.step-connector svg {
  width: 24px;
  height: 24px;
  fill: var(--pf-border);
}

.quick-start .docs-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  background: var(--pf-bg);
  border-radius: 8px;
  color: var(--pf-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.quick-start .docs-link:hover {
  background: #e5e7eb;
  color: var(--pf-text);
}

.quick-start .docs-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.quick-start .docs-link .arrow-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.quick-start .docs-link:hover .arrow-icon {
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 768px) {
  .quick-start-steps {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: 0;
  }

  .quick-start-step {
    max-width: 280px;
  }
}

/* Category Tags */
.category-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  background: var(--pf-white);
  color: var(--pf-text);
  border: 1px solid var(--pf-border);
}

.category-tag svg {
  width: 14px;
  height: 14px;
  fill: var(--pf-text-secondary);
  transition: fill 0.15s;
}

.category-tag:hover {
  border-color: var(--pf-primary);
  color: var(--pf-primary);
  background: #f8faff;
}

.category-tag:hover svg {
  fill: var(--pf-primary);
}

/* Event Search */
.event-search-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.event-search {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.event-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--pf-text-secondary);
  pointer-events: none;
}

.event-search input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  font-size: 0.9375rem;
  background: var(--pf-white);
  transition: all 0.2s;
}

.event-search input:focus {
  outline: none;
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.event-search input::placeholder {
  color: var(--pf-text-secondary);
}

.event-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
}

.event-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.event-dropdown-group {
  padding: 0.5rem 0;
}

.event-dropdown-group:not(:last-child) {
  border-bottom: 1px solid var(--pf-border);
}

.event-dropdown-label {
  padding: 0.375rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pf-text-secondary);
}

.event-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  text-decoration: none;
  transition: background 0.15s;
}

.event-dropdown-item:hover {
  background: var(--pf-bg);
}

.event-dropdown-item .event-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pf-text);
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

.event-dropdown-item .event-category {
  font-size: 0.75rem;
  color: var(--pf-text-secondary);
}

.event-dropdown-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--pf-text-secondary);
  font-size: 0.875rem;
}

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

.test-card {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.test-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--pf-primary-light);
}

.test-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.test-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--pf-primary),
    var(--pf-primary-dark)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.test-card-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.test-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pf-text);
  margin-bottom: 0.25rem;
}

.test-card-subtitle {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
}

.test-card-description {
  font-size: 0.875rem;
  color: var(--pf-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.event-tag {
  background: var(--pf-bg);
  color: var(--pf-text);
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

.test-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pf-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap 0.2s;
}

.test-card-link:hover {
  gap: 0.75rem;
}

.test-card-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer {
  border-top: 1px solid var(--pf-border);
  padding: 2rem;
  text-align: center;
  color: var(--pf-text-secondary);
  font-size: 0.875rem;
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--pf-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pf-primary);
}

/* Script Configuration Section */
.script-config {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.script-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--pf-border);
  flex-wrap: wrap;
  gap: 1rem;
}

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

.script-config-title .config-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    var(--pf-primary) 0%,
    var(--pf-primary-dark) 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.script-config-title .config-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.script-config-title h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pf-text);
  margin-bottom: 0.125rem;
}

.script-config-title p {
  font-size: 0.8125rem;
  color: var(--pf-text-secondary);
  margin: 0;
}

.script-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.status-badge.status-default {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--pf-primary);
  border: 1px solid #bfdbfe;
}

.status-badge.status-custom {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #059669;
  border: 1px solid #a7f3d0;
}

.script-config-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.config-sidebar {
  padding: 1.5rem;
  background: #fafbfc;
  border-right: 1px solid var(--pf-border);
}

.config-info-card {
  background: white;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.config-info-card h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pf-text);
  margin-bottom: 0.5rem;
}

.config-info-card p {
  font-size: 0.8125rem;
  color: var(--pf-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.config-steps {
  margin-bottom: 1.25rem;
}

.config-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.config-step:last-child {
  margin-bottom: 0;
}

.config-step-num {
  width: 22px;
  height: 22px;
  background: var(--pf-primary);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.config-step-content {
  font-size: 0.8125rem;
  color: var(--pf-text);
  line-height: 1.5;
  padding-top: 0.125rem;
}

.config-step-content a {
  color: var(--pf-primary);
  text-decoration: none;
  font-weight: 500;
}

.config-step-content a:hover {
  text-decoration: underline;
}

.config-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #92400e;
  line-height: 1.5;
}

.config-warning svg {
  width: 16px;
  height: 16px;
  fill: #d97706;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.config-editor {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.editor-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #334155;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #e2e8f0;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

.editor-tab svg {
  width: 14px;
  height: 14px;
  fill: #60a5fa;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-reset {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #475569;
  background: transparent;
  color: #94a3b8;
  transition: all 0.2s;
}

.btn-reset:hover {
  background: #334155;
  color: #e2e8f0;
  border-color: #64748b;
}

.btn-reset svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
  position: relative;
  top: 2.5px;
}

.editor-body {
  display: flex;
  flex: 1;
  background: #0f172a;
  min-height: 200px;
}

.editor-gutter {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  background: #1e293b;
  border-right: 1px solid #334155;
  user-select: none;
}

.editor-gutter span {
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.75rem;
  line-height: 1.75;
  color: #475569;
  text-align: right;
  min-width: 1.5rem;
}

.editor-textarea {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  resize: none;
  outline: none;
}

.editor-textarea::placeholder {
  color: #64748b;
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border-top: 1px solid #334155;
}

.editor-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

.editor-hint svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--pf-primary);
  color: white;
  transition: all 0.2s;
}

.btn-apply:hover {
  background: var(--pf-primary-dark);
  transform: translateY(-1px);
}

.btn-apply svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-apply:disabled {
  background: #475569;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 900px) {
  .script-config-body {
    grid-template-columns: 1fr;
  }

  .config-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--pf-border);
  }

  .config-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .config-step {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .script-config-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .editor-hint {
    justify-content: center;
  }

  .btn-apply {
    justify-content: center;
  }
}

/* Code Viewer Component */
.code-viewer {
  margin-top: 1.5rem;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  overflow: hidden;
}

.code-viewer-buttons {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--pf-bg);
  border-bottom: 1px solid var(--pf-border);
}

.code-viewer-buttons .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.code-viewer-buttons .btn svg {
  width: 16px;
  height: 16px;
}

.code-viewer-content {
  display: none;
  background: #1f2937;
  max-height: 400px;
  overflow: auto;
}

.code-viewer-content.open {
  display: block;
}

.code-viewer-content pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

.code-viewer-content code {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Consolas", monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #e5e7eb;
  white-space: pre;
  display: block;
}

/* Prism.js Theme Overrides - Tomorrow Night */
.code-viewer-content code .token.comment,
.code-viewer-content code .token.prolog,
.code-viewer-content code .token.doctype,
.code-viewer-content code .token.cdata {
  color: #6b7280;
}

.code-viewer-content code .token.punctuation {
  color: #9ca3af;
}

.code-viewer-content code .token.tag,
.code-viewer-content code .token.tag .token.punctuation {
  color: #f472b6;
}

.code-viewer-content code .token.attr-name {
  color: #fbbf24;
}

.code-viewer-content code .token.attr-value,
.code-viewer-content code .token.attr-value .token.punctuation {
  color: #34d399;
}

.code-viewer-content code .token.string {
  color: #34d399;
}

.code-viewer-content code .token.keyword {
  color: #c792ea;
}

.code-viewer-content code .token.function {
  color: #82aaff;
}

.code-viewer-content code .token.number {
  color: #f78c6c;
}

.code-viewer-content code .token.boolean {
  color: #ff9cac;
}

.code-viewer-content code .token.class-name {
  color: #60a5fa;
}

/* Copy success animation */
.btn-copy-success {
  background: var(--pf-success) !important;
  border-color: var(--pf-success) !important;
  color: white !important;
}

/* Toggle button active state */
.btn-show-code.active {
  background: var(--pf-primary);
  color: white;
  border-color: var(--pf-primary);
}

/* ============================================
   Event Monitor Panel
   ============================================ */

.pf-event-monitor {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  max-height: 480px;
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  transition: all 0.2s ease;
}

.pf-event-monitor.pf-em-minimized {
  max-height: none;
  height: auto;
}

.pf-event-monitor.pf-em-minimized .pf-em-body {
  display: none;
}

/* Header */
.pf-em-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pf-border);
  background: var(--pf-bg);
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.pf-em-minimized .pf-em-header {
  border-radius: 12px;
  border-bottom: none;
}

.pf-em-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--pf-text);
}

.pf-em-icon {
  width: 18px;
  height: 18px;
  fill: var(--pf-primary);
}

.pf-em-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--pf-primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
}

.pf-em-actions {
  display: flex;
  gap: 4px;
}

.pf-em-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.pf-em-btn:hover {
  background: var(--pf-border);
}

.pf-em-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--pf-text-secondary);
}

.pf-em-btn:hover svg {
  fill: var(--pf-text);
}

/* Body / Event List */
.pf-em-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pf-em-list {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  padding: 8px;
}

/* Empty State */
.pf-em-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--pf-text-secondary);
  text-align: center;
}

.pf-em-empty svg {
  width: 48px;
  height: 48px;
  fill: var(--pf-border);
  margin-bottom: 12px;
}

.pf-em-empty p {
  font-size: 14px;
  margin: 0;
}

/* Event Item */
.pf-em-event {
  padding: 12px;
  background: var(--pf-bg);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.pf-em-event:last-child {
  margin-bottom: 0;
}

.pf-em-event:hover {
  border-color: var(--pf-border);
}

.pf-em-event-new {
  animation: pf-em-slide-in 0.3s ease;
}

@keyframes pf-em-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pf-em-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pf-em-event-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--pf-primary);
}

.pf-em-event-time {
  font-size: 11px;
  color: var(--pf-text-secondary);
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

.pf-em-event-desc {
  font-size: 13px;
  color: var(--pf-text);
  line-height: 1.4;
}

/* Details Toggle */
.pf-em-details-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--pf-text-secondary);
  cursor: pointer;
  transition: color 0.15s;
}

.pf-em-details-toggle:hover {
  color: var(--pf-primary);
}

.pf-em-details-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s;
}

.pf-em-expanded .pf-em-details-toggle svg {
  transform: rotate(180deg);
}

/* Details Content */
.pf-em-details {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--pf-border);
}

.pf-em-expanded .pf-em-details {
  display: block;
}

.pf-em-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 3px 0;
  color: var(--pf-text-secondary);
}

.pf-em-detail-label {
  color: var(--pf-text-secondary);
}

.pf-em-detail-value {
  color: var(--pf-text);
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 11px;
}

.pf-em-detail-captured {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pf-success);
  font-weight: 500;
  font-size: 11px;
}

.pf-em-detail-captured svg {
  width: 14px;
  height: 14px;
  fill: var(--pf-success);
}

/* Scrollbar styling for the event list */
.pf-em-list::-webkit-scrollbar {
  width: 6px;
}

.pf-em-list::-webkit-scrollbar-track {
  background: transparent;
}

.pf-em-list::-webkit-scrollbar-thumb {
  background: var(--pf-border);
  border-radius: 3px;
}

.pf-em-list::-webkit-scrollbar-thumb:hover {
  background: var(--pf-text-secondary);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .pf-event-monitor {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 50vh;
  }

  .pf-em-list {
    max-height: calc(50vh - 60px);
  }
}
