/* Hero Section - Full Width Wrapper */
.dashboard-hero-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -24px;
  margin-bottom: 40px;
  overflow: hidden;
}

/* Dashboard Hero Section */
.dashboard-hero {
  position: relative;
  background: linear-gradient(135deg, #1877F2 0%, #0d5dbf 50%, #084a99 100%);
  color: white;
  padding: 60px 0 0 0;
  overflow: hidden;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  animation: fadeInDown 0.8s ease-out;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Waves Animation */
.waves-container {
  position: relative;
  width: 100%;
  height: 15vh;
  min-height: 100px;
  max-height: 150px;
  margin-bottom: -7px;
}

.waves {
  position: relative;
  width: 100%;
  height: 100%;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color), transparent);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.stat-card-primary { --card-color: #0d6efd; }
.stat-card-success { --card-color: #198754; }
.stat-card-warning { --card-color: #ffc107; }
.stat-card-info { --card-color: #0dcaf0; }

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--card-color), var(--card-color));
  color: white;
  opacity: 0.9;
}

.stat-card-primary .stat-icon { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.stat-card-success .stat-icon { background: linear-gradient(135deg, #198754, #146c43); }
.stat-card-warning .stat-icon { background: linear-gradient(135deg, #ffc107, #ff9800); }
.stat-card-info .stat-icon { background: linear-gradient(135deg, #0dcaf0, #0891b2); }

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: #2c3e50;
}

.stat-label {
  font-size: 0.95rem;
  color: #6c757d;
  margin: 5px 0 10px 0;
}

.stat-progress {
  height: 6px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.stat-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--card-color), var(--card-color));
  border-radius: 10px;
  transition: width 1s ease-out;
}

/* Chart Card */
.chart-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.chart-header h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.chart-actions {
  display: flex;
  gap: 8px;
}

.btn-chart-action {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8f9fa;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6c757d;
}

.btn-chart-action:hover,
.btn-chart-action.active {
  background: #0d6efd;
  color: white;
}

/* Activity Grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.activity-card,
.quick-actions-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.activity-header,
.quick-actions-header {
  margin-bottom: 20px;
}

.activity-header h6,
.quick-actions-header h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.activity-item:hover {
  background: #f8f9fa;
}

.activity-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.activity-info {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  color: #2c3e50;
  margin: 0 0 4px 0;
}

.activity-time {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(13,110,253,0.3);
}

.quick-action-btn i {
  font-size: 1.8rem;
}

.quick-action-btn span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Members Table */
.members-table-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.table-header h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.btn-view-all {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-view-all:hover {
  color: #0a58ca;
  transform: translateX(3px);
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.modern-table thead th {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 12px 15px;
  border: none;
}

.modern-table tbody tr {
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
  background: #e9ecef;
  transform: scale(1.01);
}

.modern-table tbody td {
  padding: 15px;
  border: none;
}

.modern-table tbody tr td:first-child {
  border-radius: 10px 0 0 10px;
}

.modern-table tbody tr td:last-child {
  border-radius: 0 10px 10px 0;
}

.badge-id {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-score {
  background: linear-gradient(135deg, #198754, #146c43);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .dashboard-hero-wrapper {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .activity-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .waves-container {
    height: 40px;
    min-height: 40px;
  }
}
