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

:root {
  --primary-purple: #7b3fa3;
  --light-purple: #f5f0ff;
  --dark-purple: #4a2c5a;
  --text-dark: #2d1b3d;
  --text-gray: #666;
  --white: #ffffff;
  --dark-bg: #1a1a1a;
  --green: #4caf50;
  --green-light: #c8e6c9;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: var(--light-purple);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Login Page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--light-purple);
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-section {
  text-align: center;
  margin-bottom: 40px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background-color: var(--white);
}

.logo-s {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-purple);
}

.logo-text {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  font-family: serif;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  width: 100%;
}

.input-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background-color: var(--white);
  color: var(--text-dark);
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-purple);
}

.input-group input::placeholder {
  color: var(--text-gray);
}

.sign-in-button {
  width: 100%;
  padding: 16px;
  background-color: var(--primary-purple);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
}

.sign-in-button:hover {
  background-color: #9d5dc7;
}

.sign-in-button:active {
  transform: scale(0.98);
}

.login-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.link-text {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.link-text:hover {
  color: var(--primary-purple);
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
  width: 100%;
}

.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
  width: 100%;
}

.info-text {
  color: var(--text-gray);
  font-size: 12px;
  text-align: center;
  margin: 16px 0;
}

.verify-container {
  width: 100%;
  text-align: center;
}

.verify-container h2 {
  margin-bottom: 16px;
  color: var(--text-dark);
}

/* Welcome Page */
.welcome-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--dark-bg);
  padding: 20px;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.welcome-logo {
  margin-bottom: 60px;
}

.welcome-s {
  font-size: 120px;
  font-weight: 700;
  color: var(--primary-purple);
  display: inline-block;
}

.welcome-text {
  margin-bottom: 80px;
}

.welcome-text h2 {
  font-size: 24px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 10px;
}

.welcome-text h1 {
  font-size: 36px;
  color: var(--white);
  font-weight: 600;
}

.pagination-dots {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #666;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--white);
}

.next-button {
  padding: 14px 40px;
  background-color: var(--primary-purple);
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.next-button:hover {
  background-color: #9d5dc7;
}

/* Home/Dashboard Page */
.home-page {
  background-color: var(--light-purple);
  min-height: 100vh;
  padding-bottom: 80px;
}

.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-top: 20px;
}

.header-left {
  flex: 1;
}

.greeting {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.welcome-back {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
}

.header-right {
  width: 50px;
  height: 50px;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--white);
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.profile-icon {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 50%;
  border: 2px solid var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(123, 63, 163, 0.2);
}

.profile-icon:hover {
  background-color: var(--light-purple);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(123, 63, 163, 0.3);
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.goal-card,
.courses-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(123, 63, 163, 0.1);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-purple);
  border-radius: 4px;
  transition: width 0.3s;
}

.days-container {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.day-button {
  flex: 1;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: var(--white);
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.day-button.active {
  background-color: var(--green-light);
  color: var(--green);
  border-color: var(--green);
}

.day-button:hover {
  border-color: var(--primary-purple);
}

.placeholder-text {
  color: var(--text-gray);
  text-align: center;
  padding: 20px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-gray);
  transition: color 0.3s;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-item.active {
  color: var(--primary-purple);
}

.nav-icon {
  font-size: 24px;
}

.nav-label {
  font-size: 12px;
  font-weight: 500;
}

/* Responsive */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--text-gray);
}

.info-value {
  color: var(--text-dark);
  text-align: right;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: var(--light-purple);
  border-radius: 8px;
  border-left: 4px solid var(--primary-purple);
}

.module-item.completed {
  border-left-color: var(--green);
}

.module-item.in-progress {
  border-left-color: var(--primary-purple);
}

.module-title {
  font-weight: 500;
  color: var(--text-dark);
}

.module-progress {
  font-weight: 600;
}

.reset-button {
  padding: 6px 12px;
  background-color: #ffebee;
  color: #c62828;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.reset-button:hover {
  background-color: #c62828;
  color: #ffffff;
}
  color: var(--primary-purple);
}

.progress-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-purple);
}

.stat-label {
  font-size: 14px;
  color: var(--text-gray);
}

/* Module Selection Page */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.module-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(123, 63, 163, 0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--primary-purple);
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 63, 163, 0.2);
}

.module-card.completed {
  border-left-color: var(--green);
}

.module-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.module-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.module-card-id {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

.module-card-description {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
  line-height: 1.5;
}

.module-card-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.module-progress-bar {
  flex: 1;
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.module-progress-fill {
  height: 100%;
  background-color: var(--primary-purple);
  border-radius: 3px;
  transition: width 0.3s;
}

.module-progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-purple);
  min-width: 45px;
}

.module-card.completed .module-progress-fill {
  background-color: var(--green);
}

.module-card.completed .module-progress-text {
  color: var(--green);
}

/* Module Viewer */
.module-viewer {
  background-color: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(123, 63, 163, 0.1);
  margin-bottom: 24px;
}

.module-viewer-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-purple);
}

.module-viewer-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.module-viewer-description {
  font-size: 16px;
  color: var(--text-gray);
}

.module-section {
  margin-bottom: 32px;
}

.module-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-purple);
  margin-bottom: 16px;
}

.module-section-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.module-section-content ul,
.module-section-content ol {
  margin-left: 24px;
  margin-top: 12px;
}

.module-section-content li {
  margin-bottom: 8px;
}

.module-section-content strong {
  color: var(--primary-purple);
  font-weight: 600;
}

.module-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--light-purple);
}

.nav-button {
  padding: 12px 24px;
  background-color: var(--primary-purple);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #9d5dc7;
}

.nav-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.complete-module-button {
  background-color: var(--green);
  width: 100%;
  margin-top: 16px;
}

.complete-module-button:hover {
  background-color: #45a049;
}

.quiz-question {
  margin-bottom: 24px;
}

.quiz-options label:hover {
  border-color: var(--primary-purple) !important;
  background-color: #f0e6ff !important;
}

.quiz-options input[type="radio"]:checked + span {
  font-weight: 600;
}

.quiz-options input[type="radio"]:disabled {
  cursor: not-allowed;
}

/* Financial Tools */
.tool-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(123, 63, 163, 0.1);
  margin-bottom: 20px;
}

.tool-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tool-description {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.tool-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.input-group input {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--white);
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-purple);
}

.tool-result {
  margin-top: 16px;
}

.featured-tools-section {
  margin-top: 30px;
}

.tool-preview-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(123, 63, 163, 0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--primary-purple);
  margin-bottom: 12px;
}

.tool-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 63, 163, 0.2);
}

.tool-preview-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.tool-preview-description {
  font-size: 14px;
  color: var(--text-gray);
}

@media (max-width: 480px) {
  .app-container {
    padding: 16px;
  }

  .welcome-s {
    font-size: 100px;
  }

  .welcome-text h1 {
    font-size: 32px;
  }

  .module-viewer {
    padding: 16px;
  }
}

