/* ============================================================
   ADDpdf shared styles — used by index.html, auth.html and
   dashboard.html so all three pages render as one visual system.
   ============================================================ */

html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  background-color: #fbfaff;
  color: #241f38;
}
h1, h2, h3, .font-display { font-family: "Poppins", sans-serif; }

/* Glassmorphism helper */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Decorative soft gradient blobs used behind hero / auth panels */
.bg-blob { filter: blur(60px); opacity: 0.55; }

.reveal { opacity: 0; }
.reveal.in-view { opacity: 1; }

/* Custom scrollbar for a cleaner, "pro coder" feel */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d9d0ff; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #bcaaff; }

/* Dropzone active / drag states (dashboard) */
#dropzone {
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
#dropzone.drag-over {
  transform: scale(1.015);
  border-color: #8266f0;
  background-color: #f6f4ff;
  box-shadow: 0 20px 60px -15px rgba(130, 102, 240, 0.35);
}
#dropzone.drag-over .drop-icon { transform: translateY(-6px) scale(1.08); }
#dropzone.tool-switched { animation: pulseOnce 0.6s ease-out; }
.drop-icon { transition: transform 0.3s ease; }

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.file-chip { animation: popIn 0.3s ease both; }

#mobileMenu { transition: max-height 0.35s ease, opacity 0.3s ease; }

/* Tool cards (dashboard: rendered from JS data; landing: static markup) */
.tool-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(36, 31, 56, 0.06);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px -6px rgba(90, 70, 160, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
}
.tool-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 16px 40px -10px rgba(90, 70, 160, 0.22);
  border-color: rgba(130, 102, 240, 0.25);
}
.tool-card.active-tool {
  border-color: #8266f0;
  box-shadow: 0 16px 40px -10px rgba(130, 102, 240, 0.3), 0 0 0 3px rgba(130, 102, 240, 0.12);
}
.tool-card .icon-wrap {
  width: 2.75rem; height: 2.75rem; border-radius: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 1rem; transition: transform 0.25s ease;
}
.tool-card:hover .icon-wrap { transform: scale(1.1) rotate(-4deg); }
.tool-card h4 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem; color: #241f38; margin-bottom: 0.35rem; }
.tool-card p { font-size: 0.825rem; line-height: 1.4; color: rgba(36, 31, 56, 0.55); }
.real-badge {
  position: absolute; top: 0.9rem; right: 0.9rem; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 0.2rem 0.5rem; border-radius: 999px;
  background: rgba(62, 193, 146, 0.15); color: #2c9c76;
}

/* Mock progress bar (dashboard) */
#mockProgressTrack { transition: opacity 0.25s ease; }
#mockProgressBar { transition: width 2s linear; }

/* Modal overlay (dashboard) */
#premiumModal, #errorModal { transition: opacity 0.25s ease; }
.modal-card { transition: transform 0.25s ease, opacity 0.25s ease; }

/* Contact modal: custom checkbox (Terms & Conditions consent) */
.contact-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.4rem;
  border: 1.5px solid rgba(36, 31, 56, 0.2);
  background: white;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.contact-checkbox:checked {
  background: #8266f0;
  border-color: #8266f0;
}
.contact-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.contact-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(130, 102, 240, 0.25);
}

/* Legal pages (Privacy/Terms): raw <h2>/<p> content styled to match the
   requested Tailwind utilities (font-display text-2xl font-bold
   text-ink-900 mt-10 mb-4 / text-ink-700/75 leading-relaxed mb-6) —
   written as literal CSS since this file isn't Tailwind-processed. */
.legal-content h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #171325;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: rgba(51, 43, 77, 0.75);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}
.legal-content a { color: #8266f0; text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: #6b4fd6; }
.legal-content strong { color: #241f38; font-weight: 700; }

/* Auth-check / route-guard overlay (dashboard) */
#authCheckOverlay { transition: opacity 0.3s ease; }

/* Auth page form inputs + primary button */
.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(36, 31, 56, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  color: #241f38;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-input:focus {
  outline: none;
  border-color: #8266f0;
  box-shadow: 0 0 0 3px rgba(130, 102, 240, 0.15);
}
.auth-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(36, 31, 56, 0.7);
  margin-bottom: 0.35rem;
}
.auth-btn-primary {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  background-image: linear-gradient(to right, #9c85ff, #8266f0);
  box-shadow: 0 10px 40px -12px rgba(90, 70, 160, 0.18);
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.auth-btn-primary:hover:not(:disabled) { transform: scale(1.02); }
.auth-btn-primary:active:not(:disabled) { transform: scale(0.98); }
.auth-btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
