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 {
  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;
  border-radius: 12px;
  min-width: 130px;
  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;
}
.formatter-tool-card p {
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0 8px;
}

/* Container */
.formatter-container {
  background: #0a0f2c;
  border-radius: 14px;
  border: 1px solid #1f2947;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

textarea {
  background: #11192f;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px;
  font-family: monospace;
  font-size: 14px;
  resize: vertical;
  height: 470px;
  box-sizing: border-box;
}

/* Options */
.options-row {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
  margin-top: -4px;
}

.options-check {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Buttons */
.btn-tool {
  background: #7c3aed;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  border: none;
  text-align: center;
  transition: 0.25s;
}
.btn-tool:hover { background: #6d28d9; }

.btn-tool.danger { background: #f73d5d; }
.btn-tool.danger:hover { background: #dc2626; }

.file-input {
  padding: 8px;
  cursor: pointer;
}

/* Buttons layout */
.side-buttons {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.status-msg {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #9aa3c5;
}

/* Mobile */
@media (max-width: 850px) {
  .formatter-container {
    grid-template-columns: 1fr;
  }
  .side-buttons {
    grid-template-columns: 1fr;
  }
  textarea {
    height: 300px;
  }
}
