/* AI vs. The Law - Custom Styles */
/* Using Nearform theme colors for consistency */

/* Code syntax highlighting overrides */
.enpNOd > code {
  color: #d9d9d9; /* grey[30] - better contrast */
}

/* React Live Editor Styling */
.react-live-editor {
  background: rgb(1, 22, 39) !important; /* match PRR theme */
  font-family:
    "Fira Code", "Monaco", "Cascadia Code", "Roboto Mono", monospace !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  padding: 16px !important;
  border: none !important;
  outline: none !important;
  resize: none !important;
  overflow: auto !important;
}

.react-live-preview {
  border-top: 2px solid #454551 !important; /* grey[80] - darker border for better contrast */
  background: #8950ff !important; /* grey[80] - darker grey for preview */
  color: #f4f8fa !important; /* midnight[10] - high contrast text */
  padding: 16px;
  min-height: 200px;
  display: flex;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
  font-family: "Inter", sans-serif !important;
  font-size: 24px !important;
}

.react-live-preview > * {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif !important;
}

/* Error styling using theme colors */
.react-live-error {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
  color: white !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-family:
    "Fira Code", "Monaco", "Cascadia Code", "Roboto Mono", monospace !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Code editor container styling */
.code-editor-container {
  border: 2px solid #454551 !important; /* grey[80] - darker border for better contrast */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 14, 56, 0.3); /* midnight.base with opacity */
  background-color: #000e38; /* midnight.base */
  margin: 20px 0;
}

/* Focus states for better accessibility */
.react-live-editor:focus {
  box-shadow: inset 0 0 0 2px #00e5a4; /* green.base focus ring */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .react-live-editor {
    font-size: 14px !important;
    padding: 12px !important;
  }

  .react-live-preview {
    padding: 12px;
    min-height: 150px;
  }

  .code-editor-container {
    margin: 10px 0;
  }
}
