body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
background: #f4f6f8;
}

.container {
display: flex;
height: 100vh;
}

.form-section {
width: 40%;
padding: 20px;
background: white;
overflow-y: auto;
border-right: 1px solid #ddd;
flex-shrink: 0;
}

.preview-wrapper {
flex: 1;
overflow-y: auto;
}

.resume-preview {
  width: 8.5in;
  min-height: 11in;
  padding: 0.7in;
  box-sizing: border-box;
  background: white;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

input, textarea {
width: 100%;
padding: 8px;
margin-bottom: 12px;
border: 1px solid #ccc;
font-size: 14px;
}

input[type="checkbox"] {
width: auto;
margin-right: 5px;
}

button {
padding: 8px 12px;
margin-bottom: 10px;
cursor: pointer;
background: black;
color: white;
border: none;
}

h1 {
font-size: 28px;
margin-bottom: 5px;
}

h2 {
font-size: 18px;
font-weight: bold;
text-transform: uppercase;
margin-top: 0;
}

h3 {
margin-top: 25px;
border-bottom: 2px solid #ddd;
padding-bottom: 5px;
font-size: 13px;
text-transform: uppercase;
}

.contact {
font-size: 14px;
color: #555;
}

ul {
padding-left: 20px;
}

.button-row {
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
margin-bottom: 10px;
}

.inline-checkbox {
display: flex;
align-items: center;
white-space: nowrap;
font-size: 14px;
cursor: pointer;
}

.inline-checkbox input[type="checkbox"] {
margin-right: 5px;
margin-bottom: 0;
}

.section-header-row {
display: flex;
align-items: center;
gap: 15px;
}

.section-header-row h3 {
margin-bottom: 0;
}

/* Delete button for dynamic entries */
.entry-wrapper {
  position: relative;
}
.delete-entry {
  position: absolute;
  top: 0;
  right: 0;
  background: #e74c3c;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  padding: 0;
  margin: 0;
  border-radius: 4px;
}
.delete-entry:hover {
  background: #c0392b;
}

/* Spacing between GitHub toggle and Professional Summary */
.github-toggle {
margin-bottom: 20px;
display: block;
}

/* Spacing between Portfolio toggle and Professional Summary */
.portfolio-toggle {
margin-bottom: 20px;
display: block;
}

/* Print / PDF page handling */
@media print {
  .resume-preview {
    page-break-inside: auto;
  }
  .resume-preview div, .resume-preview p, .resume-preview ul {
    page-break-inside: avoid;
  }
}

