/* DidItQuest Dashboard Styles */

/* CSS Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #F2EFE9;
  color: #0D0D0D;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Central glow effect with new color palette */
.central-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(
      ellipse 100% 80% at center bottom,
      rgba(138, 135, 156, 1.0) 0%,
      rgba(138, 135, 156, 0.85) 15%,
      rgba(150, 168, 178, 0.7) 30%,
      rgba(151, 193, 189, 0.4) 50%,
      rgba(203, 245, 244, 0.2) 75%,
      rgba(242, 242, 242, 1.0) 100%
    );
  animation: pulse-glow 30s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Header and Navigation */
.header {
  position: relative;
  z-index: 10;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 64, 63, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-link {
  color: #3F403F;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #8A879C;
}

.site-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0D0D0D;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.streak-counter {
  font-size: 0.9rem;
  font-weight: 500;
  color: #97C1BD;
}

.profile-btn {
  background: #8A879C;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.profile-btn:hover {
  background: #96A8B2;
}

/* Dashboard Layout */
.dashboard {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

/* Hero Section with Bold Headlines */
.hero-section {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 0;
}

.main-headline {
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0D0D0D 0%, #8A879C 50%, #0D0D0D 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.sub-headline {
  font-size: 2.8rem;
  font-weight: 700;
  color: #3F403F;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 1.2rem;
  color: #3F403F;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Stats Overview */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 
    0 0 30px rgba(138, 135, 156, 0.15),
    0 4px 16px rgba(151, 193, 189, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 245, 244, 0.3);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 0 40px rgba(138, 135, 156, 0.2),
    0 8px 20px rgba(151, 193, 189, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-icon {
  font-size: 2rem;
}

.stat-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0D0D0D;
  margin-bottom: 4px;
}

.stat-content p {
  color: #3F403F;
  font-size: 0.9rem;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* Dashboard Cards with Section Glow */
.dashboard-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 
    0 0 40px rgba(138, 135, 156, 0.2),
    0 8px 24px rgba(151, 193, 189, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 245, 244, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 0 60px rgba(138, 135, 156, 0.3),
    0 12px 32px rgba(151, 193, 189, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Draggable Cards */
.draggable-card {
  cursor: move;
  user-select: none;
}

.draggable-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dashboard-grid.drag-active .draggable-card:not(.dragging) {
  transition: transform 0.3s ease;
}

.drag-over {
  border: 2px dashed #97C1BD !important;
  background: rgba(151, 193, 189, 0.1) !important;
}

/* Drag Handle */
.card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drag-handle {
  font-size: 1.2rem;
  color: #3F403F;
  cursor: grab;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
  line-height: 1;
  user-select: none;
}

.drag-handle:hover {
  color: #8A879C;
  background: rgba(138, 135, 156, 0.15);
}

.drag-handle:active {
  cursor: grabbing;
}

/* Drop Zone Indicator */
.drop-indicator {
  height: 4px;
  background: #97C1BD;
  border-radius: 2px;
  margin: 8px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drop-indicator.active {
  opacity: 1;
}

/* Mobile Drag Support */
@media (max-width: 768px) {
  .draggable-card {
    cursor: pointer;
  }
  
  .drag-handle {
    font-size: 1.4rem;
    padding: 8px;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(63, 64, 63, 0.1);
}

.card-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0D0D0D;
  margin: 0;
}

/* Categorized Habits */
.habit-categories {
  margin-bottom: 20px;
}

.category-section {
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(203, 245, 244, 0.2);
  border-radius: 12px;
  border-left: 4px solid #97C1BD;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0D0D0D;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.category-tag {
  display: inline-block;
  background: #8A879C;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.category-section .habits-list {
  margin-bottom: 0;
}

/* Achievements Section Container */
.dashboard-card.achievements-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 
    0 0 40px rgba(138, 135, 156, 0.2),
    0 8px 24px rgba(151, 193, 189, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 245, 244, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card.achievements-section:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 0 60px rgba(138, 135, 156, 0.3),
    0 12px 32px rgba(151, 193, 189, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Achievements Grid within Section */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

/* Achievement Cards within Grid (not individual dashboard cards) */
.achievement-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(138, 135, 156, 0.15),
    0 2px 8px rgba(151, 193, 189, 0.1);
  border: 1px solid rgba(203, 245, 244, 0.2);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: auto;
  min-height: 0;
  max-height: 300px;
}

.achievement-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 20px rgba(138, 135, 156, 0.2),
    0 4px 12px rgba(151, 193, 189, 0.15);
}

.achievement-card.rarity-legendary {
  border: 2px solid #8A879C;
}

.achievement-card.rarity-epic {
  border: 2px solid #97C1BD;
}

.achievement-card.rarity-rare {
  border: 2px solid #96A8B2;
}

.achievement-card.rarity-uncommon {
  border: 2px solid #CBF5F4;
}

/* Achievement Visual Section for Cards within Grid */
.achievement-card .achievement-visual {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
  padding: 6px;
  background: rgba(203, 245, 244, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(203, 245, 244, 0.2);
  flex-shrink: 0;
}

.achievement-card .achievement-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(138, 135, 156, 0.1), transparent);
  padding: 3px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  overflow: hidden;
  flex-shrink: 0;
}

.achievement-card .achievement-badge.animated {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, rgba(138, 135, 156, 0.15), rgba(151, 193, 189, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: icon-float 3s ease-in-out infinite;
  transition: all 0.3s ease;
  border: 1px solid rgba(138, 135, 156, 0.2);
}

.achievement-card .achievement-level {
  background: linear-gradient(45deg, #8A879C, #96A8B2, #97C1BD);
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 6px rgba(138, 135, 156, 0.3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  line-height: 1;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(1deg); }
  75% { transform: translateY(-3px) rotate(-1deg); }
}

/* Animal and Insect Effects for Achievement Cards within Grid */
.achievement-card .butterfly-effect, 
.achievement-card .hummingbird-effect, 
.achievement-card .lion-effect, 
.achievement-card .owl-effect, 
.achievement-card .bee-effect, 
.achievement-card .turtle-effect {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  top: 0;
  left: 0;
  border-radius: 50%;
}

/* Butterfly Effect - Graceful fluttering */
.achievement-card .butterfly-effect::before {
  content: "◗";
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 1.2rem;
  animation: butterfly-flutter 3s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(203, 245, 244, 0.8));
  color: #CBF5F4;
  transform-origin: center bottom;
}

.achievement-card .butterfly-effect::after {
  content: "◖";
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 1.2rem;
  animation: butterfly-flutter 3s ease-in-out infinite 0.2s;
  filter: drop-shadow(0 0 3px rgba(151, 193, 189, 0.7));
  color: #97C1BD;
  transform-origin: center bottom;
}

/* Hummingbird Effect - Quick darting movements */
.achievement-card .hummingbird-effect::before {
  content: "◮";
  position: absolute;
  top: 12px;
  left: 8px;
  font-size: 1.1rem;
  animation: hummingbird-dart 0.8s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(138, 135, 156, 0.8));
  color: #8A879C;
}

.achievement-card .hummingbird-effect::after {
  content: "◦";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 0.5rem;
  animation: hummingbird-trail 0.8s ease-in-out infinite 0.1s;
  filter: drop-shadow(0 0 2px rgba(150, 168, 178, 0.6));
  color: #96A8B2;
}

/* Lion Effect - Powerful prowling */
.achievement-card .lion-effect::before {
  content: "◉";
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 1.5rem;
  animation: lion-prowl 4s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(151, 193, 189, 0.8));
  color: #97C1BD;
}

.achievement-card .lion-effect::after {
  content: "◎";
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 0.7rem;
  animation: lion-prowl 4s ease-in-out infinite 0.5s;
  filter: drop-shadow(0 0 2px rgba(203, 245, 244, 0.6));
  color: #CBF5F4;
}

/* Owl Effect - Wise head turns */
.achievement-card .owl-effect::before {
  content: "◐";
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 1.3rem;
  animation: owl-watch 5s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(150, 168, 178, 0.8));
  color: #96A8B2;
  transform-origin: center;
}

.achievement-card .owl-effect::after {
  content: "◑";
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 1.3rem;
  animation: owl-watch 5s ease-in-out infinite 2.5s;
  filter: drop-shadow(0 0 3px rgba(138, 135, 156, 0.7));
  color: #8A879C;
  transform-origin: center;
}

/* Bee Effect - Busy buzzing pattern */
.achievement-card .bee-effect::before {
  content: "◈";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.9rem;
  animation: bee-buzz 1.5s linear infinite;
  filter: drop-shadow(0 0 2px rgba(151, 193, 189, 0.8));
  color: #97C1BD;
}

.achievement-card .bee-effect::after {
  content: "◇";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 0.6rem;
  animation: bee-buzz 1.2s linear infinite 0.3s;
  filter: drop-shadow(0 0 2px rgba(203, 245, 244, 0.6));
  color: #CBF5F4;
}

/* Turtle Effect - Slow steady movement */
.achievement-card .turtle-effect::before {
  content: "◍";
  position: absolute;
  top: 12px;
  left: 15px;
  font-size: 1.6rem;
  animation: turtle-steady 6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(242, 242, 242, 0.8));
  color: #F2F2F2;
}

.achievement-card .turtle-effect::after {
  content: "◌";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 0.9rem;
  animation: turtle-steady 6s ease-in-out infinite 1s;
  filter: drop-shadow(0 0 2px rgba(203, 245, 244, 0.7));
  color: #CBF5F4;
}

/* Scaled Animation Keyframes */
@keyframes butterfly-flutter {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); 
    opacity: 1; 
  }
  25% { 
    transform: translateY(-8px) translateX(-5px) rotate(-5deg) scale(1.05); 
    opacity: 0.9; 
  }
  50% { 
    transform: translateY(-12px) translateX(3px) rotate(3deg) scale(0.95); 
    opacity: 0.8; 
  }
  75% { 
    transform: translateY(-5px) translateX(8px) rotate(8deg) scale(1.02); 
    opacity: 0.95; 
  }
}

@keyframes hummingbird-dart {
  0%, 100% { 
    transform: translateX(0px) translateY(0px) scale(1); 
    opacity: 1; 
  }
  20% { 
    transform: translateX(12px) translateY(-4px) scale(1.1); 
    opacity: 0.8; 
  }
  40% { 
    transform: translateX(-8px) translateY(6px) scale(0.9); 
    opacity: 0.7; 
  }
  60% { 
    transform: translateX(10px) translateY(-3px) scale(1.05); 
    opacity: 0.85; 
  }
  80% { 
    transform: translateX(-5px) translateY(4px) scale(0.95); 
    opacity: 0.75; 
  }
}

@keyframes hummingbird-trail {
  0%, 100% { 
    opacity: 0.4; 
    transform: scale(0.6); 
  }
  50% { 
    opacity: 0.9; 
    transform: scale(1.1); 
  }
}

@keyframes lion-prowl {
  0%, 100% { 
    transform: translateX(0px) rotate(0deg) scale(1); 
    opacity: 1; 
  }
  25% { 
    transform: translateX(-10px) rotate(-3deg) scale(1.02); 
    opacity: 0.95; 
  }
  50% { 
    transform: translateX(-18px) rotate(0deg) scale(1.05); 
    opacity: 0.9; 
  }
  75% { 
    transform: translateX(-8px) rotate(2deg) scale(1.01); 
    opacity: 0.95; 
  }
}

@keyframes owl-watch {
  0%, 40%, 100% { 
    transform: rotate(0deg) scale(1); 
    opacity: 1; 
  }
  10%, 30% { 
    transform: rotate(-15deg) scale(1.02); 
    opacity: 0.95; 
  }
  20% { 
    transform: rotate(-25deg) scale(1.05); 
    opacity: 0.9; 
  }
  50%, 90% { 
    transform: rotate(18deg) scale(1.02); 
    opacity: 0.95; 
  }
  70% { 
    transform: rotate(28deg) scale(1.05); 
    opacity: 0.9; 
  }
}

@keyframes bee-buzz {
  0% { 
    transform: translateX(0px) translateY(0px) rotate(0deg); 
    opacity: 1; 
  }
  12.5% { 
    transform: translateX(8px) translateY(-4px) rotate(45deg); 
    opacity: 0.9; 
  }
  25% { 
    transform: translateX(4px) translateY(-8px) rotate(90deg); 
    opacity: 0.8; 
  }
  37.5% { 
    transform: translateX(-4px) translateY(-6px) rotate(135deg); 
    opacity: 0.85; 
  }
  50% { 
    transform: translateX(-8px) translateY(0px) rotate(180deg); 
    opacity: 0.95; 
  }
  62.5% { 
    transform: translateX(-4px) translateY(6px) rotate(225deg); 
    opacity: 0.85; 
  }
  75% { 
    transform: translateX(4px) translateY(8px) rotate(270deg); 
    opacity: 0.8; 
  }
  87.5% { 
    transform: translateX(8px) translateY(4px) rotate(315deg); 
    opacity: 0.9; 
  }
  100% { 
    transform: translateX(0px) translateY(0px) rotate(360deg); 
    opacity: 1; 
  }
}

@keyframes turtle-steady {
  0%, 100% { 
    transform: translateX(0px) translateY(0px) scale(1); 
    opacity: 1; 
  }
  16% { 
    transform: translateX(-3px) translateY(-1px) scale(1.01); 
    opacity: 0.97; 
  }
  33% { 
    transform: translateX(-5px) translateY(-2px) scale(1.02); 
    opacity: 0.95; 
  }
  50% { 
    transform: translateX(-6px) translateY(-2px) scale(1.01); 
    opacity: 0.92; 
  }
  66% { 
    transform: translateX(-4px) translateY(-1px) scale(1.02); 
    opacity: 0.95; 
  }
  83% { 
    transform: translateX(-2px) translateY(0px) scale(1.005); 
    opacity: 0.97; 
  }
}

/* Mobile Responsive for Achievements Grid */
@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }
  
  .achievement-card {
    padding: 10px;
    gap: 6px;
  }
}

/* Achievement Content Styles for Cards within Grid */
.achievement-card .achievement-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: #8A879C;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1;
}

.achievement-card .achievement-type {
  font-size: 0.7rem;
  color: #96A8B2;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.achievement-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0D0D0D;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  line-height: 1.1;
}

.achievement-card p {
  color: #3F403F;
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.achievement-card .achievement-date {
  font-size: 0.7rem;
  color: #97C1BD;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
  margin-top: 4px;
  line-height: 1;
}

/* Achievement Stats for Cards within Grid */
.achievement-card .achievement-stats {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  padding: 6px;
  background: linear-gradient(135deg, rgba(138, 135, 156, 0.08), rgba(151, 193, 189, 0.04));
  border-radius: 4px;
  border: 1px solid rgba(138, 135, 156, 0.15);
  flex-shrink: 0;
}

.achievement-card .achievement-stats .stat {
  text-align: center;
  flex: 1;
}

.achievement-card .stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #8A879C;
  margin-bottom: 0;
  line-height: 1;
}

.achievement-card .achievement-stats .stat-label {
  font-size: 0.55rem;
  color: #3F403F;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1;
}

.habit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(63, 64, 63, 0.05);
  transition: background 0.3s ease;
}

.habit-item:hover {
  background: rgba(151, 193, 189, 0.08);
  border-radius: 8px;
  margin: 0 -8px;
  padding: 16px 8px;
}

.habit-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(138, 135, 156, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.habit-checkbox.checked {
  background: #97C1BD;
  border-color: #97C1BD;
  color: white;
}

.habit-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.habit-name {
  font-weight: 500;
  color: #0D0D0D;
}

.habit-streak {
  font-size: 0.8rem;
  color: #8A879C;
}

.habit-points {
  font-weight: 600;
  color: #96A8B2;
  font-size: 0.9rem;
}

.completed .habit-name {
  text-decoration: line-through;
  opacity: 0.7;
}

.add-habit-btn {
  width: 100%;
  background: transparent;
  border: 2px dashed rgba(151, 193, 189, 0.4);
  color: #97C1BD;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-habit-btn:hover {
  background: rgba(151, 193, 189, 0.1);
  border-color: #97C1BD;
}

/* Progress Grid */
.progress-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  text-align: center;
}

.day-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-header {
  font-size: 0.8rem;
  font-weight: 500;
  color: #3F403F;
}

.day-progress {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto;
}

.day-progress.completed {
  background: #8A879C;
  color: white;
}

.day-progress.partial {
  background: rgba(138, 135, 156, 0.6);
  color: white;
}

.day-progress.current {
  background: #97C1BD;
  color: white;
}

.day-progress:not(.completed):not(.partial):not(.current) {
  background: rgba(63, 64, 63, 0.1);
  color: #3F403F;
}

/* Progress Bars */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(63, 64, 63, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8A879C, #96A8B2);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Challenge Items */
.challenge-item, .goal-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(63, 64, 63, 0.05);
}

.challenge-item:last-child, .goal-item:last-child {
  border-bottom: none;
}

.goal-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.goal-icon {
  font-size: 2rem;
  margin-top: 4px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(138, 135, 156, 0.2), rgba(151, 193, 189, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(138, 135, 156, 0.3);
  position: relative;
  overflow: hidden;
}

.goal-icon::before {
  content: "◆";
  position: absolute;
  font-size: 1.5rem;
  color: #8A879C;
  animation: zen-float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(138, 135, 156, 0.6));
}

.goal-info {
  flex: 1;
}

.goal-info h3, .challenge-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0D0D0D;
}

.goal-info p, .challenge-info p {
  color: #3F403F;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Achievements */
.achievement-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(63, 64, 63, 0.05);
}

.achievement-badge {
  font-size: 2rem;
}

.achievement-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #0D0D0D;
}

.achievement-info p {
  color: #3F403F;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.achievement-date {
  font-size: 0.8rem;
  color: #97C1BD;
}

/* Social Feed */
.feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(63, 64, 63, 0.05);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: #8A879C;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.feed-content p {
  margin-bottom: 4px;
}

.feed-time {
  font-size: 0.8rem;
  color: #3F403F;
}

/* Buttons */
.join-team-btn, .create-goal-btn, .add-friends-btn {
  background: transparent;
  border: 1px solid #97C1BD;
  color: #97C1BD;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.join-team-btn:hover, .create-goal-btn:hover, .add-friends-btn:hover {
  background: #97C1BD;
  color: white;
}

.view-all {
  color: #8A879C;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.progress-indicator {
  background: rgba(138, 135, 156, 0.15);
  color: #8A879C;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.week-btn {
  background: transparent;
  border: 1px solid rgba(63, 64, 63, 0.2);
  color: #3F403F;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.week-btn:hover {
  background: rgba(138, 135, 156, 0.15);
  border-color: #8A879C;
  color: #8A879C;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  margin: 15% auto;
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #3F403F;
}

.habit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.habit-input, .habit-category, .habit-points-input {
  padding: 12px;
  border: 1px solid rgba(63, 64, 63, 0.2);
  border-radius: 8px;
  font-size: 1rem;
}

.create-habit-btn {
  background: #8A879C;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard {
    padding: 20px;
  }
  
  .header {
    padding: 16px 20px;
  }
  
  .nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .user-section {
    order: -1;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-card {
    padding: 20px;
  }

  .main-headline {
    font-size: 2.5rem;
  }

  .sub-headline {
    font-size: 1.8rem;
  }

  .cta-headline {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-primary, .cta-secondary {
    width: 100%;
    max-width: 300px;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

/* Call to Action Section */
.cta-section {
  text-align: center;
  padding: 80px 40px;
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(138, 135, 156, 0.08), rgba(151, 193, 189, 0.05));
  border-radius: 24px;
  border: 1px solid rgba(138, 135, 156, 0.15);
}

.cta-headline {
  font-size: 3rem;
  font-weight: 800;
  color: #0D0D0D;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.cta-description {
  font-size: 1.1rem;
  color: #3F403F;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  background: #8A879C;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(138, 135, 156, 0.3);
}

.cta-primary:hover {
  background: #96A8B2;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(138, 135, 156, 0.4);
}

.cta-secondary {
  background: transparent;
  color: #97C1BD;
  border: 2px solid #97C1BD;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: #97C1BD;
  color: white;
  transform: translateY(-2px);
}

/* Additional Habits Section Styles */
.habits-list {
  margin-bottom: 20px;
}

/* Layout Reset Button */
.layout-reset-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #8A879C;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(138, 135, 156, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.layout-reset-btn:hover {
  opacity: 1;
  background: #96A8B2;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(138, 135, 156, 0.4);
}

.layout-reset-btn:active {
  transform: translateY(0px);
}
