/* CareerNest Companion – Unified Style (MVP v1.4 Final Patch) */

/* 🧱 Base Layout */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 40px auto;
  max-width: 720px;
  line-height: 1.6;
  padding: 0 20px;
  color: #222;
  background-color: #f9f9f9;
}

h1, h2 {
  font-weight: 600;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1.2em;
}

/* 🧾 Form Elements */
textarea, input, select {
  width: 100%;
  margin: 6px 0 6px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  background: white;
}

select {
  background-color: white;
}

/* ✅ Align all major blocks */
select#flowType,
#userInput,
#referralBanner,
#quoteBar {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* 🖱️ Buttons */
button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #0056b3;
}

#submitBtn, #saveProfile {
  margin-top: 10px;
}

/* 📤 Output Box */
#outputBox {
  white-space: pre-wrap;
  background: #eef3f7;
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
  border: 1px solid #d0dce7;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* ⚙️ Advanced Options */
#advancedFields {
  display: none;
  margin-top: 10px;
}

#draftSaved {
  font-size: 0.9rem;
  color: green;
  margin: -12px 0 10px;
}

/* 👍👎 Reactions */
.reaction-buttons {
  margin-top: 12px;
}

.reaction-buttons button {
  font-size: 1.2rem;
  margin-right: 12px;
  background: #eee;
  color: #333;
  border: 1px solid #ccc;
}

/* ⭐ Feedback */
#submitFeedback {
  margin-top: 12px;
  display: none;
}

/* ⚠️ Profile Warning */
#profileWarning {
  color: #b00020;
  background: #fff3f3;
  padding: 12px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 0.95rem;
  border: 1px solid #f5c6cb;
}

/* ⭐ Star Rating */
.star-rating {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  direction: rtl;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: gold;
}

/* 🔧 Labels + Customize Toggle */
label {
  font-weight: bold;
}

#toggleAdvanced {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  display: block;
  margin-top: 0px !important;         /* ✅ Removes top gap */
  margin-bottom: 8px;
}

textarea#userInput {
  margin-bottom: 4px !important;      /* ✅ Reduces spacing below textarea */
}

/* ⬇️ Export Button */
#exportBtn {
  display: none;
  background: #eee;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* 🧭 Navigation */
nav {
  margin-bottom: 30px;
  font-size: 0.95rem;
}

nav a {
  margin-right: 15px;
  text-decoration: none;
  color: #007bff;
}

nav a:hover {
  text-decoration: underline;
}

/* 🦶 Footer */
footer {
  margin-top: 40px;
  font-size: 0.85rem;
  text-align: center;
  color: #888;
}

/* 🌟 Quote Footer */
#quoteBar,
.quote-bar {
  background-color: #f0f4f9;
  border-left: 4px solid #007bff;
  padding: 12px 16px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  color: #333;
  margin-top: 28px;
  text-align: left;
  border-radius: 6px;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* 🔒 Pro Badge */
.pro-badge {
  background-color: gold;
  color: #333;
  font-size: 0.75rem;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* 📊 Progress Bar */
#progressBar {
  width: 100%;
  background-color: #eee;
  border-radius: 8px;
  margin: 20px auto 6px;
  height: 12px;
  overflow: hidden;
  max-width: 500px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#progressFill {
  background-color: #4caf50;
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

#progressLabel {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
  font-style: italic;
}

/* 🎁 Referral Banner – Final Width Fix */
#referralBanner {
  background-color: #f2f8ff;
  color: #004080;
  padding: 14px 20px;
  margin-top: 12px;
  margin-bottom: 12px;
  border: 1px solid #cce0f5;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  font-size: 0.95rem;
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 123, 255, 0.05);
  margin-left: auto;
  margin-right: auto;
}

/* 📱 Mobile Adjustments */
@media screen and (max-width: 600px) {
  body {
    margin: 20px auto;
    font-size: 0.95rem;
  }

  button, textarea, input, select {
    font-size: 0.95rem;
    padding: 10px;
  }

  nav {
    font-size: 0.9rem;
  }

  .pro-badge {
    font-size: 0.7rem;
    margin-left: 4px;
  }

  #referralBanner {
    font-size: 0.9rem;
    padding: 12px 14px;
  }

  #progressLabel {
    font-size: 0.8rem;
  }

  #quoteBar,
  .quote-bar {
    font-size: 0.85rem;
    padding: 10px 14px;
  }
}