@import "../style.css";

/* SQL Formatter custom overrides */
pre[class*="language-"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-muted) !important;
  margin: 0 !important;
  height: 100% !important;
}

.output-box code {
  font-family: var(--font-mono) !important;
  font-size: 0.875rem !important;
}

/* SQL Validator Styles */
.validation-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  margin-top: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.val-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-muted);
  background-color: var(--bg-card);
}

.val-title {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.val-body {
  padding: 1.25rem;
  font-size: 0.825rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-input);
}

.val-empty-state {
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}

.val-error-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background-color: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.val-error-item:last-child {
  margin-bottom: 0;
}

.val-error-icon {
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  font-size: 0.75rem;
}

.val-error-desc {
  flex: 1;
}

.val-error-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

:root[theme="dark"] .val-error-code {
  background-color: rgba(255, 255, 255, 0.08);
}

.val-success-state {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: 6px;
  background-color: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--text-primary);
}

.val-success-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #10b981;
  font-weight: 600;
  font-size: 0.9rem;
}

.val-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.12);
}

.val-success-details {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  border-top: 1px dashed var(--border-muted);
  padding-top: 0.75rem;
}

.val-warning-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background-color: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.val-warning-icon {
  color: #f59e0b;
  font-weight: 700;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background-color: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
  font-size: 0.75rem;
}

.val-warning-desc {
  flex: 1;
}

