body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f0f4fa;
  margin: 0;
  min-height: 100vh;
  transition: background 0.4s;
}

.container {
  display: flex;
  gap: 44px;
  max-width: 1200px;
  margin: 34px auto;
  padding: 32px 26px;
  background: linear-gradient(90deg, #f4f4f9 70%, #e3eeff 100%);
  border-radius: 22px;
  box-shadow: 0 8px 32px #175cff18;
}

.form-side {
  flex: 0 0 390px;
  min-width: 320px;
}

.preview-side {
  flex: 1 1 60%;
  min-width: 340px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#resume-form {
  display: flex;
  flex-direction: column;
}

#resume-form input[type="text"],
#resume-form input[type="email"],
#resume-form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 11px 10px;
  font-size: 1em;
  border-radius: 8px;
  border: 1.5px solid #c7d0ed;
  background: #f9fbfd;
  transition: border 0.2s;
  box-sizing: border-box;
}

#resume-form input:focus,
#resume-form textarea:focus {
  border: 1.5px solid #175cff;
  outline: none;
}

.button-row {
  text-align: center;
}

button {
  padding: 10px 28px;
  margin-top: 8px;
  background: #175cff;
  border: none;
  border-radius: 7px;
  color: #fff;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  outline: none;
  transition: background 0.18s;
}

button:hover {
  background: #003bb2;
}

.theme-selector {
  text-align: right;
  margin-bottom: 12px;
}

h1 {
  color: #175cff;
  margin-bottom: 10px;
  text-align: left;
  letter-spacing: 1px;
  font-size: 1.7em;
}

#live-preview-title {
  text-align: center;
  font-size: 1.13em;
  color: #678;
  margin: 8px 0 13px 0;
  font-weight: 600;
  letter-spacing: 1px;
}

.resume-section {
  padding: 28px 22px 24px 22px;
  border-radius: 14px;
  background: #fdfdfd;
  box-shadow: 0 3px 15px #175cff09;
  animation: fadeIn 0.8s;
  max-height: 90vh;
  overflow-y: auto;
  display: block;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(16px);}
  to {opacity: 1; transform: translateY(0);}
}

.resume-toolbar {
  text-align: right;
  margin-bottom: 16px;
}

.resume-toolbar button {
  background: #e9eefe;
  color: #175cff;
  margin-left: 8px;
  border: 1px solid #bfe0fa;
  font-size: 0.99em;
  padding: 5px 14px;
}

.resume-toolbar button:hover {
  background: #d6f2ff;
  color: #003bb2;
}

.resume-name {
  font-size: 2.1em;
  font-weight: 700;
  color: #133d70;
  margin-bottom: 2px;
  letter-spacing: .8px;
}

.resume-title {
  color: #2177ff;
  font-weight: 500;
  margin-bottom: 9px;
  font-size: 1.14em;
  letter-spacing: .5px;
}

.resume-contact {
  font-size: 1em;
  color: #175cff;
  font-weight: 500;
  margin-bottom: 15px;
}

.resume-about {
  margin-bottom: 17px;
  font-style: italic;
  color: #555;
  font-size: 1em;
}

.resume-section-title {
  font-size: 1.14em;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #175cff;
  transition: color 0.3s;
}

.resume-section-title.dark-theme { color: #46d8ff; }
.resume-section-title.modern-theme { color: #2eb872; }

.resume-content-block,
.resume-content-list {
  margin: 0 0 10px 12px;
  padding: 0;
  color: #333;
  line-height: 1.54em;
  font-size: 1.04em;
}

.resume-content-list {
  list-style-type: disc;
}

.skill-tag, .cc-tag, .award-tag {
  background: #e3f1ff;
  border-radius: 6px;
  padding: 2px 11px;
  margin: 0 7px 7px 0;
  display: inline-block;
  color: #2177ff;
  font-size: .99em;
}

.skill-tag.dark-theme, .cc-tag.dark-theme, .award-tag.dark-theme { background: #171f20; color: #4dfdba;}
.skill-tag.modern-theme, .cc-tag.modern-theme, .award-tag.modern-theme { background: #cbfadb; color: #199769;}

hr {
  border: 0;
  height: 1.5px;
  background: #175cff14;
  margin: 12px 0 15px 0;
}

/* Dark Theme */
body.dark-theme { background: #232628; color: #e2eafd;}
.container.dark-theme { background: #232628; color: #fff; box-shadow: 0 10px 30px #0112;}
.resume-section.dark-theme { background: #282b33;}
.resume-name.dark-theme,
.resume-title.dark-theme { color: #46d8ff; }
.resume-contact.dark-theme { color: #64f9ae; }
.resume-about.dark-theme { color: #b1ecfd; }

/* Modern Theme */
body.modern-theme { background: linear-gradient(90deg,#a2ffb5 80%,#66ffcc 100%);}
.container.modern-theme { background: #eafff3;}
.resume-section.modern-theme { background: #f4fff9;}
.resume-name.modern-theme,
.resume-title.modern-theme { color: #2eb872;}
.resume-contact.modern-theme { color: #199769;}
.resume-about.modern-theme { color: #2eb872; }

@media (max-width: 850px) {
  .container { flex-direction: column; gap: 0; padding: 14px;}
  .form-side, .preview-side { min-width: 100%; max-width: 100%;}
  .resume-section { max-height: none; }
}

::-webkit-scrollbar-thumb {
  background: #e7eefd;
  border-radius: 12px;
}
