body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111827;
  background: #f3f4f6;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #e6e9ee;
  position: sticky;
  top: 0;
  z-index: 10;
}
.toolbar button,
.toolbar select {
  padding: 6px 10px;
  border: 1px solid #e6e9ee;
  border-radius: 6px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 14px;
}
.toolbar button:hover,
.toolbar select:hover {
  background: #f1f5f9;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.06);
}
.left-visual {
  width: 0;
  display: none;
}
.content {
  flex: 1;
  padding: 36px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.meta {
  flex: 1;
  min-width: 260px;
}
.name {
  font-size: 34px;
  font-weight: 700;
  margin: 0;
}
.title {
  font-size: 18px;
  color: #6b7280;
  margin-top: 6px;
  font-style: italic;
}
.contact {
  color: #6b7280;
  margin-top: 10px;
  font-size: 14px;
  word-break: break-word;
}
.photo {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  cursor: pointer;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section {
  margin-top: 24px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  border-bottom: 2px solid #111;
  padding-bottom: 8px;
}
.job-title {
  font-weight: 700;
}
.job-meta {
  color: #6b7280;
  font-size: 13px;
  margin-top: 6px;
}
.job-desc {
  margin-top: 8px;
  color: #111;
  line-height: 1.5;
}
.two-col {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.two-col > div {
  flex: 1;
  min-width: 220px;
}
.subhead {
  font-weight: 600;
  margin-bottom: 6px;
}

/* ✅ Fixed: Skills look neat */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.skill {
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

/* ✅ Fixed: Action buttons centered */
.controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.control-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
button,
select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e6e9ee;
  background: #fff;
  cursor: pointer;
}
.note {
  color: #6b7280;
  font-size: 13px;
  margin-top: 8px;
}

/* ✅ Footer note styling */
.footer-note {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
}

/* Tablet */
@media (max-width: 900px) {
  .photo {
    width: 96px;
    height: 96px;
  }
  .top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .meta {
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .content {
    padding: 20px;
  }
  .name {
    font-size: 26px;
  }
  .title {
    font-size: 16px;
  }
  .section-title {
    font-size: 16px;
  }
  .toolbar {
    justify-content: center;
  }
  .toolbar button,
  .toolbar select {
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* Print */
@media print {
  .controls,
  .toolbar {
    display: none !important;
  }
  .card {
    box-shadow: none;
    border-radius: 0;
  }
}
/* Modal overlay */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

/* Modal box */
.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.checkboxes {
  text-align: left;
  margin: 15px 0;
}

.modal-actions {
  margin-top: 20px;
}

.modal-actions button {
  padding: 8px 15px;
  margin: 0 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#confirmDownload {
  background: #007bff;
  color: #fff;
}

#cancelDownload {
  background: #ccc;
}
