:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #00dfd8;
  --brand-600: #00dfd8;
  --ink: #111827;
}
.tool-container h1,
.tool-container h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

/* -----Main Container----- */
.my-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 16px;
}
/* .ad-slot {
  background: #eceff3;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
} */

#tool-container .panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
#tool-container .panel h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}
#tool-container .grid {
  display: grid;
  gap: 12px;
}
#tool-container .grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
#tool-container .grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
#tool-container .grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  #tool-container .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  #tool-container .grid.cols-3 {
    grid-template-columns: 1fr;
  }
  #tool-container .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

#tool-container label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
#tool-container .hint {
  font-size: 0.82rem;
  color: var(--muted);
}
#tool-container input[type="text"],
#tool-container input[type="number"],
#tool-container select,
#tool-container textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font: inherit;
}
#tool-container textarea {
  min-height: 200px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}
#tool-container .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#tool-container .row > * {
  flex: 1;
}
#tool-container .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #1e1e2f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
#tool-container .btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
#tool-container .btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
#tool-container .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#tool-container .btn:hover {
  background: #1e1e2f;
  color: #000;
}
#tool-container .btn.secondary:hover {
  background: #1e1e2f;
  color: black;
}
#tool-container .switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
#tool-container .switch input {
  transform: scale(1.1);
}
#tool-container .range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#tool-container .range-row input[type="range"] {
  flex: 1;
}
#tool-container code.badge {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.78rem;
}

#tool-container .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px) {
  #tool-container .two-col {
    grid-template-columns: 1fr;
  }
}

#tool-container .tool-seo {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#tool-container .tool-seo h2 {
  margin-bottom: 10px;
}
#tool-container .tool-seo p {
  margin-bottom: 30px;
  font-size: 1rem;
}
#tool-container .tool-seo ol {
  /* list-style: none; */
  padding: 0;
  margin-left: 20px;
  margin-bottom: 30px;
}
#tool-container .tool-seo .pre-output {
  margin-bottom: 30px;
}
#tool-container .tool-seo .related {
  list-style: none;
}

@media screen and (max-width: 600px) {
  #tool-container .tool-seo {
    margin: 1rem;
    padding: 1rem;
  }
}

/* WHy Lowercase Tool */
#tool-container .whyLowercase ol li {
  padding: 10px;
}

/* Related Tools */
#tool-container .related-tools {
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

#tool-container .related-tools h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

#tool-container .tool-category {
  margin-bottom: 2rem;
}

#tool-container .tool-category h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

#tool-container .tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

#tool-container .tool-card {
  display: block;
  padding: 1rem;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

#tool-container .tool-card:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}
