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 cards */
.formatter-tool-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 22px;
  scrollbar-width: none;
}
.formatter-tool-row::-webkit-scrollbar {
  display: none;
}

.formatter-tool-card {
  min-width: 220px;
  background: radial-gradient(circle at top, #1f2145 0, #050814 70%);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 1px #0f172a, 0 32px 60px rgba(0,0,0,0.85);
  text-align: left;
  transition: 0.3s;
}
.formatter-tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 45px 85px rgba(0,0,0,0.95);
}

.icon-box {
  font-size: 32px;
  margin-bottom: 8px;
}
.icon-box.primary { color: #38bdf8; }
.icon-box.secondary { color: #22c55e; }
.icon-box.accent { color: #a855f7; }

.formatter-tool-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}
.card-desc {
  font-size: 12px;
  color: #9aa3c5;
  margin-bottom: 12px;
}

/* Layout */
.converter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 22px;
}

.left-panel,
.right-panel {
  background: #0a0f2c;
  border-radius: 14px;
  border: 1px solid #1f2947;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Preview */
.preview-box {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 25px 55px rgba(0,0,0,0.75);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.preview-label {
  font-weight: 700;
  color: #818cf8;
}
.preview-middle {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
}
.preview-note {
  font-size: 12px;
  color: #ccc;
  margin-top: 6px;
}

/* Fields */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #b3b9d1;
}

input,
textarea {
  background: #11192f;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 9px 10px;
  color: #e5e7ff;
}

textarea {
  resize: vertical;
  min-height: 200px;
}

/* Layout rows */
.inline-row {
  display: grid;
  grid-template-columns: 1.3fr auto auto;
  gap: 8px;
}

.triple-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Buttons */
.btn-tool {
  background: #7c3aed;
  padding: 9px;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}
.btn-tool:hover {
  background: #6d28d9;
}

.btn-tool.small {
  font-size: 12px;
  padding: 6px 9px;
}

.btn-tool.primary {
  background: #22c55e;
}
.btn-tool.primary:hover {
  background: #16a34a;
}

.btn-tool.danger {
  background: #ef4444;
}
.btn-tool.danger:hover {
  background: #dc2626;
}

/* Recent */
.recent-box {
  padding: 10px;
  background: #020617;
  border-radius: 10px;
}

.recent-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-swatch {
  width: 28px;
  height: 28px;
  border-radius: 100%;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.7);
}

/* Responsive */
@media(max-width:900px){
  .converter-grid { grid-template-columns: 1fr; }
  .inline-row { grid-template-columns: 1fr; }
}
