/* PREVIEW STYLES - FIXED FOR PERFECT PDF EXPORT */
#cv-preview-container {
  background: #fff;
  width: 800px;
  min-height: 1120px;
  color: #334155;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  display: flex;
  margin: 0 auto;
}

.cv-sidebar {
  background: #0f172a;
  color: #fff;
  width: 260px;
  min-width: 260px;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cv-photo-shell {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.1);
  background: #1e293b;
  display: none;
}
.cv-photo-shell.has-image {
  display: block;
}
.cv-photo-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-main {
  flex: 1;
  padding: 45px 40px;
  background: #fff;
}

.cv-name {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.cv-tagline {
  font-size: 16px;
  color: #e30613;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.cv-section-title-main {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-section-title-main::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #f1f5f9;
}

.cv-section-title-side {
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}

.cv-contact-item {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cv-contact-item span:first-child {
  color: #fff;
  font-weight: 600;
}

.cv-item {
  margin-bottom: 25px;
}
.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.cv-item-role {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.cv-item-duration {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}
.cv-item-sub {
  font-size: 14px;
  font-weight: 600;
  color: #e30613;
  margin-bottom: 8px;
}
.cv-item-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  white-space: pre-line;
}

.skill-tag {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin: 0 4px 8px 0;
  border: 1px solid rgba(255,255,255,0.1);
}

/* PRINT ENGINE OPTIMIZATION */
@media print {
  @page {
    margin: 0;
    size: auto;
  }
  body {
    background: #fff !important;
  }
  .site-header, .site-footer, .cv-form-container, .download-btn, .loading-overlay {
    display: none !important;
  }
  #cv-preview-container {
    box-shadow: none !important;
    margin: 0 !important;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
