.container {
  max-width: 800px;
  margin: 40px auto;
  font-family: system-ui, sans-serif;

  background: var(--color-cards);
  border: 1px solid rgba(15, 23, 42, 0.04);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05)
}

.container h3{
    margin: 0 0 .75rem
}

/* ================= SETTINGS ================= */
.settings-card {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.settings-grid label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.settings-grid select {
  padding: 6px;
}

/* remove old checkbox centering rule (no longer needed) */
/* .settings-grid .checkbox { } */

/* ================= TOGGLE SWITCH ================= */
.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  margin-top: 15px;
}

/* hide native checkbox */
.toggle input {
  display: none;
}

/* switch track */
.toggle .slider {
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 999px;
  position: relative;
  transition: background 0.25s ease;
}

/* switch knob */
.toggle .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* ON state */
.toggle input:checked + .slider {
  background: #2563eb;
}

.toggle input:checked + .slider::before {
  transform: translateX(20px);
}

.toggle-label {
  white-space: nowrap;
}

/* ================= PAGE NUMBER POSITION ================= */
#pageNumberPositionWrapper {
  font-size: 14px;
  margin-top: 10px;
}

/* ================= DROP ZONE ================= */
#dropZone {
  margin-top: 30px;
  border: 2px dashed #ccc;
  border-radius: 14px;
  padding: 30px;
  background: rgba(37, 99, 235, 0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
}

#browseBtn {
  padding: 10px 18px;
  cursor: pointer;
  z-index: 10;
  position: relative;
  border-radius: 0.5em;
}

#dropZone p {
  pointer-events: none;
}

/* ================= PREVIEW ================= */
#previewList {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.preview-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.controls {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.controls button {
  cursor: pointer;
  border: none;
  background: #eee;
  padding: 6px;
  border-radius: 6px;
}

/* ================= ERROR PANEL ================= */
.error-panel {
  display: none;
  margin-top: 20px;
  padding: 12px;
  border-radius: 10px;
  background: #fff3f3;
  border: 1px solid #e0a1a1;
  font-size: 13px;
  max-height: 180px;
  overflow-y: auto;
}

.error-panel ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.error-panel li {
  margin-bottom: 6px;
}

/* ================= CONVERT ================= */
.convert-wrapper {
  margin-top: 30px;
  text-align: center;
}

#convertBtn {
  padding: 12px 20px;
  border-radius: 0.5em;
  font-size: 16px;
  cursor: pointer;
}


/* SEO */
/* ================= SEO CONTENT ================= */
.seo-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 24px;

  background: var(--color-cards);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);

  font-family: system-ui, sans-serif;
  line-height: 1.65;
  color: #0f172a;
}

/* Headings */
.seo-content h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.seo-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

/* Paragraphs */
.seo-content p {
  margin-bottom: 1rem;
  font-size: 15px;
  color: #334155;
}

/* Lists */
.seo-content ul,
.seo-content ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
  padding: 0;
}

.seo-content li {
  margin-bottom: 0.5rem;
  font-size: 15px;
  color: #334155;
}

/* Subtle emphasis */
.seo-content strong {
  color: #0f172a;
}

.how-it-works {
  max-width: 800px;
  margin: 30px auto;
  padding: 5px 20px;

  background: #f5f8ff;
  border: 1px solid #dbe4ff;
  border-radius: 10px;

  font-family: system-ui, sans-serif;
}

/* Mobile spacing */
@media (max-width: 640px) {
  .seo-content {
    padding: 18px;
  }

  .seo-content h1 {
    font-size: 1.5rem;
  }

  .seo-content h2 {
    font-size: 1.15rem;
  }
}
