body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5dc;
}
header {
  background: #8B5C2A;
  color: #fff;
  padding: 1.5em 1em 1em 1em;
  text-align: center;
}
main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1em;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1em;
}
.main-left {
  display: flex;
  flex-direction: column;
  flex: 2 1 350px;
  gap: 1em;
}
form {
  width: 100%;
  margin-right: 0;
  background: #fff;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(139,92,42,0.08);
  align-self: flex-start;
}
form section {
  margin-bottom: 1em;
}
form input, form textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.3em;
  margin-bottom: 0.7em;
  border: 1px solid #a0522d;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
  font-family: 'Aptos', 'Segoe UI', Arial, sans-serif;
}
form button[type="submit"] {
  background: #8B5C2A;
  color: #fff;
  border: none;
  padding: 0.7em 1.5em;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
form button[type="submit"]:hover {
  background: #6e431c;
}
#template-selector {
  flex: 1 1 180px;
  margin-left: 1em;
  margin-right: 0;
  min-width: 180px;
  max-width: 220px;
  align-self: flex-start;
  background: #fff;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(139,92,42,0.08);
  border: 1px solid #a0522d;
}
#template-selector button {
  display: block;
  width: 100%;
  margin-bottom: 0.5em;
  padding: 0.5em;
  border: 1px solid #8B5C2A;
  background: #fff;
  color: #8B5C2A;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}
#template-selector button:hover {
  background: #8B5C2A;
  color: #fff;
}
#resume-preview {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  min-width: unset;
  max-width: unset;
  padding: 2em 2em 2em 2em;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(139,92,42,0.12);
  transition: box-shadow 0.2s;
}
#resume-preview h2 {
  margin-top: 0;
  font-size: 2em;
  text-align: center;
  color: #8B5C2A;
}
#preview-content {
  min-height: 500px;
  border: 2px solid #a0522d;
  border-radius: 8px;
  padding: 2em;
  background: #f9f6f2;
  margin-bottom: 1.5em;
  font-size: 1.15em;
  outline: none;
  box-shadow: 0 2px 8px rgba(44,62,80,0.04);
  transition: border 0.2s, box-shadow 0.2s;
  overflow-x: auto;
}
#preview-content:focus {
  border: 2px solid #8B5C2A;
  box-shadow: 0 0 0 2px #a0522d;
}
#resume-preview button {
  margin-right: 0.5em;
  background: #8B5C2A;
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
#resume-preview button:hover {
  background: #6e431c;
}
footer {
  width: 100%;
  position: fixed;
  left: 0;
  bottom: 0;
  background: #8B5C2A;
  color: #fff;
  text-align: center;
  padding: 1em 0 0.5em 0;
  font-size: 1em;
  letter-spacing: 0.5px;
  z-index: 100;
}
footer span {
  display: block;
  margin-top: 0.2em;
  font-size: 0.95em;
  color: #a0522d;
}
@media (max-width: 900px) {
  main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-left, form, #resume-preview, #template-selector {
    margin-right: 0;
    margin-bottom: 1em;
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  #template-selector {
    margin-left: 0;
  }
  #preview-content {
    padding: 1em;
    font-size: 1em;
  }
} 