@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --primary: #4f8cff;
  --secondary: #232946;
  --background: #f4f6fb;
  --accent: #eebbc3;
  --text: #232946;
  --white: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
}

section h1, article h1, aside h1, nav h1 {
  font-size: 2.8rem; /* or your preferred size */
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(79, 140, 255, 0.08);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 70px;
}

header {
  text-align: center;
  margin-bottom: 16px;
}

header h1 {
  color: var(--primary);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

header p {
  color: var(--secondary);
  font-size: 1.2rem;
}

main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.form-section, .preview-section {
  flex: 1 1 350px;
  background: var(--background);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.04);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.08);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.03);
}

.preview-section h2 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.resume-preview {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  min-height: 300px;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.04);
  font-size: 1rem;
  color: var(--secondary);
}

footer {
  text-align: center;
  color: var(--secondary);
  font-size: 1rem;
  margin-top: 24px;
}

@media (max-width: 900px) {
  main {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 12px 2px;
    margin-top: 90px !important;
  }
  .form-section, .preview-section {
    padding: 12px;
  }
  header h1 {
    font-size: 2rem;
  }
  .template-section > label {
    text-align: center;
    width: 100%;
    display: block;
  }
  .template-options {
    align-items: flex-start !important;
  }
  .template-option {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 12px;
  }
  .template-thumb {
    margin-bottom: 0 !important;
    margin-right: 10px;
  }
}

/* Template selection styles */
.template-section {
  margin-bottom: 24px;
  background: var(--background);
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.04);
}
.template-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  margin-bottom: 8px;
}
.template-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}
.template-option input[type="radio"] {
  display: none;
}
.template-thumb {
  width: 60px;
  height: 80px;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 2px solid transparent;
  display: block;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.08);
}
.template-option input[type="radio"]:checked + .template-thumb {
  border: 2.5px solid var(--primary);
  box-shadow: 0 4px 16px rgba(79, 140, 255, 0.18);
}

/* Modern template preview */
.modern-thumb {
  background: linear-gradient(135deg, #4f8cff 60%, #eebbc3 100%);
}
.resume-preview.modern {
  border-left: 6px solid #4f8cff;
  background: #fff;
  color: #232946;
}

/* Classic template preview */
.classic-thumb {
  background: repeating-linear-gradient(135deg, #232946 0 10px, #fff 10px 20px);
}
.resume-preview.classic {
  border: 2px solid #232946;
  background: #f9f9f9;
  color: #232946;
  font-family: 'Times New Roman', Times, serif;
}

/* Elegant template preview */
.elegant-thumb {
  background: linear-gradient(135deg, #fff 60%, #eebbc3 100%);
  border: 1.5px solid #eebbc3;
}
.resume-preview.elegant {
  border: 2px solid #eebbc3;
  background: #fff7fa;
  color: #4f8cff;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Minimalist template preview */
.minimalist-thumb {
  background: #fff;
  border: 2px solid #bdbdbd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.resume-preview.minimalist {
  border: 1.5px solid #bdbdbd;
  background: #fff;
  color: #232946;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  letter-spacing: 0.01em;
}

/* Vibrant template preview */
.vibrant-thumb {
  background: linear-gradient(135deg, #ff6f61 40%, #4f8cff 100%);
  border: 2px solid #ff6f61;
}
.resume-preview.vibrant {
  border-left: 8px solid #ff6f61;
  background: linear-gradient(120deg, #f4f6fb 60%, #eebbc3 100%);
  color: #232946;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 4px 24px rgba(255,111,97,0.10);
}
.resume-preview.vibrant h1, .resume-preview.vibrant h2 {
  color: #ff6f61;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .template-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.08);
}
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.navbar-actions {
  display: flex;
  gap: 12px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(34, 41, 70, 0.85);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  margin: 10vh auto;
  padding: 32px 28px 24px 28px;
  border-radius: 14px;
  max-width: 350px;
  box-shadow: 0 4px 32px rgba(79, 140, 255, 0.18);
  position: relative;
  text-align: center;
}
.close {
  position: absolute;
  top: 12px;
  right: 18px;
  color: #e74c3c;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}
.modal input[type="email"], .modal input[type="password"] {
  width: 90%;
  padding: 10px 12px;
  margin: 10px 0;
  border: 1.5px solid #4f8cff;
  border-radius: 8px;
  font-size: 1rem;
}
.modal-error {
  color: #e74c3c;
  margin-top: 10px;
  font-size: 0.95rem;
  min-height: 20px;
}

@media (max-width: 600px) {
  .navbar-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
  }
  .navbar-brand {
    margin-bottom: 0;
    font-size: 1.1rem;
  }
  .navbar-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
  }
  .navbar-actions .btn-primary {
    width: auto;
    font-size: 0.98rem;
    padding: 8px 14px;
  }
} 