/* Shared tool-page styles: blue theme only */
* { box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 14px 16px 28px;
  background-color: #E8D9C0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.45 0 0 0 0 0.35 0 0 0 0 0.22 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),radial-gradient(ellipse at 18% 0%, rgba(255,252,245,0.55), transparent 55%),radial-gradient(ellipse at 85% 100%, rgba(120,90,50,0.07), transparent 50%),linear-gradient(180deg, rgba(255,255,255,0.14), rgba(0,0,0,0.03));
  background-attachment: fixed;
  color: #1A1F2E;
  text-align: center;
  font-size: 17px;
  line-height: 1.45;
}
a { color: #1F2A5A; }
.brand-bar {
  max-width: 720px;
  margin: 0 auto 8px;
  text-align: center;
}
.brand-bar a {
  color: #1F2A5A;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
}
.brand-bar a:hover { text-decoration: underline; }
.intro-tool {
  max-width: 720px;
  margin: 0 auto 10px;
  text-align: left;
  font-size: 17px;
  line-height: 1.45;
}
.intro-tool h1 {
  color: #1F2A5A;
  font-size: 26px;
  margin: 6px 0 8px;
  text-align: center;
}
.intro-tool .lead {
  text-align: center;
  margin: 0 0 8px;
  font-size: 17px;
}
.intro-tool .privacy-note {
  text-align: center;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: bold;
  color: #1F2A5A;
}
hr.divider {
  width: 96px;
  border: 0;
  border-top: 3px solid #1F2A5A;
  border-radius: 2px;
  margin: 12px auto 14px;
}
.main {
  max-width: 600px;
  margin: 0 auto;
}
.sub {
  margin: 0 0 8px;
  font-size: 17px;
}
#dropzone {
  border: 3px dashed #1F2A5A;
  border-radius: 12px;
  padding: 22px 18px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 8px;
  background: #FFFEFA;
  cursor: pointer;
  transition: background 0.2s;
}
#dropzone:hover, #dropzone.dragover { background: #FBF6EC; }
#dropzone p {
  color: #1F2A5A;
  margin: 0;
  font-size: 17px;
  font-weight: bold;
}
#status {
  display: block;
  margin: 0 0 10px;
  color: #1A1F2E;
  font-size: 17px;
}
#status:empty { display: none; }
#status.ready {
  color: #1F2A5A;
  font-weight: bold;
  font-size: 18px;
  background: #FBF6EC;
  border: 2px solid #1F2A5A;
  border-radius: 8px;
  padding: 10px;
}
#status.error { color: #cf222e; font-weight: bold; }
#convertBtn { display: block; margin: 0 auto; }
button, .btn {
  background: #1F2A5A;
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}
button:hover:not(:disabled):not(.busy), .btn:hover:not(:disabled):not(.busy) { background: #162244; }
/* Idle convert button stays solid blue even when disabled (no file yet) */
#convertBtn:disabled {
  background: #1F2A5A;
  color: #fff;
  cursor: pointer;
  opacity: 1;
}
#convertBtn.busy,
#convertBtn.busy:disabled,
button.busy {
  background: #556690;
  color: #fff;
  cursor: wait;
  pointer-events: none;
}
button:disabled:not(#convertBtn), .btn:disabled {
  background: #556690;
  color: #fff;
  cursor: not-allowed;
}
#results { margin-top: 10px; text-align: left; }
#results a {
  display: block;
  margin: 8px 0;
  color: #1F2A5A;
  font-size: 16px;
  font-weight: bold;
}

.bookmark-hint {
  margin: 12px 0 4px;
  color: #1F2A5A;
  font-size: 17px;
  text-align: center;
  font-weight: normal;
}
.controls {
  max-width: 600px;
  margin: 0 auto 10px;
  text-align: left;
  background: #FBF6EC;
  border: 2px solid #1F2A5A;
  border-radius: 10px;
  padding: 12px 14px;
}
.controls label {
  display: block;
  margin: 6px 0 4px;
  color: #1F2A5A;
  font-weight: bold;
  font-size: 16px;
}
.controls input[type="range"] { width: 100%; accent-color: #1F2A5A; }
.controls input[type="number"] {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 2px solid #1F2A5A;
  border-radius: 6px;
  color: #1A1F2E;
}
.controls .hint { font-size: 15px; margin: 2px 0 8px; color: #1A1F2E; }
.meta-box {
  max-width: 600px;
  margin: 8px auto;
  text-align: left;
  background: #FBF6EC;
  border: 2px solid #1F2A5A;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
}
.meta-box h3 {
  margin: 0 0 8px;
  color: #1F2A5A;
  font-size: 18px;
  text-align: center;
}
.meta-box ul { margin: 0; padding-left: 20px; }
.meta-box li { margin: 4px 0; }
.faq {
  max-width: 720px;
  margin: 18px auto 8px;
  text-align: left;
}
.faq h2 {
  color: #1F2A5A;
  font-size: 20px;
  margin: 0 0 10px;
  text-align: center;
}
.faq .item { margin: 0 0 10px; }
.faq .q {
  color: #1F2A5A;
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 2px;
}
.faq .a { margin: 0; font-size: 16px; }

/* More free tools: compact */
.tools-nav {
  max-width: 720px;
  margin: 14px auto 6px;
  padding: 10px 12px;
  border: 2px solid #1F2A5A;
  border-radius: 10px;
  background: #FBF6EC;
  text-align: center;
}
.tools-nav h2 {
  margin: 0 0 8px;
  color: #1F2A5A;
  font-size: 17px;
  text-align: center;
}
.tools-nav .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}
.tools-nav a {
  color: #1F2A5A;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
}
.tools-nav a:hover { text-decoration: underline; background: #E8D9C0; }
.tools-nav a.current {
  background: #1F2A5A;
  color: #fff;
  pointer-events: none;
}
@media (max-width: 600px) {
  .tools-nav a { font-size: 16px; padding: 6px 8px; }
  body { font-size: 17px; }
  .intro-tool .lead { font-size: 17px; }
}

/* Limit modal (same as homepage) */
#limitModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(31, 42, 90, 0.45);
  padding: 16px;
}
#limitModal.open { display: flex; }
#limitModal .panel {
  background: #FBF6EC;
  border: 2px solid #1F2A5A;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px 22px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 40px rgba(31, 42, 90, 0.28);
}
#limitModal h3 { margin: 0 0 10px; color: #1F2A5A; font-size: 20px; line-height: 1.3; }
#limitModal p.subline { margin: 0 0 20px; color: #1A1F2E; font-size: 16px; }
#limitModal .actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
#limitModal a.cta {
  display: block;
  background: #1F2A5A;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
}
#limitModal a.cta.disabled {
  background: #556690;
  pointer-events: none;
  cursor: not-allowed;
}
#limitModal button.close-btn {
  background: transparent;
  color: #1F2A5A;
  border: 2px solid #1F2A5A;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}
#limitModal button.close-btn:hover { background: #FBF6EC; }
#limitModal button.x {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  color: #1F2A5A;
  border: none;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: bold;
}
#limitModal button.x:hover { color: #162244; }

footer.legal {
  max-width: 600px;
  margin: 12px auto 0;
  padding: 8px 0 4px;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  background: transparent;
  color: #1F2A5A;
}
footer.legal a {
  color: #1F2A5A;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
}
footer.legal a:hover { text-decoration: underline; }
footer.legal .sep { color: #1F2A5A; margin: 0 8px; }
@media (max-width: 600px) {
  footer.legal, footer.legal a { font-size: 16px; }
}
