/* ============================================ */

/* DASHBOARD HERO SECTION */

/* ============================================ */

.dashboard-hero {
  background: var(--primary-color);
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.welcome-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.welcome-content {
  color: white;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white !important;
}

.welcome-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

.welcome-actions .btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================ */

/* DASHBOARD STATS */

/* ============================================ */

.dashboard-stats-section {
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  flex-shrink: 0;
}

.stat-icon.children {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.stat-icon.money {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.stat-icon.active {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

.stat-icon.impact {
  background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.stat-details {
  flex: 1;
  padding-top: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  margin-top: 0;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* ============================================ */

/* SPONSORED CHILDREN SECTION */

/* ============================================ */

.sponsored-children-section {
  margin-bottom: 3rem;
}

.section-header-dash {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title-dash {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.sponsored-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.sponsored-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.sponsored-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.sponsored-card-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sponsored-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.sponsored-info {
  flex: 1;
}

.sponsored-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.sponsored-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.badge-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status.active {
  background: rgba(76, 175, 80, 0.15);
  color: #2E7D32;
}

.badge-status.pending {
  background: rgba(255, 193, 7, 0.15);
  color: #F57C00;
}

.sponsored-progress {
  margin-bottom: 1.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.progress-percent {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.sponsored-actions {
  display: flex;
  gap: 0.8rem;
}

.sponsored-actions .btn {
  flex: 1;
  font-size: 0.9rem;
}

/* ============================================ */

/* RECENT UPDATES SECTION */

/* ============================================ */

.recent-updates-section {
  margin-bottom: 3rem;
}

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

.update-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 2px 10px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.update-item:hover {
  box-shadow: 0 4px 15px var(--shadow-hover);
}

.update-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.update-icon.success {
  background: rgba(76, 175, 80, 0.15);
  color: #2E7D32;
}

.update-icon.info {
  background: rgba(33, 150, 243, 0.15);
  color: #1976D2;
}

.update-icon.warning {
  background: rgba(255, 193, 7, 0.15);
  color: #F57C00;
}

.update-content {
  flex: 1;
}

.update-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.update-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.update-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ============================================ */

/* QUICK ACTIONS SECTION */

/* ============================================ */

.quick-actions-section {
  margin-bottom: 3rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.quick-action-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.quick-action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.quick-action-card i {
  font-size: 2.5rem;
  color: var(--primary-solid);
  margin-bottom: 1rem;
  display: block;
}

.quick-action-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.quick-action-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================ */

/* IMPACT SECTION */

/* ============================================ */

.impact-section {
  margin-bottom: 3rem;
}

.impact-card {
  background: var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.impact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white;
}

.impact-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.impact-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
}

.impact-stat i {
  font-size: 2.5rem;
}

.impact-stat h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.impact-stat p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* ============================================ */

/* MOBILE RESPONSIVE */

/* ============================================ */

@media (max-width: 768px) {
  .welcome-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .welcome-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .welcome-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stat-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .sponsored-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sponsored-actions {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .impact-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .section-header-dash {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .update-item {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .update-icon {
    align-self: flex-start;
  }
}

/* ============================================ */

/* DARK MODE ADJUSTMENTS */

/* ============================================ */

[data-bs-theme="dark"] .welcome-title,
.dark-mode .welcome-title {
  color: white;
}

[data-bs-theme="dark"] .impact-title,
.dark-mode .impact-title {
  color: white;
}

[data-bs-theme="dark"] .impact-stat,
.dark-mode .impact-stat {
  color: white;
}