body {
  background: #0d112f;
  color: #fff;
  font-family: "Urbanist", sans-serif;
  margin: 0;
}

.formatter-wrapper {
  max-width: 1150px;
  margin: 100px auto;
  padding: 0 16px;
}

.formatter-wrapper h1 {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

.tool-description {
  text-align: center;
  font-size: 16px;
  color: #b3b9d1;
  margin-bottom: 25px;
}

/* Suggested tools row */
.formatter-tool-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 4px 25px;
  scrollbar-width: none;
}
.formatter-tool-row::-webkit-scrollbar { display: none; }

.formatter-tool-card {
  background: #0b102d;
  padding: 12px 16px;
  min-width: 130px;
  border-radius: 12px;
  border: 1px solid #1f2947;
  text-align: center;
  transition: 0.25s;
}
.formatter-tool-card:hover {
  transform: translateY(-6px);
}
.icon-box {
  font-size: 30px;
  margin-bottom: 6px;
  color: #38bdf8;
}

/* Main diff wrapper */
.diff-wrapper {
  background: transparent;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
}

/* Two code panels */
.diff-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: #0a0f2c;
  border-radius: 14px;
  border: 1px solid #1f2947;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: #b3b9d1;
}

textarea {
  width: 100%;
  height: 260px;
  background: #11192f;
  border-radius: 8px;
  border: 1px solid #334155;
  padding: 12px;
  color: #e5e7ff;
  font-size: 13px;
  font-family: monospace;
  resize: vertical;
  box-sizing: border-box;
}

/* Options row */
.options-panel {
  background: #0a0f2c;
  border-radius: 14px;
  border: 1px solid #1f2947;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.options-left {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.checkbox-label {
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.options-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-tool {
  background: #7c3aed;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  border: none;
  text-align: center;
  transition: 0.25s;
  font-size: 14px;
}
.btn-tool:hover { background: #6d28d9; }
.btn-tool.danger { background: #f73d5d; }
.btn-tool.danger:hover { background: #dc2626; }

/* Diff result panel */
.diff-result-panel {
  background: #0a0f2c;
  border-radius: 14px;
  border: 1px solid #1f2947;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diff-summary {
  font-size: 13px;
  color: #9ca3c5;
}

.diff-output {
  background: #020617;
  border-radius: 10px;
  border: 1px solid #1f2947;
  padding: 10px;
  max-height: 360px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  box-sizing: border-box;
}

/* Diff lines */
.diff-line {
  display: flex;
  gap: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 2px;
}

.line-num {
  min-width: 52px;
  text-align: right;
  font-size: 11px;
  color: #64748b;
}

.line-content {
  flex: 1;
  word-break: break-word;
}

/* Colors */
.diff-equal {
  background: transparent;
}

.diff-added {
  background: rgba(34, 197, 94, 0.12);
  border-left: 3px solid #22c55e;
}

.diff-removed {
  background: rgba(248, 113, 113, 0.16);
  border-left: 3px solid #f97373;
}

.diff-changed { /* if you want to style changed type later */ }

/* Diff actions */
.diff-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Status msg */
.status-msg {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: #9aa3c5;
}

/* Responsive */
@media (max-width: 900px) {
  .diff-panels {
    grid-template-columns: 1fr;
  }
  textarea {
    height: 220px;
  }
  .diff-output {
    max-height: 260px;
  }
  .options-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .diff-actions {
    grid-template-columns: 1fr;
  }
}
