/* style.css */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

header {
  text-align: center;
  margin-bottom: 1rem;
}

header img {
  width: 60px;
}

h1 {
  margin: 0.2rem 0;
  font-size: 2rem;
}

.input-area, .controls, .results, .compare {
  width: 100%;
  max-width: 700px;
  margin: 1rem 0;
}

textarea {
  width: 100%;
  height: 120px;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  resize: vertical;
}

.file-drop {
  margin-top: 0.5rem;
  padding: 1.2rem;
  border: 2px dashed #94a3b8;
  border-radius: 0.5rem;
  text-align: center;
  color: #475569;
  cursor: pointer;
  background: #e2e8f0;
  transition: background 0.3s;
}

.file-drop.dragover {
  background: #cbd5e1;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

select, button, input[type="file"] {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  background: #fff;
}

button {
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease-in-out;
}

button:hover {
  background: #1d4ed8;
}

.output-box, #compareResult {
  margin-top: 0.5rem;
  padding: 0.8rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  word-break: break-all;
  font-family: monospace;
}

footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

#processingOverlay {
  transition: opacity 0.3s ease;
}

#toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
  z-index: 2000;
}

#toast.opacity-100 {
  opacity: 1 !important;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
}
