.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  top: 0;
  left: 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}
.cta-button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0;
  margin-right: 0.7em;
  box-shadow: 0 2px 8px #0001;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.nav-cta {
  padding: 0.5rem 1.1rem;
  font-size: 0.98rem;
  margin-top: 0;
}

:root {
  --primary-color: #1B4965;
  --primary-light: #5FA8D3;
  --accent-color: #CAE9FF;
  --text-dark: #2C3E50;
  --text-light: #5D7A8C;
  --background: #F8FCFF;
  --white: #FFFFFF;
}

body {
  font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
  background: linear-gradient(120deg, #e0e7ff 0%, #f7fafc 100%);
  margin: 0;
  min-height: 100vh;
}

.container {
  width: 100%;
  margin: 90px 0 0 0;
  background: #fff;
  padding: 2.5em 3vw 2em 3vw;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(44, 62, 80, 0.10);
  box-sizing: border-box;
}

h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.1em;
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
}

form label {
  display: block;
  margin: 1.2em 0 0.4em 0.1em;
  font-weight: 500;
  color: var(--primary-color);
}

input, textarea, select {
  width: 100%;
  padding: 0.7em 1em;
  margin-top: 0.2em;
  border: 1.5px solid #b6c6e3;
  border-radius: 7px;
  font-size: 1em;
  background: #f7fafc;
  transition: border 0.2s;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  outline: none;
  background: #eaf6fb;
}

button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.preview {
  border: 1.5px solid #b6c6e3;
  min-height: 220px;
  background: #f4f8fb;
  margin-top: 1.5em;
  padding: 1.2em;
  border-radius: 10px;
  box-shadow: 0 1px 6px #1b496510;
  overflow-x: auto;
}

#result {
  margin-top: 1.5em;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1em;
  color: var(--primary-color);
  background: #eaf6fb;
  border-radius: 7px;
  padding: 0.7em 1em;
  word-break: break-all;
}

.main-content-flex {
  display: flex;
  gap: 2.5em;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

form#emailForm {
  flex: 1 1 0;
  min-width: 0;
  /* max-width: 320px; */
}

.preview-panel {
  flex: 1 1 0;
  min-width: 0;
  /* max-width: 420px; */
  display: flex;
  flex-direction: column;
}
.preview-panel h2 {
  margin-top: 0;
  margin-bottom: 0.7em;
  color: var(--primary-color);
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.email-info {
  background: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 1em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.email-item {
  display: flex;
  padding: 12px 16px;
  align-items: center;
  min-height: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.email-item:last-child {
  border-bottom: none;
}

.sender-name {
  font-weight: 500;
  color: #333;
  min-width: 120px;
  margin-right: 16px;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-content {
  color: #666;
  font-size: 14px;
  flex: 1;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subject {
  font-weight: 500;
  color: #333;
}

.separator {
  color: #999;
}

.preview-text {
  color: #666;
}

@media (max-width: 900px) {
  .main-content-flex {
    flex-direction: column;
    gap: 1.5em;
  }
  form#emailForm, .preview-panel {
    max-width: 100%;
  }
  .container {
    padding: 1.2em 2vw;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1.2em 0.5em;
    max-width: 98vw;
  }
  h1 {
    font-size: 1.3em;
  }
  .cta-button {
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
  }
} 