/* Modern Dashboard Styles */
.dashboard {
  position: relative;
  padding: calc(var(--nav-height) + 2rem) 2rem 3rem;
  min-height: calc(100vh - var(--nav-height));
  overflow: hidden;
  z-index: 1;
}

.dashboard-solar {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  height: 100vh;
  width: 100vw;
}

.dashboard-solar::before,
.dashboard-solar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.4;
  filter: drop-shadow(0 0 3px rgba(173, 216, 230, 0.3));
}

.dashboard-solar::before {
  animation: dashboard-grid-drift 42s linear infinite;
}

.dashboard-solar::after {
  mix-blend-mode: screen;
  opacity: 0.3;
  animation: dashboard-grid-drift 70s linear infinite reverse;
  filter: drop-shadow(0 0 2px rgba(200, 230, 255, 0.2));
}

@keyframes dashboard-grid-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3%, -5%, 0) scale(1.04); }
  100% { transform: translate3d(3%, 4%, 0) scale(1); }
}

/* Hero Section */
.dashboard__hero {
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(127, 92, 255, 0.1), rgba(38, 255, 230, 0.05));
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard__hero-content h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', sans-serif;
}

.dashboard__hero-content p {
  font-size: 1rem;
  color: #8b92a9;
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
}

.dashboard__hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

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

.hero-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  font-family: 'Orbitron', sans-serif;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: #8b92a9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}

/* Main Grid */
.dashboard__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Two Column Layout for Progress and Activity */
.dashboard__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Card Styles */
.dashboard__card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.dashboard__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(127, 92, 255, 0.3);
}

.dashboard__card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.quick-action-btn:hover {
  background: rgba(127, 92, 255, 0.2);
  border-color: rgba(127, 92, 255, 0.4);
  transform: translateY(-2px);
}

.quick-action-icon {
  font-size: 2rem;
}

/* News Section */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7f5cff;
  box-shadow: 0 0 8px rgba(127, 92, 255, 0.8);
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.news-content h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.news-time {
  font-size: 0.8rem;
  color: #8b92a9;
}

/* Progress Section */
.progress-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.progress-label {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
}

.progress-value {
  font-size: 0.85rem;
  color: #7f5cff;
  font-weight: 600;
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7f5cff, #26ffe6);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Activity Timeline */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(127, 92, 255, 0.2);
  border: 1px solid rgba(127, 92, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.activity-content span {
  font-size: 0.8rem;
  color: #8b92a9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard {
    padding: calc(var(--nav-height) + 1rem) 1rem 2rem;
  }

  .dashboard__hero {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .dashboard__hero-content h1 {
    font-size: 2rem;
  }

  .dashboard__hero-stats {
    gap: 2rem;
  }

  .hero-stat-value {
    font-size: 2rem;
  }

  .dashboard__grid {
    gap: 1.5rem;
  }

  .dashboard__two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard__hero-stats {
    gap: 1.5rem;
  }

  .hero-stat-value {
    font-size: 1.75rem;
  }
}

/* Chatbot Floating Action Button */
.chatbot-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #7f5cff, #26ffe6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(127, 92, 255, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.chatbot-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(127, 92, 255, 0.6);
  background: linear-gradient(135deg, #8f6dff, #36ffff);
}

.chatbot-fab svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .chatbot-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }
  
  .chatbot-fab svg {
    width: 20px;
    height: 20px;
  }
}
