:root {
  --bg-primary: #08080c;
  --bg-sidebar: rgba(14, 14, 22, 0.85);
  --bg-card: rgba(22, 22, 34, 0.55);
  --bg-card-hover: rgba(26, 26, 42, 0.75);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 107, 139, 0.25);
  --text-primary: #f5f6f9;
  --text-secondary: #a0a6b5;
  --primary-accent: #ff6b8b; /* Sweet Strawberry Pink */
  --primary-glow: rgba(255, 107, 139, 0.25);
  --secondary-accent: #ffd3b6; /* Cozy Peach */
  --success-color: #2ecc71;
  --error-color: #e74c3c;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.45);
}

/* Custom Scrollbars globally (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Base resets, fonts, and Firefox scrollbar support */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Beautiful Animated Ambient BG */
.glass-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 5% 15%, rgba(255, 107, 139, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 95% 85%, rgba(255, 211, 182, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(168, 230, 207, 0.03) 0%, transparent 50%),
              #06060a;
  z-index: -2;
}

/* Main Layout Grid */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  background: #0d0d15;
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-emoji {
  font-size: 2.2rem;
  animation: float 4s ease-in-out infinite;
}

.logo-wrapper h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--primary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(3px);
}

.nav-btn.active {
  color: #fff;
  background: rgba(255, 107, 139, 0.15);
  border-left: 3px solid var(--primary-accent);
  box-shadow: inset 0 0 10px rgba(255, 107, 139, 0.05);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
}

/* Main Content Area */
.main-content {
  padding: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Standard Premium Card */
.card {
  background: #151522;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg), inset 0 1px 1px rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 15px var(--primary-glow);
}

/* Card Accents */
.card-accent-pink {
  border-left: 4px solid var(--primary-accent);
}
.card-accent-peach {
  border-left: 4px solid var(--secondary-accent);
}

/* Header Student Profile Card */
.student-header {
  margin-bottom: 30px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.avatar-badge {
  font-size: 3.5rem;
  background: rgba(255, 255, 255, 0.04);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(255, 107, 139, 0.2);
  box-shadow: 0 0 20px rgba(255, 107, 139, 0.15);
}

.profile-details h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  line-height: 1.2;
}

.rank-badge {
  display: inline-block;
  background: rgba(255, 107, 139, 0.12);
  color: var(--primary-accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
  border: 1px solid rgba(255, 107, 139, 0.15);
}

.streak-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.streak-emoji {
  font-size: 1.3rem;
  animation: float 2s infinite ease-in-out;
}

/* XP Bar Component */
.level-progress-wrapper {
  margin-bottom: 20px;
}

.level-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#level-xp {
  color: var(--text-secondary);
}

.level-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.level-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Goal Input Component */
.goal-input-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.goal-input-wrapper label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.goal-input-wrapper input {
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  padding: 5px 0;
}

.goal-input-wrapper input:focus {
  outline: none;
  box-shadow: none;
  background: none;
  border-bottom: 1px solid var(--primary-accent);
}

/* Welcome Callout block */
.welcome-callout {
  background: rgba(255, 211, 182, 0.05);
  border: 1px solid rgba(255, 211, 182, 0.1);
  border-left: 4px solid var(--secondary-accent);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}

.callout-emoji {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.callout-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fce6db;
}

/* Dashboard layouts */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.dashboard-left, .dashboard-right {
  display: flex;
  flex-direction: column;
}

/* Section Title Bar */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title-bar h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 5px;
}

/* Curriculum Board styles */
.course-boards-container {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.course-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.course-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.lessons-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Individual Lesson Cards */
.lesson-card {
  padding: 20px;
}

.lesson-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-badge {
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.xp-badge {
  color: var(--primary-accent);
}

.lesson-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
  line-height: 1.3;
}

.lesson-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-indicator {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.status-select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 6px 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.status-select:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 8px var(--primary-glow);
}

.status-select option {
  background-color: #151522;
  color: #fff;
}

.status-not-started {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.status-in-progress {
  background: rgba(255, 211, 182, 0.12);
  color: var(--secondary-accent);
}

.status-completed {
  background: rgba(46, 204, 113, 0.12);
  color: var(--success-color);
}

/* Recipes filter bar */
.vault-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
  background: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Recipe Grid and Cards */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.recipe-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.recipe-meta-row {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-weight: 500;
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-details-content {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
  margin-top: 15px;
}

.recipe-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--secondary-accent);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.recipe-list {
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
}

.recipe-list li {
  margin-bottom: 5px;
}

.recipe-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rating-stars {
  color: #f1c40f;
  font-size: 1.1rem;
}

.again-indicator {
  font-size: 0.8rem;
  background: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
  padding: 3px 8px;
  border-radius: 12px;
}

/* Journal Styles */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.journal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.journal-title-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.journal-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.journal-mood-tag {
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.journal-body-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 20px;
}

@media (max-width: 768px) {
  .journal-body-grid {
    grid-template-columns: 1fr;
  }
}

.journal-text-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.journal-photo-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 150px;
}

.journal-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-meta-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.8rem;
}

.link-tag {
  background: rgba(255, 107, 139, 0.08);
  border: 1px solid rgba(255, 107, 139, 0.12);
  color: var(--primary-accent);
  padding: 3px 8px;
  border-radius: 8px;
}

/* Badge Case and Grid */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
}

.badge-card {
  text-align: center;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-icon-box {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.5s ease;
}

.badge-card.locked {
  opacity: 0.45;
  filter: grayscale(1);
}

.badge-card.unlocked .badge-icon-box {
  background: rgba(255, 107, 139, 0.08);
  border-color: rgba(255, 107, 139, 0.35);
  box-shadow: 0 0 20px rgba(255, 107, 139, 0.25);
  animation: float 3s ease-in-out infinite;
}

.badge-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
}

.badge-req {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.badge-xp-bonus {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success-color);
  background: rgba(46, 204, 113, 0.1);
  padding: 2px 8px;
  border-radius: 8px;
}

/* Quests styles */
.quests-list-full {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quest-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 25px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.quest-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.quest-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-accent);
}

.quest-title {
  font-size: 0.98rem;
  font-weight: 600;
  flex-grow: 1;
}

.quest-item.completed .quest-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.quest-reward {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-accent);
  background: rgba(255, 107, 139, 0.1);
  padding: 3px 10px;
  border-radius: 8px;
}

/* Achievements styles */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
}

.ach-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.achievement-card.unlocked .ach-icon-box {
  background: rgba(46, 204, 113, 0.08);
  border-color: rgba(46, 204, 113, 0.3);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.15);
  color: var(--success-color);
}

.achievement-card.locked {
  opacity: 0.5;
}

.ach-details {
  flex-grow: 1;
}

.ach-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.ach-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.ach-status-badge {
  background: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
}

/* Interactive Buttons */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent) 0%, #ff527b 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 139, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 139, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Modals styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background: #0f0f18;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #fff;
}

/* Modal Form styling */
form .form-group {
  margin-bottom: 18px;
}

form label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

form input[type="text"],
form input[type="password"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  padding: 10px 14px 10px 40px; /* Left padding for icons */
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 10px var(--primary-glow);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 15px;
  font-size: 1.1rem;
  opacity: 0.7;
  pointer-events: none;
}

.btn-toggle-visible {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  transition: color 0.2s ease;
}

.btn-toggle-visible:hover {
  color: #fff;
}

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

.flex-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

form .checkbox-label {
  margin-bottom: 0;
  cursor: pointer;
}

/* Celebration Overlay */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.celebration-modal {
  background: rgba(22, 22, 34, 0.85);
  border: 2px solid var(--primary-accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 107, 139, 0.4);
  animation: pulseCelebration 1.5s infinite alternate, scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.celebration-badge {
  font-size: 4.5rem;
  margin-bottom: 20px;
}

.celebration-modal h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary-accent);
  margin-bottom: 10px;
}

.celebration-modal p {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

/* Utility helpers */
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulseCelebration {
  0% { border-color: var(--primary-accent); box-shadow: 0 0 20px rgba(255, 107, 139, 0.2); }
  100% { border-color: var(--secondary-accent); box-shadow: 0 0 40px rgba(255, 211, 182, 0.45); }
}

/* Mobile responsive styles */
@media (max-width: 992px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
  }
  .logo-wrapper {
    margin-bottom: 20px;
  }
  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
  }
  .nav-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  .main-content {
    padding: 20px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .profile-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  .goal-input-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .modal-card {
    padding: 20px;
    width: 95%;
  }
  .main-content {
    padding: 15px;
  }
}

/* Track Card hover animations and responsive styling */
.track-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow) !important;
}

@media (max-width: 600px) {
  .tracks-container {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

/* Lesson Plan Modal Custom Styles */
#lesson-plan-modal .modal-card {
  max-width: 650px;
  width: 90%;
  padding: 25px;
  overflow: hidden; /* Hide the outer scrollbar; let the inner body scroll */
}

#lesson-plan-modal .lesson-meta {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

#lesson-plan-modal .status-indicator {
  margin-left: auto;
}

.lesson-plan-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}

/* Thin, modern scrollbar for the modal body */
.lesson-plan-body::-webkit-scrollbar {
  width: 6px;
}

.lesson-plan-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.lesson-plan-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.lesson-plan-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lesson-plan-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.lesson-plan-section:hover {
  background: rgba(255, 255, 255, 0.04);
}

.lesson-plan-section h4 {
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lesson-plan-section p, 
.lesson-plan-section ul {
  font-size: 0.92rem;
  line-height: 1.6;
}

.lesson-plan-section ul {
  padding-left: 20px;
}

.lesson-plan-section li {
  margin-bottom: 6px;
}

.lesson-plan-section li:last-child {
  margin-bottom: 0;
}

.lesson-plan-footer {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsive queries for the lesson plan modal */
@media (max-width: 600px) {
  #lesson-plan-modal .modal-card {
    width: 95%;
    padding: 20px 15px;
    max-height: 95vh;
  }
  
  #lesson-plan-modal .modal-header h2 {
    font-size: 1.15rem !important;
    padding-right: 25px; /* Leave space for close button */
    word-break: break-word;
  }

  .lesson-plan-body {
    max-height: 50vh;
    gap: 12px;
  }

  .lesson-plan-section {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .lesson-plan-section p, 
  .lesson-plan-section ul {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .lesson-plan-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
  }

  .lesson-plan-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.9rem;
  }
}
