/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #ffffde;
  background-color: #492d4c;
}

/* Authentication Container */
#auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #492d4c;
  padding: 2rem;
}

.auth-wrapper {
  background: #5a3d5e;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.auth-header h1 {
  color: #f4ae6f;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #ffffde;
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  color: #ffffde;
}

.auth-switch a {
  color: #f4ae6f;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Navigation */
.navbar {
  background: #5a3d5e;
  color: #ffffde;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #ffffde;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(244, 174, 111, 0.2);
  color: #f4ae6f;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.view {
  background: #5a3d5e;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #6b4d6f;
}

.view-header h2 {
  color: #f4ae6f;
  font-size: 1.8rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffde;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #6b4d6f;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #492d4c;
  color: #ffffde;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #f4ae6f;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #e6e6c5;
  font-size: 0.875rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-section {
  background: #492d4c;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #6b4d6f;
}

.form-section h3 {
  margin-bottom: 1rem;
  color: #f4ae6f;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #f4ae6f;
  color: #492d4c;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #e89d5a;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Messages */
.error-message,
.success-message {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Activities */
.activities-container {
  margin-top: 2rem;
}

.category-group {
  margin-bottom: 2rem;
}

.category-group h3 {
  color: #f4ae6f;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6b4d6f;
}

.activity-items {
  display: grid;
  gap: 1rem;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #492d4c;
  border-radius: 4px;
  border-left: 4px solid #f4ae6f;
}

.activity-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
}

.activity-name {
  font-weight: 500;
  color: #ffffde;
}

.activity-points {
  color: #f4ae6f;
  font-weight: bold;
}

.activity-actions {
  display: flex;
  gap: 0.5rem;
}

/* Modifiers */
.modifiers-container {
  margin-top: 2rem;
}

.modifier-group {
  margin-bottom: 2rem;
}

.modifier-group h3 {
  color: #f4ae6f;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6b4d6f;
}

.modifier-items {
  display: grid;
  gap: 1rem;
}

.modifier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #492d4c;
  border-radius: 4px;
  border-left: 4px solid #f4ae6f;
}

.modifier-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
}

.modifier-name {
  font-weight: 500;
  color: #ffffde;
}

.modifier-points {
  color: #f4ae6f;
  font-weight: bold;
}

.modifier-actions {
  display: flex;
  gap: 0.5rem;
}

/* Planning */
.points-tracker {
  background: linear-gradient(135deg, #5a3d5e 0%, #6b4d6f 100%);
  color: #ffffde;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 2px solid #f4ae6f;
}

.points-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.points-value {
  font-size: 2rem;
  font-weight: bold;
}

.progress-bar {
  background: rgba(73, 45, 76, 0.5);
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #f4ae6f;
  transition: width 0.3s, background-color 0.3s;
  border-radius: 10px;
}

.progress-fill.warning {
  background: #ffc107;
}

.progress-fill.complete {
  background: #10B981;
}

.plan-container {
  margin-top: 2rem;
}

.day-group {
  margin-bottom: 2rem;
}

.day-group h4 {
  color: #f4ae6f;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6b4d6f;
}

.day-activities {
  display: grid;
  gap: 1rem;
}

.plan-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #492d4c;
  border-radius: 4px;
  border-left: 4px solid #f4ae6f;
}

.plan-activity-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.plan-activity-name {
  font-weight: 500;
  color: #ffffde;
}

.plan-activity-points {
  color: #f4ae6f;
  font-weight: bold;
}

.plan-activity-details {
  display: flex;
  gap: 1rem;
  color: #e6e6c5;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.plan-activity-details .time {
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #e6e6c5;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .activity-item,
  .plan-activity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Onboarding Container */
#onboarding-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #492d4c;
  padding: 2rem;
}

.onboarding-wrapper {
  background: #5a3d5e;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
}

.onboarding-header {
  text-align: center;
  margin-bottom: 2rem;
}

.onboarding-header h1 {
  color: #f4ae6f;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.onboarding-header p {
  color: #ffffde;
  font-size: 1.1rem;
}

.onboarding-step {
  background: #492d4c;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #6b4d6f;
}

.onboarding-step h2 {
  color: #f4ae6f;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.onboarding-step p {
  color: #e6e6c5;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.onboarding-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #6b4d6f;
}

.onboarding-actions .btn {
  flex: 1;
}

@media (max-width: 768px) {
  .onboarding-wrapper {
    padding: 1.5rem;
  }

  .onboarding-step {
    padding: 1.5rem;
  }

  .onboarding-actions {
    flex-direction: column;
  }
}
