html, body {
  margin: 0 !important;
  padding: 0 !important;
}
body, * {
  font-family: 'Inter', sans-serif !important;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #ef4444 100%) !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Container and Floating Elements */
.container {
  min-height: 100vh;
  background: none;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
}
.floating-elements {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}
.floating-1 {
  top: 5rem;
  left: 2.5rem;
  width: 5rem;
  height: 5rem;
  background-color: #fde047;
  animation: bounce 2s infinite;
}
.floating-2 {
  top: 10rem;
  right: 5rem;
  width: 4rem;
  height: 4rem;
  background-color: #93c5fd;
  animation: pulse 2s infinite;
}
.floating-3 {
  bottom: 8rem;
  left: 25%;
  width: 3rem;
  height: 3rem;
  background-color: #86efac;
  animation: bounce 2s infinite;
  animation-delay: 1s;
}
.floating-4 {
  bottom: 5rem;
  right: 33%;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #f9a8d4;
  animation: pulse 2s infinite;
  animation-delay: 0.5s;
}
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0, 0, 0); }
  40%, 43% { transform: translate3d(0, -30px, 0); }
  70% { transform: translate3d(0, -15px, 0); }
  90% { transform: translate3d(0, -4px, 0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Navbar (identical to Dashboard) */
.navbar {
  width: 100vw;
  min-width: 100vw;
  box-sizing: border-box;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 100;
  font-family: 'Inter', sans-serif;
  margin: 0 !important;
  top: 0;
  left: 0;
  right: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  font-family: 'Inter', sans-serif;
}

.sparkle-icon {
  width: 1.5rem;
  height: 1.5rem;
  animation: pulse 2s infinite;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.nav-item i {
  width: 1rem;
  height: 1rem;
}

.nav-item.active, .nav-item:active {
  background: rgba(255,255,255,0.2);
  color: white;
}

.nav-item:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.logout-btn {
  background: rgba(239,68,68,0.8);
  border: 1px solid rgba(239,68,68,0.3);
  color: white;
  font-weight: 500;
}

.logout-btn:hover {
  background: rgba(239,68,68,1);
  border-color: rgba(239,68,68,0.5);
}

/* Dashboard Card and Content */
.dashboard-card {
  max-width: 1200px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.dashboard-header {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  color: white;
  padding: 2rem;
  text-align: center;
}
.dashboard-header h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.dashboard-header p {
  font-size: 1rem;
  opacity: 0.9;
}
.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}
.content-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}
.card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}
.card-placeholder {
  color: #a1a1aa;
  font-size: 1rem;
  font-style: italic;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ZenLytics Specific Styles (.zl-* namespace) */

/* Weekly Highlights */
.zl-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  flex: 1;
}

.zl-kpi-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.zl-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zl-kpi-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-radius: 0.5rem;
  color: white;
}

.zl-kpi-content {
  flex: 1;
}

.zl-kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.zl-kpi-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Chart Cards */
.zl-chart-card {
  min-height: 300px;
}

.zl-chart-container {
  flex: 1;
  position: relative;
  min-height: 250px;
}

/* Task Completion Progress */
.zl-progress-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.zl-progress-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.zl-progress-label {
  min-width: 60px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.zl-progress-bar {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.zl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 4px;
  transition: width 0.8s ease;
}

.zl-progress-value {
  min-width: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
}

/* Focus Hours */
.zl-focus-hours-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.zl-focus-hour-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.zl-focus-rank {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.zl-focus-time {
  min-width: 80px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.zl-focus-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.zl-focus-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.zl-focus-score {
  min-width: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
}

/* Achievements */
.zl-achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  flex: 1;
}

.zl-achievement-item {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  opacity: 0.6;
}

.zl-achievement-item.zl-achieved {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #0ea5e9;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.zl-achievement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zl-achievement-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.zl-achievement-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.zl-achievement-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
}

/* Productivity Heatmap */
.zl-heatmap-card {
  min-height: 300px;
}

.zl-heatmap-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zl-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
  flex: 1;
  min-height: 200px;
}

.zl-heatmap-cell {
  background: #ebedf0;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}

.zl-heatmap-cell:hover {
  transform: scale(1.2);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.zl-heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

.zl-heatmap-legend-colors {
  display: flex;
  gap: 1px;
}

.zl-heatmap-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 1px;
}

/* Streak Leaderboard */
.zl-leaderboard-card {
  min-height: 300px;
}

.zl-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.zl-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.zl-leaderboard-item.zl-top-streak {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.zl-leaderboard-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zl-leaderboard-rank {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.zl-leaderboard-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 0.5rem;
}

.zl-leaderboard-content {
  flex: 1;
}

.zl-leaderboard-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.zl-leaderboard-streak {
  font-size: 0.75rem;
  color: #64748b;
}

/* Grid layout for the three cards in the same row */
.zl-achievements-card,
.zl-heatmap-card,
.zl-leaderboard-card {
  grid-column: span 1;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .dashboard-content {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .dashboard-card {
    margin: 1rem;
  }
  .zl-highlights-grid {
    grid-template-columns: 1fr;
  }
  .zl-achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .zl-heatmap-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(14, 1fr);
  }
}
