/* MyFutureMoney.coach Styles */

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

#main-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  font-size: 2.2em;
  margin-bottom: 15px;
  font-weight: 300;
}

/* Progress Bar Styles */
#progress-container {
  margin-top: 20px;
}

#progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.3s ease;
}

#progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9em;
  opacity: 0.9;
}

/* Main Content Styles */
main {
  padding: 30px;
}

#section-header {
  margin-bottom: 30px;
  text-align: center;
}

#section-title {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 10px;
}

#section-description {
  color: #7f8c8d;
  font-size: 1.1em;
}

/* Questions Container */
#questions-container {
  margin-bottom: 30px;
}

.question {
  margin-bottom: 25px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.question-text {
  font-size: 1.1em;
  font-weight: 500;
  margin-bottom: 15px;
  color: #2c3e50;
}

.question-help {
  margin-bottom: 15px;
}

.help-button {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 0.9em;
  text-decoration: underline;
  margin-left: 10px;
}

.help-button:hover {
  color: #5a67d8;
}

/* Form Input Styles */
.form-group {
  margin-bottom: 15px;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Radio and Checkbox Styles */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: white;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: #667eea;
  background-color: #f7fafc;
}

.radio-option input,
.checkbox-option input {
  margin-right: 12px;
  transform: scale(1.2);
}

.radio-option.selected,
.checkbox-option.selected {
  border-color: #667eea;
  background-color: #edf2f7;
}

/* Financial Account Styles */
.financial-account {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  background-color: white;
}

.financial-account h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.account-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

@media (max-width: 600px) {
  .account-row {
    grid-template-columns: 1fr;
  }
}

.accuracy-selector {
  margin-top: 15px;
}

.accuracy-selector label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #4a5568;
}

/* Navigation Buttons */
#navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.nav-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

#prev-button {
  background-color: #e2e8f0;
  color: #4a5568;
}

#prev-button:hover {
  background-color: #cbd5e0;
}

#next-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

#next-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.save-button {
  background-color: #48bb78;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.save-button:hover {
  background-color: #38a169;
}

/* Hint Level Selector */
#hint-level-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#hint-level-selector label {
  font-size: 0.9em;
  color: #4a5568;
  margin-right: 8px;
}

#hint-level {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 5px;
  font-size: 0.9em;
}

/* Save Status */
.save-status {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #48bb78;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  animation: fadeInOut 2s ease-in-out;
}

.save-status .checkmark {
  font-size: 1.2em;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.close-modal:hover {
  color: #333;
}

/* Success Indicators */
.question.saved {
  border-left-color: #48bb78;
  background-color: #f0fff4;
}

.question.saved::after {
  content: "✓";
  position: absolute;
  top: 15px;
  right: 15px;
  color: #48bb78;
  font-size: 1.2em;
  font-weight: bold;
}

.question {
  position: relative;
}

/* Info Display Styles */
.info-display {
  background-color: #edf2f7;
  border-left: 4px solid #4299e1;
  padding: 15px 20px;
  border-radius: 0 6px 6px 0;
  margin: 15px 0;
}

.info-display .info-text {
  color: #2d3748;
  line-height: 1.6;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 768px) {
  #main-container {
    margin: 0;
    border-radius: 0;
  }

  main {
    padding: 20px;
  }

  header {
    padding: 15px;
  }

  header h1 {
    font-size: 1.8em;
  }

  #hint-level-selector {
    position: static;
    margin-bottom: 20px;
    text-align: center;
  }

  #navigation-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .nav-button {
    width: 100%;
  }

  #category-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .category-button {
    min-height: auto;
    padding: 15px;
  }

  .category-title {
    font-size: 0.9em;
    margin-bottom: 8px;
  }

  .category-progress-text {
    font-size: 0.75em;
  }
}

/* Category Navigation Styles */
#category-navigation {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 0 10px;
}

.category-button {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.category-button.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-title {
  color: white;
  font-size: 0.95em;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
}

.category-progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.category-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #81c784);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.category-progress-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8em;
  text-align: center;
}

/* Landing page styles for index.php */
#landing-container {
  padding: 40px;
  text-align: center;
}

#welcome-section h2 {
  color: #333;
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: 300;
}

#welcome-section p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

#features {
  margin: 40px 0;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#features h3 {
  color: #333;
  font-size: 1.4em;
  margin-bottom: 15px;
  text-align: center;
}

#features ul {
  list-style: none;
  padding: 0;
}

#features li {
  padding: 8px 0;
  font-size: 1.1em;
  color: #555;
  position: relative;
  padding-left: 25px;
}

#features li:before {
  content: "✓";
  color: #4caf50;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#additional-options {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

#additional-options p {
  color: #666;
  font-size: 1.1em;
  margin-bottom: 15px;
}

.secondary-button {
  display: inline-block;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
