/* ============================================================
   SunuCV - Builder Dashboard Styles
   ============================================================ */

:root {
  --sidebar-width: 300px;
  --sidebar-collapsed: 0px;
  --preview-width: 50%;
  --panel-header: 56px;
  --transition-panel: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Builder Layout ----- */
.builder-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--light);
}

/* ----- Sidebar (Form Panel) ----- */
.builder-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid #E8E8E8;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition-panel);
  overflow: hidden;
}

.builder-sidebar.collapsed {
  width: 0;
  min-width: 0;
  border-right: none;
}

.sidebar-header {
  padding: 12px 20px;
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--panel-header);
  flex-shrink: 0;
}

.sidebar-header .sidebar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--dark-light);
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  background: rgba(108,92,231,0.1);
  color: var(--primary);
}

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

.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 2px; }

/* Form Sections in Sidebar */
.form-section {
  margin-bottom: 28px;
}

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

.form-section-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-header .section-toggle {
  font-size: 0.75rem;
  color: var(--dark-light);
  transition: var(--transition);
}

.form-section.collapsed .section-content { display: none; }
.form-section.collapsed .section-toggle { transform: rotate(-90deg); }

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group .required::after {
  content: ' *';
  color: #FF7675;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #E8E8E8;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

.form-control.error {
  border-color: #FF7675;
  box-shadow: 0 0 0 3px rgba(255,118,117,0.1);
}

.form-control.success {
  border-color: #00B894;
  box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

.form-control::placeholder {
  color: #B0B0B0;
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636E72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-error {
  font-size: 0.75rem;
  color: #FF7675;
  margin-top: 4px;
  display: none;
}

.form-error.visible { display: block; }

.form-help {
  font-size: 0.75rem;
  color: var(--dark-light);
  margin-top: 4px;
}

/* Photo Upload */
.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 2px dashed #E0E0E0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.photo-upload:hover {
  border-color: var(--primary);
  background: rgba(108,92,231,0.03);
}

.photo-upload.has-photo {
  border-style: solid;
  border-color: #00B894;
}

.photo-upload-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light);
}

.photo-upload-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--dark-light);
}

.photo-upload .upload-text {
  font-size: 0.85rem;
  color: var(--dark-light);
}

.photo-upload .upload-hint {
  font-size: 0.75rem;
  color: #B0B0B0;
}

/* ----- Repeatable Sections (Dynamic) ----- */
.repeatable-section {
  margin-bottom: 20px;
}

.repeatable-items { margin-bottom: 12px; }

.repeatable-item {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  border: 1px solid transparent;
  transition: var(--transition);
}

.repeatable-item:hover {
  border-color: #E0E0E0;
}

.repeatable-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: move;
}

.repeatable-item-header .item-title {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.repeatable-item-header .item-actions {
  display: flex;
  gap: 4px;
}

.repeatable-item-header .item-actions button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--dark-light);
}

.repeatable-item-header .item-actions button:hover {
  background: rgba(0,0,0,0.05);
}

.repeatable-item-header .item-actions .btn-delete:hover {
  background: rgba(255,118,117,0.1);
  color: #FF7675;
}

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

.repeatable-item.dragging {
  opacity: 0.5;
  background: rgba(108,92,231,0.05);
}

.repeatable-item.drag-over {
  border-color: var(--primary);
  border-style: dashed;
}

.add-item-btn {
  width: 100%;
  padding: 12px;
  border: 2px dashed #E0E0E0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--dark-light);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.add-item-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108,92,231,0.03);
}

/* ----- Main Content Area ----- */
.builder-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Bar */
.builder-topbar {
  padding: 8px 20px;
  background: var(--white);
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--panel-header);
  flex-shrink: 0;
}

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

.topbar-left .topbar-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.topbar-left .auto-save-indicator {
  font-size: 0.8rem;
  color: var(--dark-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B0B0B0;
}

.save-dot.saving { background: #FDCB6E; animation: pulse-dot 1s infinite; }
.save-dot.saved { background: #00B894; }
.save-dot.error { background: #FF7675; }

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

.topbar-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--light);
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.topbar-btn:hover {
  background: rgba(108,92,231,0.1);
  color: var(--primary);
}

.topbar-btn.primary {
  background: var(--gradient-main);
  color: var(--white);
}

.topbar-btn.primary:hover {
  box-shadow: 0 4px 16px rgba(108,92,231,0.4);
  transform: translateY(-1px);
}

/* ----- Preview Panel ----- */
.builder-preview {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--light);
}

.preview-toolbar {
  padding: 8px 20px;
  background: var(--white);
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

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

.preview-toolbar-left .preview-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-light);
}

.preview-zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-zoom-controls button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--dark-light);
}

.preview-zoom-controls button:hover {
  background: rgba(108,92,231,0.1);
  color: var(--primary);
}

.preview-zoom-controls .zoom-level {
  font-size: 0.8rem;
  color: var(--dark-light);
  min-width: 36px;
  text-align: center;
}

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

.template-selector {
  display: flex;
  background: var(--light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.template-selector button {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--dark-light);
  transition: var(--transition);
}

.template-selector button.active {
  background: var(--primary);
  color: var(--white);
}

/* Preview Canvas */
.preview-container {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  background: #E8E8E8;
}

.preview-container::-webkit-scrollbar { width: 4px; height: 4px; }
.preview-container::-webkit-scrollbar-track { background: transparent; }
.preview-container::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 2px; }

.preview-canvas {
  width: 210mm;
  min-height: 297mm;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform-origin: top center;
  transition: transform 0.2s ease;
}

/* ----- Customization Panel ----- */
.customization-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.customization-panel.open {
  right: 0;
}

.customization-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customization-panel-header h3 {
  font-size: 1rem;
}

.customization-panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.customization-panel-scroll::-webkit-scrollbar { width: 4px; }
.customization-panel-scroll::-webkit-scrollbar-track { background: transparent; }
.customization-panel-scroll::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 2px; }

.customization-group {
  margin-bottom: 24px;
}

.customization-group h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-light);
  margin-bottom: 12px;
}

/* Color swatches */
.color-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}

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

.color-swatch.active {
  border-color: var(--dark);
  box-shadow: 0 0 0 2px var(--white);
}

.color-swatch.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Font selector */
.font-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.font-option {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--light);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-size: 0.9rem;
}

.font-option:hover {
  border-color: #E0E0E0;
}

.font-option.active {
  border-color: var(--primary);
  background: rgba(108,92,231,0.05);
}

/* Toggle switches */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.toggle-row label {
  font-size: 0.9rem;
  font-weight: 500;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: #D0D0D0;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch .toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-knob {
  left: 22px;
}

/* Range slider */
.range-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-control input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #E0E0E0;
  border-radius: 2px;
  outline: none;
}

.range-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(108,92,231,0.3);
}

.range-control .range-value {
  min-width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

/* Layout options */
.layout-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.layout-option {
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--light);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.layout-option:hover {
  border-color: #E0E0E0;
}

.layout-option.active {
  border-color: var(--primary);
  background: rgba(108,92,231,0.05);
}

.layout-option .layout-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.layout-option .layout-label {
  font-size: 0.75rem;
  color: var(--dark-light);
}

/* ----- CV Preview Template Styles ----- */
.cv-page {
  width: 210mm;
  min-height: 297mm;
  padding: 20mm 15mm;
  font-size: 11pt;
  line-height: 1.5;
  color: #333;
  position: relative;
}

.cv-page * {
  box-sizing: border-box;
}

/* Template: Modern */
.cv-template-modern .cv-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--cv-primary, #6C5CE7);
  margin-bottom: 20px;
}

.cv-template-modern .cv-name {
  font-size: 28pt;
  font-weight: 700;
  color: var(--cv-primary, #6C5CE7);
  margin-bottom: 4px;
}

.cv-template-modern .cv-title-line {
  font-size: 12pt;
  color: #666;
  margin-bottom: 12px;
}

.cv-template-modern .cv-contact-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 9pt;
  color: #555;
}

.cv-template-modern .cv-contact-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cv-template-modern .cv-section {
  margin-bottom: 16px;
}

.cv-template-modern .cv-section-title {
  font-size: 13pt;
  font-weight: 700;
  color: var(--cv-primary, #6C5CE7);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #E8E8E8;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.cv-template-modern .cv-item {
  margin-bottom: 12px;
}

.cv-template-modern .cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.cv-template-modern .cv-item-title {
  font-weight: 700;
  font-size: 11pt;
}

.cv-template-modern .cv-item-subtitle {
  font-weight: 600;
  color: #555;
  font-size: 10pt;
}

.cv-template-modern .cv-item-date {
  font-size: 9pt;
  color: #999;
  white-space: nowrap;
}

.cv-template-modern .cv-item-description {
  font-size: 10pt;
  color: #555;
  margin-top: 4px;
}

.cv-template-modern .cv-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-template-modern .cv-skill-tag {
  padding: 3px 12px;
  background: rgba(var(--cv-primary-rgb, 108,92,231), 0.1);
  color: var(--cv-primary, #6C5CE7);
  border-radius: 50px;
  font-size: 9pt;
  font-weight: 500;
}

.cv-template-modern .cv-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid var(--cv-primary, #6C5CE7);
}

/* Template: Classic */
.cv-template-classic {
  font-family: 'Georgia', 'Times New Roman', serif;
}

.cv-template-classic .cv-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.cv-template-classic .cv-name {
  font-size: 26pt;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.cv-template-classic .cv-title-line {
  font-size: 11pt;
  color: #555;
  font-style: italic;
  margin-bottom: 12px;
}

.cv-template-classic .cv-contact-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 9pt;
  color: #555;
}

.cv-template-classic .cv-section {
  margin-bottom: 16px;
}

.cv-template-classic .cv-section-title {
  font-size: 12pt;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.cv-template-classic .cv-item {
  margin-bottom: 12px;
}

.cv-template-classic .cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cv-template-classic .cv-item-title {
  font-weight: 700;
  font-size: 11pt;
}

.cv-template-classic .cv-item-subtitle {
  font-style: italic;
  color: #555;
  font-size: 10pt;
}

.cv-template-classic .cv-item-date {
  font-size: 9pt;
  color: #888;
}

.cv-template-classic .cv-item-description {
  font-size: 10pt;
  color: #444;
  margin-top: 4px;
}

.cv-template-classic .cv-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cv-template-classic .cv-skill-tag {
  padding: 2px 10px;
  background: #F0F0F0;
  color: #333;
  font-size: 9pt;
}

.cv-template-classic .cv-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 2px solid #333;
}

/* Template: Premium */
.cv-template-premium {
  font-family: 'Palatino', 'Georgia', serif;
}

.cv-template-premium .cv-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--cv-primary, #6C5CE7), var(--cv-secondary, #A29BFE));
  color: white;
  margin: -20mm -15mm 20mm;
  position: relative;
}

.cv-template-premium .cv-name {
  font-size: 30pt;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.cv-template-premium .cv-title-line {
  font-size: 12pt;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 12px;
}

.cv-template-premium .cv-contact-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 9pt;
  color: rgba(255,255,255,0.8);
}

.cv-template-premium .cv-section {
  margin-bottom: 18px;
}

.cv-template-premium .cv-section-title {
  font-size: 12pt;
  font-weight: 700;
  color: var(--cv-primary, #6C5CE7);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--cv-primary, #6C5CE7);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.cv-template-premium .cv-item {
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid #E8E8E8;
}

.cv-template-premium .cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cv-template-premium .cv-item-title {
  font-weight: 700;
  font-size: 11pt;
  color: #222;
}

.cv-template-premium .cv-item-subtitle {
  font-weight: 600;
  color: var(--cv-primary, #6C5CE7);
  font-size: 10pt;
}

.cv-template-premium .cv-item-date {
  font-size: 9pt;
  color: #999;
}

.cv-template-premium .cv-item-description {
  font-size: 10pt;
  color: #555;
  margin-top: 4px;
  line-height: 1.6;
}

.cv-template-premium .cv-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-template-premium .cv-skill-tag {
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--cv-primary, #6C5CE7), var(--cv-secondary, #A29BFE));
  color: white;
  border-radius: 3px;
  font-size: 9pt;
  font-weight: 500;
}

.cv-template-premium .cv-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Template: Minimalist */
.cv-template-minimalist {
  font-family: 'Helvetica', 'Arial', sans-serif;
}

.cv-template-minimalist .cv-header {
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.cv-template-minimalist .cv-name {
  font-size: 24pt;
  font-weight: 300;
  color: #222;
  margin-bottom: 2px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cv-template-minimalist .cv-title-line {
  font-size: 10pt;
  color: #999;
  font-weight: 300;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.cv-template-minimalist .cv-contact-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 8pt;
  color: #777;
}

.cv-template-minimalist .cv-section {
  margin-bottom: 20px;
}

.cv-template-minimalist .cv-section-title {
  font-size: 9pt;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.cv-template-minimalist .cv-item {
  margin-bottom: 14px;
}

.cv-template-minimalist .cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cv-template-minimalist .cv-item-title {
  font-weight: 600;
  font-size: 10pt;
  color: #333;
}

.cv-template-minimalist .cv-item-subtitle {
  color: #777;
  font-size: 9pt;
  font-weight: 300;
}

.cv-template-minimalist .cv-item-date {
  font-size: 8pt;
  color: #BBB;
}

.cv-template-minimalist .cv-item-description {
  font-size: 9pt;
  color: #666;
  margin-top: 4px;
  font-weight: 300;
}

.cv-template-minimalist .cv-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cv-template-minimalist .cv-skill-tag {
  padding: 2px 0;
  color: #555;
  font-size: 9pt;
  font-weight: 300;
}

.cv-template-minimalist .cv-skill-tag:not(:last-child)::after {
  content: ' /';
  color: #CCC;
}

.cv-template-minimalist .cv-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 12px;
  display: block;
  filter: grayscale(100%);
}

/* ----- Print Styles ----- */
@media print {
  .builder-sidebar,
  .builder-topbar,
  .preview-toolbar,
  .customization-panel,
  .back-to-top { display: none !important; }

  .builder-main { margin: 0; }
  .preview-container { padding: 0; background: white; overflow: visible; }
  .preview-canvas { box-shadow: none; width: 100%; }
  .cv-page { padding: 20mm 15mm; }
}
