/* Custom styles for Fake Editor App - DSFR Compatible */
/* Only includes styles that complement DSFR, not duplicate it */

/* Custom enhancements for specific components */

/* Required field asterisks styling */
.fr-label span[aria-hidden="true"] {
  color: #ce0500;
  font-weight: bold;
  margin-left: 0.25rem;
}

/* Token display code styling */
code {
  background-color: #f6f6f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  font-size: 0.875rem;
  color: #161616;
  border: 1px solid #e3e3e3;
}

/* Card enhancements */
.fr-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fr-card.fr-enlarge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* JSON/Pre formatting for webhook debug */
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
  background-color: #f6f6f6;
  border: 1px solid #e3e3e3;
  border-radius: 0.25rem;
  padding: 1rem;
  margin: 0;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Table hover effects for better UX */
.fr-table table tbody tr:hover {
  background-color: #f6f6f6;
}

/* Market row specific styling */
.market-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Form enhancements */
.fr-input:focus,
.fr-select:focus {
  box-shadow: inset 0 -2px 0 0 #000091;
}

/* Button size variants to match old design */
.fr-btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  line-height: 1.25rem;
}

/* Callout enhancements for webhook sections */
.fr-callout pre {
  background-color: #ffffff;
  border: 1px solid #ddd;
  max-height: 300px;
  overflow-y: auto;
}

/* Badge customizations */
.fr-badge {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Responsive table improvements */
@media (max-width: 768px) {
  .fr-table {
    overflow-x: auto;
  }
  
  .fr-table table {
    min-width: 600px;
  }
  
  .fr-btn--sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Accessibility improvements */
.fr-btn:focus-visible,
.fr-link:focus-visible {
  outline: 2px solid #000091;
  outline-offset: 2px;
}

/* Custom utilities that complement DSFR */
.text-monospace {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace !important;
}

/* Print styles */
@media print {
  .fr-header,
  .fr-footer,
  .fr-btn {
    display: none !important;
  }
  
  .fr-card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}