/* Text diff specific styles */
.input-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .input-section {
    grid-template-columns: 1fr;
  }
}

.text-panel {
  display: flex;
  flex-direction: column;
}

.panel-label {
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
  font-size: 14px;
}

.text-input {
  width: 100%;
  min-height: 250px;
  padding: 10px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  resize: vertical;
  transition: all 0.2s ease;
  background: white;
  line-height: 1.5;
}

.text-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.diff-result {
  background: #f8f9fa;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  padding: 12px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.5;
  max-height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.diff-line {
  display: block;
  padding: 2px 8px;
  margin: 1px 0;
  border-radius: 3px;
}

.diff-added {
  background-color: #d4edda;
  color: #155724;
  border-left: 3px solid #28a745;
}

.diff-removed {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 3px solid #dc3545;
}

.diff-unchanged {
  background-color: transparent;
  color: #6c757d;
}

.diff-info {
  background-color: #d1ecf1;
  color: #0c5460;
  font-weight: 600;
  border-left: 3px solid #17a2b8;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: #6c757d;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.options {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.option input[type="checkbox"] {
  width: 16px;
  height: 16px;
}