/* Scoped Tool CSS */
.diff-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 40px;
}

.diff-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 25px;
  font-weight: bold;
}

.diff-explanation {
  background: #e0f2fe;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #0284c7;
  font-size: 14px;
  color: #0369a1;
}

.diff-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .diff-editor {
    grid-template-columns: 1fr;
  }
}

.diff-textarea {
  width: 100%;
  height: 300px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: monospace;
  resize: vertical;
}

.diff-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.diff-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

.diff-result {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  min-height: 200px;
  white-space: pre-wrap;
  font-family: monospace;
  overflow: auto;
  line-height: 1.6;
}

.added {
  background: #dcfce7;
  color: #166534;
  display: block;
  border-left: 4px solid #22c55e;
  padding-left: 10px;
}

.removed {
  background: #fee2e2;
  color: #991b1b;
  display: block;
  border-left: 4px solid #ef4444;
  padding-left: 10px;
  text-decoration: line-through;
}

.same {
  color: #475569;
  display: block;
  padding-left: 14px;
}
