/* styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #root {
  overflow: hidden;
  color: #1f2328;
  background: #fff;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
}

.app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.toolbar {
  display: flex;
  background: #f6f8fa;
  border-bottom: 1px solid #d1d9e0;
  flex-shrink: 0;
  align-items:  center;
  gap: 12px;
  padding: 12px 16px;
}

.toolbar h1 {
  color: #1f2328;
  margin-right: auto;
  font-size: 16px;
  font-weight: 600;
}

.toolbar h1 .logo {
  margin-right: 6px;
  font-family: ui-monospace, monospace;
  font-size: 18px;
}

.toolbar button {
  color: #1f2328;
  cursor: pointer;
  background: #f6f8fa;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  padding: 6px 14px;
  transition: background .15s;
  font-size: 13px;
}

.toolbar button:hover {
  background: #e1e4e8;
}

.toggle {
  display: flex;
  overflow: hidden;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
}

.toggle button {
  border: none;
  border-radius: 0;
}

.toggle button.active {
  color: #0969da;
  background: #ddf4ff;
}

.toggle button.active:hover {
  background: #c8e8ff;
}

.toggle button + button {
  border-left: 1px solid #d1d9e0;
}

.editors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  flex-shrink: 0;
  gap: 0;
  height: 40%;
}

.editor-pane {
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.editor-pane:first-child {
  border-right: 1px solid #d1d9e0;
}

.editor-pane label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #656d76;
  background: #f6f8fa;
  border-bottom: 1px solid #d1d9e0;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
}

.editor-pane textarea {
  color: #1f2328;
  outline: none;
  resize: none;
  tab-size: 2;
  background: #fff;
  border: none;
  flex: 1;
  width: 100%;
  padding: 12px 16px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.editor-pane textarea::placeholder {
  color: #a0a0a0;
}

.resize-handle {
  cursor: row-resize;
  background: #d1d9e0;
  flex-shrink: 0;
  height: 4px;
}

.resize-handle:hover {
  background: #0969da;
}

.diff-container {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.diff-container [data-pierre-diffs] {
  height: 100%;
}

.diff-container pre {
  min-height: 100%;
}

.app.fullscreen .editors, .app.fullscreen .resize-handle {
  display: none;
}
