/* ========================================
   MODERN DARK PRODUCTIVITY DASHBOARD
   Enhanced with animations and shadow effects
======================================== */

/* =====================================
   FONTS AND RESET
===================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
  /* Dark Theme Colors */
  --primary-bg: #0f0f0f;
  --secondary-bg: #1a1a1a;
  --card-bg: rgba(30, 30, 30, 0.95);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);

  /* Accent Colors */
  --accent-blue: #00d4ff;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-pink: #ec4899;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(100, 100, 255, 0.3);
}

/* =====================================
   BODY AND BACKGROUND
===================================== */
body {
  font-family: 'Inter', sans-serif;
  background: var(--primary-bg);
  min-height: 100vh;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

/* Animated Background */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: -2;
  animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { opacity: 0.1; }
  100% { opacity: 0.05; }
}

/* Floating Shapes */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.1;
  animation: float infinite ease-in-out;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-duration: 15s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 20%;
  animation-duration: 20s;
  animation-delay: -5s;
}

.shape-3 {
  width: 40px;
  height: 40px;
  top: 80%;
  left: 30%;
  animation-duration: 25s;
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 10%;
  animation-duration: 18s;
  animation-delay: -8s;
}

.shape-5 {
  width: 50px;
  height: 50px;
  top: 40%;
  left: 60%;
  animation-duration: 22s;
  animation-delay: -12s;
}

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

/* =====================================
   MAIN CONTAINER
===================================== */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* =====================================
   HEADER SECTION
===================================== */
.dashboard-header {
  margin-bottom: 48px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(120deg, #575e94, #3f0476);

  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: var(--shadow-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-glow);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(100, 100, 255, 0.5);
  }
}

.header-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: #d6ccc2;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
}

.header-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =====================================
   DASHBOARD GRID
===================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

/* =====================================
   DASHBOARD CARDS
===================================== */
.dashboard-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.dashboard-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.dashboard-card:hover::before {
  transform: scaleX(1);
}

.dashboard-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Card Animations */
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

/* =====================================
   CARD COMPONENTS
===================================== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
}

.card-content {
  flex-grow: 1;
}

.card-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.card-footer {
  margin-top: 24px;
}

/* =====================================
   SPECIFIC CARD STYLES
===================================== */

/* Pomodoro Card */
.pomodoro-card .card-icon {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.card-badge {
  background: var(--accent-orange);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Focus Card */
.focus-card .card-icon {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.card-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.motivation-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-left: 3px solid var(--accent-purple);
  padding-left: 12px;
}

/* Habit Card */
.habit-card .card-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.streak-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-orange);
  font-weight: 600;
}

.habit-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.dot.completed {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Breathing Card */
.breathing-card .card-icon {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.breathing-icon {
  transition: none;
}

.breathing-btn {
  background: var(--gradient-accent);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.breathing-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Challenge Card */
.challenge-card .card-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.difficulty-badge {
  background: var(--accent-orange);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.challenge-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.challenge-name {
  font-weight: 600;
  color: var(--text-primary);
}

.challenge-progress {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Stats Card */
.stats-card .card-icon {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.time-indicator {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.stat-box {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: 'JetBrains Mono', monospace;
}

.stat-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =====================================
   FOOTER
===================================== */
.dashboard-footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 24px 16px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .header-text h1 {
    font-size: 2rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dashboard-card {
    padding: 24px;
    min-height: 240px;
  }

  .header-stats {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .header-text h1 {
    font-size: 1.75rem;
  }

  .dashboard-card {
    padding: 20px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   ACCESSIBILITY
===================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
.dashboard-card:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.breathing-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
/* =====================================
   HAMBURGER NAVBAR FIX - Z-INDEX & INTERACTIVITY
===================================== */
.navbar,
.hamburger,
.nav-menu {
  position: relative;
  top:-10px;
  z-index: 9999;
  cursor: pointer;
 /* ensure it's on top of all layers */
}


.nav-menu {
  display: none;
  background-color: #1a1a1a;
  color: white;
  position: absolute;
  top: 50px;
  left: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
  z-index: 9999;
  border:2px solid whitesmoke;
}

.nav-menu.active {
  display: block;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin-bottom: 10px;
}

/* Optional: style the logout button */
.logout-btn {
  margin-top: 6px;
  padding: 6px 12px;
  border: none;
  background: #421b69;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.logout-btn:hover {
  background: #eeb5b5;
}

/* Ensure other layers are below navbar */
.floating-shapes {
  pointer-events: none;
  z-index: 1;
}

.background-overlay {
  z-index: 0;
}
/* Dropdown Arrow */
.nav-menu {
  display: none;
  background-color: #1a1a1a;
  color: white;
  position: absolute;
  top: 50px;
  left: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  z-index: 9999;
  border: 3px solid whitesmoke;
  min-width: 160px;
}


html {
  scroll-behavior: smooth;
}
.support-section {
  background-color: #5ba1e6;
  color: var(--text-primary);
  padding: 60px 20px;
  margin-top: 60px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  position: relative;
}
.support-section h2,
.support-section h3 {
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.support-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.support-btn {
  display: inline-block;
  background: var(--gradient-accent);
  padding: 10px 20px;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.support-btn:hover {
  opacity: 0.9;
}
.nav-link{
  color: #90c3f4;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.3s ease;
}
#user-email{
  font-size: 0.85rem;
  color: var(--text-secondary); 
  word-break: break-word;
}


