.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2.5rem;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
}

.inputSection {
  position: relative;
  width: 100%;
}

.textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  color: #334155;
  transition: all 0.2s ease;
}

html[data-theme='dark'] .textarea {
  background-color: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.textarea:focus {
  outline: none;
  border-color: #6366f1;
  background-color: #fff;
}

html[data-theme='dark'] .textarea:focus {
  background-color: #0f172a;
}

.textarea::placeholder {
  color: #94a3b8;
}

html[data-theme='dark'] .textarea::placeholder {
  color: #64748b;
}

.resultsSection {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.resultsTitle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.25rem;
}

html[data-theme='dark'] .resultsTitle {
  color: #94a3b8;
}

.resultsCount {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6366f1;
  background-color: #eef2ff;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

html[data-theme='dark'] .resultsCount {
  background-color: #312e81;
  color: #c7d2fe;
}

.preview {
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

html[data-theme='dark'] .preview {
  background-color: #1e293b;
  color: #e2e8f0;
}

.decodedMessage {
  padding: 0.75rem 1rem;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html[data-theme='dark'] .decodedMessage {
  background-color: #052e16;
  border-color: #166534;
  color: #86efac;
}

.decodedMessage::before {
  content: '🔍';
}

.highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.25rem;
  margin: 0 0.125rem;
  background-color: #fef2f2;
  border-radius: 0.25rem;
  color: #ef4444;
  cursor: help;
  border: 1px solid #fecaca;
}

html[data-theme='dark'] .highlight {
  background-color: #450a0a;
  border-color: #b91c1c;
  color: #fca5a5;
}

.findings {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.findings::-webkit-scrollbar {
  width: 0.5rem;
}

.findings::-webkit-scrollbar-track {
  background-color: #f8fafc;
  border-radius: 9999px;
}

html[data-theme='dark'] .findings::-webkit-scrollbar-track {
  background-color: #1e293b;
}

.findings::-webkit-scrollbar-thumb {
  background-color: #e2e8f0;
  border-radius: 9999px;
}

html[data-theme='dark'] .findings::-webkit-scrollbar-thumb {
  background-color: #475569;
}

.findings::-webkit-scrollbar-thumb:hover {
  background-color: #cbd5e1;
}

html[data-theme='dark'] .findings::-webkit-scrollbar-thumb:hover {
  background-color: #64748b;
}

.findingItem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: #fef2f2;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

html[data-theme='dark'] .findingItem {
  background-color: #450a0a;
}

.findingItem:hover {
  background-color: #fee2e2;
}

html[data-theme='dark'] .findingItem:hover {
  background-color: #7f1d1d;
}

.findingIcon {
  font-size: 1rem;
}

.findingDetails {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.findingTitle {
  font-weight: 500;
  color: #ef4444;
}

html[data-theme='dark'] .findingTitle {
  color: #fca5a5;
}

.findingCode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  color: #1e293b;
  background-color: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

html[data-theme='dark'] .findingCode {
  background-color: #334155;
  color: #e2e8f0;
}

.findingPosition {
  font-size: 0.8125rem;
  color: #64748b;
}

html[data-theme='dark'] .findingPosition {
  color: #94a3b8;
}

.noFindings {
  padding: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  background-color: #f8fafc;
  border-radius: 0.5rem;
}

html[data-theme='dark'] .noFindings {
  background-color: #1e293b;
  color: #94a3b8;
}
