:root {
  --primary-dark: #36383e;
  --sidebar-bg: #eee7e1;
  --content-bg: #ffffff;
  --text-main: #333333;
  --text-headings: #111111;
  --text-muted: #777777;
  --text-light: #ffffff;
  --text-sub: #cfd1db;
  --border-line: #36383e;
  --accent-color: #4f46e5;
  --ui-bg: #1e2023;
  --ui-card: #272a2e;
  --ui-border: #383c42;
  --ui-text: #e2e8f0;
  --ui-text-muted: #94a3b8;
  --page-width: 210mm;
  --page-height: 297mm;
  --sidebar-width: 70mm;
  --zoom: 0.9;
  --resume-font: 'Open Sans', sans-serif;
  --resume-line-height: 1.45;
  --resume-spacing-scale: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--ui-bg);
  color: var(--ui-text);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Studio Top Header */
.studio-navbar {
  height: 56px;
  background-color: #17181b;
  border-bottom: 1px solid var(--ui-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  flex-shrink: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.studio-brand .badge {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-name-input {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  outline: none;
  transition: all 0.15s ease;
  width: 240px;
}

.doc-name-input:hover {
  border-color: var(--ui-border);
  background: rgba(255, 255, 255, 0.04);
}

.doc-name-input:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

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

.template-pill {
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  color: var(--ui-text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.template-pill:hover {
  color: #ffffff;
  border-color: #64748b;
}

.template-pill.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ui-card);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid var(--ui-border);
}

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

.color-swatch:hover {
  transform: scale(1.2);
}

.color-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #4f46e5;
}

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

.btn {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-secondary {
  background: var(--ui-card);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
}

.btn-secondary:hover {
  background: #33373d;
  color: #ffffff;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-success {
  background: #059669;
  color: white;
}

.btn-success:hover {
  background: #047857;
}

/* Main Split Studio Layout */
.studio-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 56px);
}

/* Left Editor Panel - Resumaker.ai SaaS Light Styling */
.editor-panel {
  width: 520px;
  min-width: 460px;
  max-width: 560px;
  background-color: #f8fafc;
  border-right: 1px solid #e2e8f0;
  overflow-y: scroll;
  overflow-x: hidden;
  height: calc(100vh - 56px);
  padding: 24px 20px 100px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.editor-panel::-webkit-scrollbar {
  width: 8px;
}

.editor-panel::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.editor-panel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.editor-panel::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Resumaker Cards (Matching Image 1, 2, 3) */
.resumaker-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.resumaker-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
}

.resumaker-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.resumaker-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resumaker-card-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.4;
}

.resumaker-edit-icon {
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.resumaker-edit-icon:hover {
  color: #2563eb;
}

/* 2-Column Responsive Grid */
.resumaker-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}

.resumaker-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.resumaker-field label {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.help-tooltip-icon {
  color: #94a3b8;
  cursor: help;
  display: inline-flex;
}

.help-tooltip-icon:hover {
  color: #2563eb;
}

/* Floating / Underline Form Inputs (Matching Image 1 & 3) */
.resumaker-input, .resumaker-select {
  border: none;
  border-bottom: 1.5px solid #cbd5e1;
  background: transparent;
  padding: 8px 0;
  font-size: 13.5px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}

.resumaker-input:focus, .resumaker-select:focus {
  border-bottom: 2px solid #2563eb;
}

.resumaker-select {
  cursor: pointer;
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  appearance: none;
}

/* Date Pickers & Currently Work Here Row (Matching Image 1) */
.date-pair {
  display: flex;
  gap: 10px;
}

.date-pair .resumaker-select {
  flex: 1;
}

.currently-work-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.currently-work-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: #2563eb;
}

/* Photo Thumbnail & Action Links (Matching Image 3 & 4) */
.photo-profile-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.photo-profile-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #6366f1;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.photo-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-action-btn {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s;
}

.photo-action-btn:hover {
  text-decoration: underline;
  color: #0369a1;
}

/* More Details Collapsible Link */
.more-details-toggle {
  margin-top: 18px;
  color: #0284c7;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.more-details-toggle:hover {
  text-decoration: underline;
}

.more-details-content {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.more-details-content.open {
  display: block;
}

/* Rich Text Formatting Toolbar (Matching Image 1 & 2) */
.resumaker-editor-container {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  margin-top: 14px;
  transition: border-color 0.15s;
}

.resumaker-editor-container:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.resumaker-toolbar {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  gap: 2px;
  flex-wrap: wrap;
}

.toolbar-sep {
  width: 1px;
  height: 18px;
  background: #e2e8f0;
  margin: 0 4px;
}

.toolbar-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 4px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.toolbar-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.toolbar-btn.active {
  background: #e2e8f0;
  color: #2563eb;
}

.btn-examples {
  margin-left: auto;
  color: #0284c7;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-examples:hover {
  background: #eff6ff;
  color: #0369a1;
}

.resumaker-editor-content {
  padding: 12px 14px;
  min-height: 110px;
  font-size: 13px;
  line-height: 1.6;
  color: #1e293b;
  outline: none;
  font-family: inherit;
  white-space: pre-wrap;
}

/* Work Experience Item Card (Matching Image 1) */
.exp-card-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s;
}

.exp-card-container:hover {
  border-color: #cbd5e1;
}

.exp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
}

.exp-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
}

.exp-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-card-body.collapsed {
  display: none;
}

.add-experience-btn {
  color: #0284c7;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin-top: 4px;
  user-select: none;
}

.add-experience-btn:hover {
  text-decoration: underline;
  color: #0369a1;
}

/* Skills Tag Input */
.skills-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.skill-tag {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11.5px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-tag .level {
  color: #64748b;
  font-size: 10.5px;
}

.skill-tag .remove {
  cursor: pointer;
  color: #ef4444;
  font-weight: bold;
}

/* Edit Photo Modal (Matching Image 5) */
.photo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.photo-modal-overlay.open {
  display: flex;
}

.photo-modal {
  background: #ffffff;
  width: 580px;
  max-width: 94vw;
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.photo-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.photo-modal-close:hover {
  color: #0f172a;
}

.photo-cropper-stage {
  height: 280px;
  background: #111827;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: grab;
}

.photo-cropper-stage:active {
  cursor: grabbing;
}

.crop-mask-left, .crop-mask-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc((100% - 280px) / 2);
  background: rgba(0, 0, 0, 0.65);
  z-index: 3;
  pointer-events: none;
}

.crop-mask-left { left: 0; }
.crop-mask-right { right: 0; }

.crop-center-box {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

#cropperImg {
  position: absolute;
  max-width: none;
  pointer-events: none;
  transform-origin: center center;
}

.photo-modal-footer {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.zoom-control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zoom-slider {
  width: 140px;
  cursor: pointer;
  accent-color: #0284c7;
}

.btn-change-photo {
  color: #0284c7;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-change-photo:hover {
  text-decoration: underline;
}

.save-photo-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.save-photo-btn:hover {
  background: #0369a1;
}

/* Pre-Written Examples Modal */
.examples-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.examples-modal-overlay.open {
  display: flex;
}

.examples-modal {
  background: #ffffff;
  width: 620px;
  max-width: 94vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.examples-modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.examples-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.example-item-card {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.15s;
  line-height: 1.5;
}

.example-item-card:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* Templates View Toggle Button (Matching Resumaker.ai Image 1) */
.btn-templates-toggle {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 100;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  transition: all 0.15s ease;
}

.btn-templates-toggle:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

/* Template Chooser Drawer Panel (Matching Image 2 & 3) */
.template-chooser-panel {
  padding: 18px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #1e2024;
  color: #f1f5f9;
  min-height: 100%;
  overflow-y: auto;
}

.template-chooser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2d333b;
  padding-bottom: 12px;
}

.btn-back-to-edit {
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  transition: color 0.15s;
}

.btn-back-to-edit:hover {
  color: #60a5fa;
}

.style-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #2d333b;
}

.style-label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.line-spacing-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spacing-btn {
  background: #272a30;
  border: 1px solid #3e4451;
  color: #f1f5f9;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s;
}

.spacing-btn:hover {
  background: #373e47;
  border-color: #60a5fa;
  color: #60a5fa;
}

.template-colors-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 12px 0;
  border-bottom: 1px solid #2d333b;
  flex-wrap: wrap;
}

.color-swatch-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.color-swatch-circle:hover {
  transform: scale(1.15);
}

.color-swatch-circle.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #2563eb;
}

.swatch-check {
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  display: none;
}

.color-swatch-circle.active .swatch-check {
  display: block;
}

.custom-color-circle {
  background: #272a30;
  border: 1.5px dashed #64748b;
  color: #94a3b8;
  font-size: 16px;
  font-weight: bold;
}

.custom-color-circle:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

.font-selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #17181c;
  border: 1px solid #2d333b;
  border-radius: 6px;
}

.font-icon {
  font-weight: bold;
  font-size: 15px;
  color: #cbd5e1;
}

.font-select {
  flex: 1;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  padding-right: 18px;
}

.choose-template-section {
  margin-top: 8px;
}

.choose-template-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.template-card {
  background: #17181c;
  border: 2px solid #2d333b;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.15s ease;
  position: relative;
}

.template-card:hover {
  border-color: #4b5563;
  transform: translateY(-2px);
}

.template-card.active {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444;
}

.template-thumbnail-box {
  width: 100%;
  height: 146px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.template-card-name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
}

.template-card.active .template-card-name {
  color: #ffffff;
  font-weight: 700;
}

.template-check-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.template-card.active .template-check-badge {
  display: flex;
}

/* ================================================================
   TEMPLATE SPECIFIC LAYOUTS AND RULES
   ================================================================ */

/* Default Helper Elements */
.sidebar-avatar-wrapper {
  display: none;
}

.main-top-header {
  display: none;
}

/* 1. Michael White (Executive Chevron - Default) */
.page.template-michael-white .page-1-header {
  display: flex;
}
.page.template-michael-white .sidebar-avatar-wrapper {
  display: none;
}
.page.template-michael-white .main-top-header {
  display: none;
}

/* 2. James Miller (Modern Full Sidebar - Matching Resumaker Image 3) */
.page.template-james-miller .page-1-header {
  display: none !important;
}

.page.template-james-miller .page-sub-header {
  display: flex !important;
  background: #ffffff !important;
  border-bottom: 1.5px solid var(--primary-dark) !important;
  height: 38px !important;
}

.page.template-james-miller .page-sub-header-sidebar {
  background: var(--primary-dark) !important;
  border-right: none !important;
}

.page.template-james-miller .page-sub-header-content {
  color: #0f172a !important;
}

.page.template-james-miller .page-sub-header-name {
  color: #0f172a !important;
}

.page.template-james-miller .page-sub-header-title {
  color: #475569 !important;
}

.page.template-james-miller .page-body {
  height: 100% !important;
  display: flex !important;
}

.page.template-james-miller .sidebar {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  width: 70mm !important;
  min-width: 70mm !important;
  height: 100% !important;
  padding: 26px 18px !important;
}

.page.template-james-miller .sidebar-avatar-wrapper {
  display: flex !important;
  justify-content: center;
  margin-bottom: 22px;
}

.page.template-james-miller .sidebar-avatar-wrapper .avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  cursor: pointer;
}

.page.template-james-miller .sidebar-heading {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-size: 12.5px !important;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.page.template-james-miller .contact-item {
  color: #f1f5f9 !important;
  font-size: 11px !important;
  margin-bottom: 8px;
}

.page.template-james-miller .contact-icon svg {
  fill: #ffffff !important;
}

.page.template-james-miller .contact-text {
  color: #f1f5f9 !important;
}

.page.template-james-miller .skill-item {
  color: #ffffff !important;
  font-size: 11px !important;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.page.template-james-miller .skill-item::before {
  content: "○";
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  margin-right: 6px;
  font-weight: bold;
}

.page.template-james-miller .skill-level {
  color: #94a3b8 !important;
}

.page.template-james-miller .edu-degree {
  color: #ffffff !important;
  font-weight: 700;
}

.page.template-james-miller .edu-field,
.page.template-james-miller .edu-school {
  color: #cbd5e1 !important;
}

.page.template-james-miller .edu-dates {
  color: #94a3b8 !important;
}

.page.template-james-miller .main-top-header {
  display: block !important;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #0f172a;
}

.page.template-james-miller .main-top-header .main-name {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  margin: 0;
}

.page.template-james-miller .main-top-header .main-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  margin-top: 4px;
}

.page.template-james-miller .section-header {
  color: #0f172a !important;
  font-size: 13.5px !important;
  font-weight: 700;
  border-bottom: 1.5px solid #0f172a !important;
  padding-bottom: 4px;
}

/* 3. Steve Turner (Corporate Banner) */
.page.template-steve-turner .page-1-header {
  display: flex !important;
  height: 110px !important;
  background: var(--primary-dark) !important;
  padding: 16px 24px !important;
  color: #ffffff !important;
}

.page.template-steve-turner .sidebar {
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0;
}

.page.template-steve-turner .sidebar-avatar-wrapper {
  display: none !important;
}

.page.template-steve-turner .main-top-header {
  display: none !important;
}

.page.template-steve-turner .section-header {
  color: var(--primary-dark) !important;
  border-bottom: 1.5px solid var(--primary-dark) !important;
}

/* 4. Ashley Moore (Accent Line Luxe) */
.page.template-ashley-moore .page-1-header {
  display: none !important;
}

.page.template-ashley-moore .sidebar {
  background: #18181b !important;
  color: #ffffff !important;
  border-right: 3.5px solid var(--primary-dark) !important;
  padding: 24px 16px !important;
}

.page.template-ashley-moore .sidebar-avatar-wrapper {
  display: flex !important;
  justify-content: center;
  margin-bottom: 18px;
}

.page.template-ashley-moore .sidebar-avatar-wrapper .avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--primary-dark) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page.template-ashley-moore .sidebar-heading {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.page.template-ashley-moore .contact-text,
.page.template-ashley-moore .skill-item {
  color: #cbd5e1 !important;
}

.page.template-ashley-moore .edu-degree {
  color: #ffffff !important;
}

.page.template-ashley-moore .main-top-header {
  display: block !important;
  border-bottom: 2.5px solid var(--primary-dark) !important;
  margin-bottom: 18px;
}

.page.template-ashley-moore .section-header {
  color: var(--primary-dark) !important;
  border-bottom: 2px solid var(--primary-dark) !important;
}

/* 5. Jennifer Walker (Minimalist Executive) */
.page.template-jennifer-walker .page-1-header {
  display: flex !important;
  background: #ffffff !important;
  height: 100px !important;
  padding: 16px 24px !important;
  border-bottom: 2px solid var(--primary-dark) !important;
  color: #0f172a !important;
}

.page.template-jennifer-walker .header-name {
  color: #0f172a !important;
}

.page.template-jennifer-walker .header-title {
  color: #64748b !important;
}

.page.template-jennifer-walker .page-sub-header {
  background: #ffffff !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

.page.template-jennifer-walker .page-sub-header-name {
  color: #0f172a !important;
}

.page.template-jennifer-walker .page-sub-header-title {
  color: #64748b !important;
}

.page.template-jennifer-walker .page-sub-header-sidebar {
  background: #fafafa !important;
  border-right: 1px solid #e2e8f0 !important;
}

.page.template-jennifer-walker .sidebar {
  background: #fafafa !important;
  border-right: 1px solid #e2e8f0 !important;
}

.page.template-jennifer-walker .sidebar-heading {
  color: var(--primary-dark) !important;
  border-bottom: 1.5px solid var(--primary-dark) !important;
}

.page.template-jennifer-walker .section-header {
  color: var(--primary-dark) !important;
  border-bottom: 1.5px solid var(--primary-dark) !important;
}

/* 6. Dan Williams (Vibrant Modern Tech) */
.page.template-dan-williams {
  border-top: 8px solid var(--primary-dark) !important;
}

.page.template-dan-williams .page-1-header {
  display: flex !important;
  flex-direction: row-reverse !important;
  background: #ffffff !important;
  height: 100px !important;
  padding: 14px 24px !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

.page.template-dan-williams .header-name {
  color: #0f172a !important;
}

.page.template-dan-williams .header-title {
  color: var(--primary-dark) !important;
  font-weight: 700;
}

.page.template-dan-williams .sidebar {
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0;
}

.page.template-dan-williams .sidebar .skill-item {
  display: inline-block !important;
  background: #e2e8f0 !important;
  color: #1e293b !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  font-size: 10.5px !important;
  margin: 2px 2px !important;
}

/* Right Preview Panel */
.preview-panel {
  flex: 1;
  background-color: #2b2d31;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 80px 20px;
  position: relative;
}

.preview-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.preview-panel::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

/* Floating Zoom Bar */
.zoom-controls {
  position: fixed;
  bottom: 20px;
  right: 28px;
  background: rgba(23, 24, 27, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ui-border);
  border-radius: 30px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  z-index: 90;
}

.zoom-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.zoom-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  min-width: 44px;
  text-align: center;
  user-select: none;
}

/* Zoom Scaler Container */
.resume-scaler {
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  transition: transform 0.1s ease-out;
}

/* Resume Document Styling (A4 Exact) */
.page {
  width: var(--page-width);
  height: var(--page-height);
  position: relative;
  background: var(--content-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  color: var(--text-main);
  font-size: 11.5px;
  line-height: 1.45;
}

.page-badge {
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-size: 9px;
  color: #aaa;
  letter-spacing: 0.5px;
  user-select: none;
}

.page-1-header {
  width: 100%;
  height: 132px;
  background-color: var(--primary-dark);
  position: relative;
  display: flex;
  align-items: center;
  z-index: 2;
}

.page-sub-header {
  width: 100%;
  height: 38px;
  background-color: var(--primary-dark);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  border-bottom: 2px solid #282a2e;
}

.page-sub-header-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  background-color: var(--primary-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.page-sub-header-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  color: var(--text-light);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
}

.page-sub-header-name {
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  outline: none;
  font-size: 11px;
}

.page-sub-header-title {
  color: var(--text-sub);
  font-weight: 400;
  outline: none;
  font-size: 10.5px;
}

.avatar-wrapper {
  position: absolute;
  top: 72px;
  left: calc(var(--sidebar-width) / 2 - 60px);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background-color: #6366f1;
  z-index: 4;
  cursor: pointer;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.header-text-container {
  margin-left: calc(var(--sidebar-width) + 26px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-name {
  color: var(--text-light);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.3px;
  outline: none;
}

.header-title {
  color: var(--text-sub);
  font-size: 14.5px;
  font-weight: 400;
  margin-top: 6px;
  letter-spacing: 0.2px;
  outline: none;
}

.page-body {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  padding: 24px 20px 20px 22px;
  display: flex;
  flex-direction: column;
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
}

.page-1-sidebar {
  padding-top: 76px;
}

.main-content {
  flex: 1;
  background: var(--content-bg);
  padding: 24px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  z-index: 1;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-heading {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 11px;
  outline: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11.5px;
  color: #222222;
  font-weight: 500;
  text-decoration: none;
}

.contact-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background-color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.contact-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.contact-text {
  outline: none;
  word-break: break-all;
}

.email-link {
  text-decoration: underline;
  color: #222222;
}

.education-item {
  position: relative;
  padding-left: 14px;
  margin-bottom: 10px;
}

.education-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 14px;
  color: #111111;
}

.edu-degree {
  font-weight: 700;
  font-size: 11.5px;
  color: #111111;
  line-height: 1.35;
  outline: none;
}

.edu-field, .edu-school {
  font-size: 11px;
  color: #444444;
  line-height: 1.35;
  margin-top: 2px;
  outline: none;
}

.edu-dates {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
  outline: none;
}

.skill-item {
  font-size: 11.5px;
  color: #222222;
  margin-bottom: 6px;
  line-height: 1.35;
  outline: none;
}

.skill-level {
  color: var(--text-muted);
  font-weight: 400;
}

.section-block {
  margin-bottom: 18px;
}

.section-header {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--border-line);
  margin-bottom: 11px;
  outline: none;
}

.summary-text p {
  font-size: 11.5px;
  color: #333333;
  line-height: 1.48;
  margin-bottom: 10px;
  text-align: justify;
  outline: none;
}

.categorized-skill-list, .job-bullets {
  list-style: none;
  padding-left: 14px;
}

.categorized-skill-list li, .job-bullets li {
  position: relative;
  font-size: 11.5px;
  color: #333333;
  line-height: 1.48;
  margin-bottom: 7px;
  outline: none;
}

.categorized-skill-list li::before, .job-bullets li::before {
  content: "•";
  position: absolute;
  left: -14px;
  top: -1px;
  font-size: 14px;
  color: #111111;
}

.skill-category-title, .bullet-bold-label {
  font-weight: 700;
  color: #111111;
}

.job-block {
  margin-bottom: 16px;
}

.job-header-line {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.job-title-company {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  outline: none;
}

.job-dates {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
  outline: none;
}

.job-intro-p {
  font-size: 11.5px;
  color: #333333;
  line-height: 1.48;
  margin-bottom: 8px;
  outline: none;
}

.subproject-block {
  margin-top: 10px;
  margin-bottom: 10px;
}

.subproject-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 3px;
  outline: none;
}

.subproject-desc {
  font-size: 11.5px;
  color: #333333;
  line-height: 1.48;
  margin-bottom: 4px;
  outline: none;
}

.tech-used-line {
  font-size: 11px;
  color: #333333;
  line-height: 1.42;
  margin-top: 4px;
  outline: none;
}

.tech-used-line strong {
  color: #111111;
}

/* In-place contenteditable effects */
[contenteditable="true"]:hover {
  background-color: rgba(99, 102, 241, 0.08);
  outline: 1px dashed rgba(99, 102, 241, 0.4);
}

[contenteditable="true"]:focus {
  background-color: rgba(99, 102, 241, 0.12);
  outline: 2px solid #4f46e5;
}

/* ================================================================
   AUTHENTICATION & CLOUD SYNC UI
   ================================================================ */

.nav-auth-container {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 4px;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4f46e5;
  color: #ffffff;
  border: 1px solid #6366f1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-auth:hover {
  background: #4338ca;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25282c;
  border: 1px solid #383c42;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-badge:hover {
  background: #2e3238;
  border-color: #4f46e5;
}

.user-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #6366f1;
}

.user-avatar-initials {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.user-name-text {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* User Profile Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #1e2023;
  border: 1px solid #383c42;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 1000;
  padding: 6px 0;
  overflow: hidden;
}

.user-dropdown-menu.show {
  display: flex;
}

.user-dropdown-header {
  padding: 8px 14px;
  border-bottom: 1px solid #2e3238;
}

.user-dropdown-email {
  font-size: 11px;
  color: #94a3b8;
  word-break: break-all;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12px;
  color: #cbd5e1;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-dropdown-item:hover {
  background: #282c32;
  color: #ffffff;
}

.user-dropdown-divider {
  height: 1px;
  background: #2e3238;
  margin: 4px 0;
}

/* Modals Overlay & Card */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal-overlay.show {
  display: flex;
}

.auth-modal-card {
  width: 100%;
  max-width: 420px;
  background: #18191c;
  border: 1px solid #2e3238;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.auth-modal-close:hover {
  color: #ffffff;
}

.auth-modal-brand {
  text-align: center;
  margin-bottom: 22px;
}

.auth-modal-brand h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 6px;
}

.auth-modal-brand p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.social-login-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  border-color: #e5e7eb;
}

.btn-google:hover {
  background: #f3f4f6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-facebook {
  background: #1877f2;
  color: #ffffff;
}

.btn-facebook:hover {
  background: #0c63d4;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.3);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2e3238;
}

.auth-divider span {
  padding: 0 10px;
}

.btn-continue-guest {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1px solid #383c42;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-continue-guest:hover {
  background: #25282c;
  color: #ffffff;
}

.auth-config-footer {
  margin-top: 20px;
  text-align: center;
  border-top: 1px solid #282c32;
  padding-top: 12px;
}

.auth-config-footer a {
  font-size: 11.5px;
  color: #818cf8;
  text-decoration: none;
  font-weight: 500;
}

.auth-config-footer a:hover {
  text-decoration: underline;
}

/* Config Modal */
.config-card {
  max-width: 480px;
}

.config-input-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.config-input-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
}

/* Save Custom Template UI in Drawer */
.btn-save-custom-template {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: #1e293b;
  border: 1px dashed #4f46e5;
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save-custom-template:hover {
  background: #312e81;
  color: #ffffff;
  border-style: solid;
}

.template-card .template-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.template-card:hover .template-delete-btn {
  opacity: 1;
}

.template-card .template-delete-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Print Rules */
@media print {
  body {
    background: transparent !important;
    overflow: visible !important;
    height: auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .studio-navbar, .editor-panel, .zoom-controls {
    display: none !important;
  }

  .studio-body {
    display: block !important;
    height: auto !important;
  }

  .preview-panel {
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .resume-scaler {
    transform: none !important;
    gap: 0 !important;
  }

  .page {
    box-shadow: none !important;
    margin: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .page:last-child {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .page-badge {
    display: none !important;
  }

  [contenteditable="true"] {
    outline: none !important;
    background: transparent !important;
  }
}

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