/* ==========================================================================
   ResumePro AI - Modern Interactive Resume Builder & ATS Calculator Styles
   ========================================================================== */

:root {
  --primary: #0f2744;
  --primary-accent: #1e3a8a;
  --primary-light: #eff6ff;
  --secondary: #2563eb;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #cbd5e1;
  --border-strong: #0f2744;
  --bg-app: #0f172a;
  --bg-panel: #1e293b;
  --bg-card: #334155;
  --bg-paper: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.22);
  --page-scale: 1;
}

/* Theme color presets */
body[data-theme="navy"] {
  --primary: #0f2744;
  --primary-accent: #1e3a8a;
  --border-strong: #0f2744;
}
body[data-theme="slate"] {
  --primary: #1e293b;
  --primary-accent: #334155;
  --border-strong: #1e293b;
}
body[data-theme="emerald"] {
  --primary: #064e3b;
  --primary-accent: #047857;
  --border-strong: #064e3b;
}
body[data-theme="indigo"] {
  --primary: #312e81;
  --primary-accent: #4338ca;
  --border-strong: #312e81;
}
body[data-theme="crimson"] {
  --primary: #881337;
  --primary-accent: #9f1239;
  --border-strong: #881337;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #0b1120;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* TOP NAVBAR */
.top-navbar {
  height: 60px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.brand-text h1 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.brand-tag {
  font-size: 9px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.brand-subtitle {
  font-size: 10px;
  color: #94a3b8;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 11.8px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.nav-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.nav-btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.nav-btn.accent-green {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.nav-btn.accent-purple {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: #8b5cf6;
  color: #ffffff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* SCORE PILL */
.score-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.score-pill:hover {
  background: rgba(16, 185, 129, 0.22);
  transform: scale(1.03);
}

.score-pill-number {
  font-size: 13px;
  font-weight: 800;
  color: #34d399;
}

.score-pill-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* APP MAIN WRAPPER */
.app-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 60px);
  position: relative;
  overflow: hidden;
}

/* COLLAPSIBLE SIDEBAR FORM EDITOR */
.sidebar-editor {
  width: 380px;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease;
  z-index: 50;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-editor.collapsed {
  width: 0;
  transform: translateX(-100%);
  border-right: none;
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
}

.sidebar-header h2 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* ACCORDION GROUPS */
.accordion-item {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.accordion-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-chevron {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: none;
}

.accordion-item.open .accordion-body {
  display: block;
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 12px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 8px 12px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-family: inherit;
  font-size: 12.5px;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.4;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row .form-group {
  flex: 1;
}

.btn-add-item {
  width: 100%;
  padding: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px dashed rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.btn-add-item:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60a5fa;
}

/* ENTRY CARD IN SIDEBAR */
.entry-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

.entry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.entry-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.btn-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* CENTER CANVAS (RESUME VIEWER) */
.canvas-area {
  flex: 1;
  background: #090e17;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 60px;
  position: relative;
}

/* CANVAS TOOLBAR */
.canvas-toolbar {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 40;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.mode-toggle {
  display: flex;
  background: #0f172a;
  border-radius: 20px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-option {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mode-option.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
}

.theme-swatch:hover, .theme-swatch.active {
  transform: scale(1.2);
  border-color: #ffffff;
}

.swatch-navy { background: #0f2744; }
.swatch-slate { background: #1e293b; }
.swatch-emerald { background: #047857; }
.swatch-indigo { background: #3730a3; }
.swatch-crimson { background: #991b1b; }

.zoom-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
}

.zoom-btn {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

/* RESUME PAPER CONTAINER */
.resume-paper-wrapper {
  transform-origin: top center;
  transition: transform 0.2s ease;
}

.resume-page {
  width: 210mm;
  min-height: 297mm;
  height: 297mm;
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  padding: 8.5mm 13.5mm 7.5mm 13.5mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
  line-height: 1.32;
  font-size: 9.75px;
}

/* INLINE EDITABLE STYLES */
[contenteditable="true"] {
  outline: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  border-radius: 2px;
  padding: 0 1px;
}

[contenteditable="true"]:hover {
  background-color: rgba(59, 130, 246, 0.08);
  cursor: text;
}

[contenteditable="true"]:focus {
  background-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 0 1.5px rgba(59, 130, 246, 0.5);
}

/* ==========================================================================
   RESUME DOCUMENT STRUCTURE (MATCHING ORIGINAL PDF)
   ========================================================================== */

/* HEADER */
.resume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--border-strong);
  margin-bottom: 6px;
  gap: 14px;
}

.header-photo-wrapper {
  flex-shrink: 0;
  position: relative;
}

.header-photo {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  border: 2.5px solid var(--primary);
  outline: 2px solid #bfdbfe;
  outline-offset: 1px;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.2);
  display: block;
  cursor: pointer;
}

.photo-overlay-hint {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 7.5px;
  text-align: center;
  padding: 2px 0;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.header-photo-wrapper:hover .photo-overlay-hint {
  opacity: 1;
}

.header-center {
  flex: 1;
}

.candidate-name {
  font-size: 20.5px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 3px;
}

.candidate-tagline {
  font-size: 10.8px;
  font-weight: 600;
  color: var(--primary-accent);
  margin-bottom: 5px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  font-size: 9.5px;
  color: var(--text-muted);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.contact-item a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.header-qrs {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-img {
  width: 70px;
  height: 70px;
  border: 1.2px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
  background: #ffffff;
  display: block;
}

.qr-title {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.qr-handle {
  font-size: 7.5px;
  color: var(--text-light);
  font-family: monospace;
}

/* ATS Mode layout override */
.resume-page.ats-mode .header-photo-wrapper,
.resume-page.ats-mode .header-qrs {
  display: none !important;
}

.resume-page.ats-mode .resume-header {
  border-bottom: 2px solid #000000;
}

.resume-page.ats-mode .candidate-name {
  color: #000000;
}

/* SECTION COMMON STYLES */
.resume-section {
  margin-bottom: 5.5px;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  font-size: 10.3px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding-bottom: 1.5px;
  border-bottom: 1.5px solid var(--primary);
  margin-bottom: 3px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 1.5px;
  margin-bottom: 3.5px;
}

.section-heading-row .section-heading-text {
  font-size: 10.3px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.cert-accreditation-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-accreditation-strip span {
  font-size: 7.8px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.accreditation-logo {
  height: 12.5px;
  object-fit: contain;
  opacity: 0.95;
}

/* SUMMARY */
.summary-paragraph {
  font-size: 9.6px;
  color: var(--text-main);
  line-height: 1.34;
  text-align: justify;
}

/* ENTRIES (EXPERIENCE & EDUCATION) */
.resume-entry {
  margin-bottom: 3px;
}

.resume-entry:last-child {
  margin-bottom: 0;
}

.entry-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.entry-main-title {
  font-size: 10.1px;
  font-weight: 700;
  color: var(--primary);
}

.entry-subtitle {
  font-size: 9.3px;
  color: var(--text-muted);
  font-style: italic;
}

.entry-dates {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

.entry-grade {
  font-size: 9.1px;
  font-weight: 700;
  color: var(--primary-accent);
}

.entry-bullets {
  list-style-type: disc;
  margin-top: 1px;
  padding-left: 14px;
}

.entry-bullets li {
  font-size: 9.3px;
  color: var(--text-main);
  line-height: 1.29;
  margin-bottom: 1.2px;
}

.entry-bullets li strong {
  color: var(--primary);
  font-weight: 600;
}

/* CERTIFICATIONS 2-COLUMN GRID */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 2.5px;
}

.cert-entry {
  line-height: 1.25;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 9.3px;
}

.cert-title {
  font-weight: 700;
  color: var(--primary);
}

.cert-date {
  font-size: 8.6px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

.cert-desc {
  font-size: 8.7px;
  color: var(--text-muted);
}

/* TECHNICAL SKILLS TABLE */
.skills-block {
  display: flex;
  flex-direction: column;
  gap: 1.8px;
}

.skill-line {
  display: flex;
  font-size: 9.3px;
  line-height: 1.28;
}

.skill-label {
  width: 170px;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--primary);
}

.skill-value {
  flex: 1;
  color: var(--text-main);
}

/* SPLIT BOTTOM SECTION (LEADERSHIP & LANGUAGES) */
.bottom-two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.honors-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.honor-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 9.2px;
}

.honor-title {
  color: var(--text-main);
}

.honor-title strong {
  color: var(--primary);
  font-weight: 600;
}

.honor-date {
  font-size: 8.7px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

.languages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
  font-size: 9.1px;
}

.language-item {
  line-height: 1.24;
}

.language-name {
  font-weight: 700;
  color: var(--primary);
}

.language-level {
  color: var(--text-muted);
}

/* ==========================================================================
   SLIDE-OVER DRAWERS (CALCULATOR & IMPROVEMENT TIPS)
   ========================================================================= */

.drawer-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-drawer {
  position: fixed;
  top: 64px;
  right: -520px;
  width: 500px;
  height: calc(100vh - 64px);
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
}

.slide-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.btn-close-drawer:hover {
  color: #ffffff;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}

/* ==========================================================================
   RESUME CALCULATOR STYLES
   ========================================================================== */

.score-hero-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.score-circle-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.score-circle-svg {
  transform: rotate(-90deg);
  width: 100px;
  height: 100px;
}

.score-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.score-circle-progress {
  fill: none;
  stroke: #10b981;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.8s ease, stroke 0.3s ease;
}

.score-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-circle-number {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.score-circle-max {
  font-size: 10px;
  color: #94a3b8;
}

.score-hero-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.score-hero-details p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.score-breakdown-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.breakdown-item {
  margin-bottom: 12px;
}

.breakdown-item:last-child {
  margin-bottom: 0;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.breakdown-title {
  color: #cbd5e1;
}

.breakdown-val {
  color: #38bdf8;
  font-weight: 700;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #38bdf8);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* CHECKLIST & AUDIT LIST */
.audit-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.audit-item {
  background: #1e293b;
  border-left: 3.5px solid #10b981;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}

.audit-item.warn {
  border-left-color: #f59e0b;
}

.audit-item.fail {
  border-left-color: #ef4444;
}

.audit-icon {
  font-size: 14px;
  line-height: 1;
  margin-top: 1px;
}

.audit-content {
  flex: 1;
  color: #cbd5e1;
  line-height: 1.35;
}

.audit-content strong {
  color: #ffffff;
}

.audit-boost-pts {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  white-space: nowrap;
}

/* JOB DESCRIPTION SIMULATOR */
.job-matcher-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.job-matcher-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-preset-select {
  margin-bottom: 10px;
}

.keyword-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.kw-chip {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.kw-chip.matched {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.kw-chip.missing {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px dashed rgba(239, 68, 68, 0.35);
  cursor: pointer;
}

.kw-chip.missing:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   IMPROVEMENT TIPS HUB (CARDS & BEFORE/AFTER)
   ========================================================================== */

.tips-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
}

.tip-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.tip-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tip-badge.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tip-badge.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tip-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.tip-card p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 12px;
}

/* BEFORE & AFTER DIFF BOX */
.diff-box {
  background: #0f172a;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
  font-size: 11.5px;
}

.diff-side {
  padding: 10px 12px;
}

.diff-side.before {
  background: rgba(239, 68, 68, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fca5a5;
}

.diff-side.after {
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
}

.diff-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.diff-side.before .diff-label { color: #f87171; }
.diff-side.after .diff-label { color: #34d399; }

/* MODAL NOTIFICATION / TOAST */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PRINT MEDIA RULES (PERFECT SINGLE-PAGE A4 EXPORT)
   ========================================================================== */

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  /* Hide all UI Chrome */
  .top-navbar,
  .sidebar-editor,
  .canvas-toolbar,
  .slide-drawer,
  .drawer-overlay,
  .toast-msg,
  .photo-overlay-hint {
    display: none !important;
  }

  body {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000000 !important;
  }

  .app-container {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  .canvas-area {
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .resume-paper-wrapper {
    transform: none !important;
  }

  .resume-page {
    width: 210mm !important;
    height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 8.5mm 13.5mm 7.5mm 13.5mm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }

  [contenteditable="true"] {
    background-color: transparent !important;
    box-shadow: none !important;
  }
}
