body {
  background: #0d112f;
  color: #fff;
  font-family: "Urbanist", sans-serif;
  margin: 0;
}

.formatter-wrapper {
  max-width: 1100px;
  margin: 100px auto;
  padding: 0 16px;
}

.formatter-wrapper h1 {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

.tool-description {
  font-size: 16px;
  color: #b3b9d1;
  text-align: center;
  margin-bottom: 25px;
}

.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;
  text-align: center;
  border: 1px solid #1f2947;
  border-radius: 12px;
  transition: 0.25s;
}
.formatter-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.icon-box { font-size: 30px; margin-bottom: 6px; }
.icon-box.json { color: #10b981; }
.icon-box.js { color: #f7df1e; }

.btn-tool {
  width: 100%;
  background: #7c3aed;
  padding: 10px;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}
.btn-tool:hover { background: #6d28d9; }

.formatter-container {
  background: #0a0f2c;
  margin-top: 25px;
  padding: 22px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border: 1px solid #1f2947;
  box-shadow: 0 4px 22px rgba(0,0,0,0.35);
}

textarea {
  background: #11192f;
  color: #fff;
  border: 1px solid #334155;
  padding: 14px;
  border-radius: 8px;
  width: 100%;
  height: 480px;
  font-family: monospace;
  resize: vertical;
  box-sizing: border-box;
}

.side-buttons {
  grid-column: span 2;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2,1fr);
}

.status-msg {
  grid-column: span 2;
  text-align: center;
  font-size: 14px;
  color: #9aa3c5;
}

/* Error Style */
.error {
  border-color: #f43f5e !important;
  color: #fda4af !important;
  box-shadow: 0 0 0 3px rgba(244,63,94,0.25);
}

@media (max-width: 850px) {
  .formatter-container { grid-template-columns: 1fr; }
  .side-buttons, .status-msg { grid-column: span 1; }
  textarea { height: 300px; }
}
