.resume-section {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 24px;
}

.resume-section-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--red);
  border-radius: 2px;
}

.resume-entry {
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 16px;
}

.resume-entry:hover {
  border-color: #d0d0d0;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(183, 28, 28, 0.08);
  color: var(--red);
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid rgba(183, 28, 28, 0.15);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: rgba(183, 28, 28, 0.12);
}

.skill-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.skill-remove:hover {
  opacity: 1;
}

.resume-preview-container {
  position: sticky;
  top: 24px;
}

.resume-preview-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 12px;
}

.resume-preview {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 32px;
  min-height: 500px;
}

.resume-preview-header {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--red);
}

.resume-preview-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.resume-preview-title {
  font-size: 15px;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 12px 0;
}

.resume-preview-contact {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.resume-preview-section {
  margin-bottom: 24px;
}

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

.resume-preview-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eaeaea;
}

.resume-preview-section p {
  font-size: 13px;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

.resume-preview-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
}

.resume-preview-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.resume-preview-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 4px;
}

.resume-preview-item-header strong {
  color: var(--black);
  font-weight: 600;
}

.resume-preview-item-header span {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.resume-preview-item-subtitle {
  font-size: 13px;
  color: #666;
}

.resume-preview-item-desc {
  font-size: 12px;
  color: #666;
  margin: 8px 0 0 0;
  line-height: 1.6;
}

.resume-preview-skill {
  display: inline-block;
  background: #f5f5f5;
  color: #333;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin: 0 6px 6px 0;
  font-weight: 500;
}

.resume-preview-lang {
  display: inline-block;
  font-size: 13px;
  color: #444;
  margin-right: 20px;
  padding: 4px 0;
}

.resume-section .form-control {
  border-radius: 10px;
  border: 1px solid #eaeaea;
  padding: 12px 16px;
  font-size: 14px;
}

.resume-section .form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

.resume-section .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.resume-section .btn-outline-red {
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 16px;
}

#modalPreview {
  max-height: 70vh;
  overflow-y: auto;
}

@media (max-width: 991px) {
  .resume-preview-container {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 575px) {
  .resume-section {
    padding: 20px;
  }

  .resume-preview {
    padding: 24px;
  }

  .resume-preview-name {
    font-size: 22px;
  }

  .resume-preview-item-header {
    flex-direction: column;
    gap: 4px;
  }
}
