
/* main dashboard styles */
/* Modern Dashboard Styles */
.dashboard-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(34, 34, 59, 0.08);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar-left .app-logo {
  font-family: 'Poppins', 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-green);
  letter-spacing: 1px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.theme-toggle {
  background: var(--color-gray);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--color-yellow);
}

.user-avatar img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--color-green);
  object-fit: cover;
}

.dashboard-content {
  margin-top: 5rem;
  padding: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-section {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-yellow) 100%);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  color: var(--color-white);
  text-align: center;
  animation: slideInDown 0.8s ease-out;
}

.greeting h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.streak-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.streak-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.progress-section {
  background: var(--color-white);
  border-radius: 1.2rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(34, 34, 59, 0.06);
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
}

.progress-percentage {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-green);
}

.progress-bar-container {
  width: 100%;
  height: 1rem;
  background: #f0f0f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
  background-size: 200% 100%;
  animation: rainbow 3s ease-in-out infinite;
  border-radius: 0.5rem;
  transition: width 0.5s ease;
  width: 0; /* Initial width, will be set dynamically */
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: var(--color-white);
  border-radius: 1.2rem;
  padding: 1.8rem;
  box-shadow: 0 4px 16px rgba(34, 34, 59, 0.06);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out both;
}

.dashboard-card:nth-child(1) { animation-delay: 0.3s; }
.dashboard-card:nth-child(2) { animation-delay: 0.4s; }
.dashboard-card:nth-child(3) { animation-delay: 0.5s; }
.dashboard-card:nth-child(4) { animation-delay: 0.6s; }

.dashboard-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(34, 34, 59, 0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.dashboard-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.8rem;
}
 
.dashboard-card p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-action {
  color: var(--color-green);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.dashboard-card:hover .card-action {
  color: var(--color-yellow);
}

/* Card-specific colors */
.verse-card { border-left: 4px solid #ff6b6b; }
.moral-card { border-left: 4px solid #feca57; }
.leaderboard-card { border-left: 4px solid #48dbfb; }
.profile-card { border-left: 4px solid #ff9ff3; }
.games-card { border-left: 4px solid #54a0ff; }
/* Floating Sparkles */
.sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.sparkle {
  position: absolute;
  font-size: 1.5rem;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.sparkle:nth-child(3) {
  top: 40%;
  left: 80%;
  animation-delay: 4s;
}

.sparkle:nth-child(4) {
  top: 80%;
  left: 50%;
  animation-delay: 1s;
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rainbow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-content {
    padding: 1rem;
    margin-top: 6rem;
  }
  
  .welcome-section {
    padding: 1.5rem;
  }
  
  .greeting h1 {
    font-size: 1.8rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dashboard-card {
    padding: 1.5rem;
  }

  .navbar-right {
    max-width: 40%
  }
}

@media (max-width: 480px) {
  .dashboard-navbar {
    padding: 0.8rem 1rem;
  }

  .dashboard-navbar .btn-secondary {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }

  .navbar-right {
    gap: 0.5rem;
    max-width: none;
  }
  
  .navbar-left .app-logo {
    font-size: 1.2rem;
  }
  
  .greeting h1 {
    font-size: 1.5rem;
  }
  
  .streak-display {
    font-size: 1rem;
  }
} 

/* the styles below were made for an intended feature which is no longer fully in use. only part of the stles below here is in use the rest arent. its respective html still exists but as a comment in dashboard.html */
.daily-section {
      margin-bottom: 3rem;
      animation: fadeInUp 0.8s ease-out 0.3s both;
    }
    
    .daily-card {
      background: white;
      border-radius: 20px;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      border: 2px solid transparent;
      transition: all 0.3s ease;
    }
    
    .daily-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
      border-color: var(--color-green);
    }
    
    .daily-card-header {
      background: linear-gradient(135deg, var(--color-green), #4caf50);
      color: white;
      padding: 2rem;
      text-align: center;
    }
    
    .daily-card-header h2 {
      margin: 0 0 0.5rem 0;
      font-size: 1.8rem;
      font-weight: 700;
    }
    
    .daily-date {
      font-size: 1.1rem;
      opacity: 0.9;
      font-style: italic;
    }
    
    .daily-card-content {
      padding: 2rem;
    }
    
    .daily-verse,
    .daily-moral,
    .daily-challenge {
      margin-bottom: 1.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid #f0f0f0;
    }
    
    .daily-verse:last-child,
    .daily-moral:last-child,
    .daily-challenge:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }
    
    .daily-verse h3,
    .daily-moral h3,
    .daily-challenge h3 {
      color: var(--color-green);
      margin-bottom: 0.5rem;
      font-size: 1.2rem;
      font-weight: 600;
    }
    
    .daily-verse p,
    .daily-moral p,
    .daily-challenge p {
      color: #555;
      line-height: 1.6;
      margin-bottom: 0.5rem;
    }
    
    .verse-ref {
      font-size: 0.9rem;
      color: #666;
      font-style: italic;
    }
    
    .daily-card-actions {
      padding: 1.5rem 2rem;
      background: #f8f9fa;
      text-align: center;
      border-top: 1px solid #e9ecef;
    }
    
    .btn-primary {
      background: linear-gradient(45deg, var(--color-green), #4caf50);
      color: white;
      padding: 0.8rem 2rem;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      display: inline-block;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
    
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    }
    
    @media (max-width: 768px) {
      .daily-card-header {
        padding: 1.5rem;
      }
      
      .daily-card-content {
        padding: 1.5rem;
      }
      
      .daily-card-actions {
        padding: 1rem 1.5rem;
      }
    }

    @media(max-width: 912px) {
      .dashboard-content{
        margin-top: 5rem;
      }
    }

/* =============================================
   Progress Mood Face
   ============================================= */
.progress-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-face {
  font-size: 1.8rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease;
  cursor: default;
  user-select: none;
}

.progress-face.pop {
  transform: scale(1.5);
}

/* =============================================
   Celebration Modal
   ============================================= */
.celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.celebration-overlay[hidden] {
  display: none;
}

.celebration-card {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  max-width: 340px;
  width: 90%;
  overflow: hidden;
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

@keyframes bounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  70%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

.celebration-confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confettiFall 1.8s ease-in forwards;
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(320px) rotate(540deg); opacity: 0; }
}

.celebration-emoji {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  animation: bounceIn 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.celebration-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2d7d46;
  margin: 0 0 0.5rem;
}

.celebration-msg {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

   