/* Custom styles for CV & Resume Builder */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --preview-scale: 1;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* A4 Sheet Dimensions for Screen and Print */
.resume-sheet {
  width: 210mm;
  min-height: 297mm;
  padding: 16mm 18mm;
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  box-sizing: border-box;
  transform-origin: top center;
  transition: transform 0.15s ease-out;
}

/* ATS Font Stacks */
.font-ats-sans {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.font-ats-serif {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
}

/* Template 1: ATS Minimalist Modern */
.template-minimalist {
  font-family: 'Inter', Arial, sans-serif;
  color: #1e293b;
  line-height: 1.5;
}
.template-minimalist h1 {
  font-size: 24pt;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.template-minimalist .section-title {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e3a8a; /* Deep ATS Navy */
  border-bottom: 1.5px solid #cbd5e1;
  padding-bottom: 3px;
  margin-top: 14px;
  margin-bottom: 8px;
}

/* Template 2: ATS Classic Single Column */
.template-classic {
  font-family: 'Merriweather', 'Times New Roman', Georgia, serif;
  color: #111827;
  line-height: 1.45;
}
.template-classic h1 {
  font-size: 22pt;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.template-classic .section-title {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000000;
  border-bottom: 1px solid #000000;
  padding-bottom: 2px;
  margin-top: 14px;
  margin-bottom: 8px;
}

/* Step Wizard Transition */
.wizard-step {
  display: none;
  animation: fadeIn 0.25s ease-in-out forwards;
}
.wizard-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Print Rules for html2pdf.js and Browser Print */
@media print {
  body {
    background: transparent !important;
    padding: 0 !important;
  }
  .no-print {
    display: none !important;
  }
  .resume-sheet {
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 12mm 15mm !important;
    transform: none !important;
  }
}
