* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 30px;
}

h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
  font-size: 14px;
}

.section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

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

.file-panel {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.file-header {
  background: #f8f8f8;
  padding: 10px 15px;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #ddd;
}

.file-content {
  padding: 15px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  resize: vertical;
  min-height: 200px;
  width: 100%;
  border: none;
  outline: none;
}

.file-content:focus {
  outline: none;
}

button {
  padding: 10px 20px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #357abd;
}

button:active {
  transform: translateY(1px);
}

.result-panel {
  border: 2px solid #4a90e2;
  border-radius: 4px;
  padding: 15px;
  background: #f0f7ff;
  margin-top: 20px;
}

.result-title {
  font-weight: 600;
  color: #4a90e2;
  margin-bottom: 10px;
}

.result-content {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: white;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #ddd;
  max-height: 300px;
  overflow-y: auto;
}

.info-box {
  background: #e7f3ff;
  border-left: 4px solid #4a90e2;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.info-box strong {
  color: #4a90e2;
}

.diff-item {
  margin-bottom: 15px;
  padding: 12px;
  background: #f6f8fa;
  border-radius: 4px;
  border: 1px solid #d1d9e0;
}

.diff-item-title {
  font-weight: 600;
  color: #0969da;
  margin-bottom: 8px;
}

.class-added {
  color: #155724;
  background: #d4edda;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 5px;
  font-size: 12px;
}

.class-removed {
  color: #721c24;
  background: #f8d7da;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 5px;
  font-size: 12px;
}

.text-changed {
  color: #856404;
  background: #fff3cd;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.text-unchanged {
  color: #666;
  font-size: 12px;
}
