/* Focused Dashboard with PM Background */

/* Main Dashboard Section */
.main-dashboard {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.pm-background-overlay {
  background: linear-gradient(
    135deg,
    rgba(45, 143, 71, 0.65) 0%,
    rgba(76, 175, 80, 0.6) 50%,
    rgba(102, 187, 106, 0.55) 100%
  ), url('/assets/images/pm/slider1.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  min-height: 100vh;
  padding: 2rem 0;
}

.pm-background-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.main-dashboard .container {
  position: relative;
  z-index: 2;
}

/* Youth Logo */
.youth-logo-container {
  animation: fadeInDown 1s ease-out;
}

.youth-logo {
  max-height: 120px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.youth-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.4));
}

/* Dashboard Header */
.dashboard-title {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 2rem;
}

.dashboard-subtitle {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 1.4rem;
  opacity: 0.95;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.95);
}

/* Batch Filter */
.batch-filter-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-select-sm {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-select-sm:focus {
  border-color: var(--pgc-light-green);
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Compact Statistics Cards */
.stat-card-compact {
  transition: all 0.3s ease;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.stat-card-compact:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.stat-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pgc-light-green), var(--pgc-primary-green));
}

.stat-icon-compact {
  transition: all 0.3s ease;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.1));
}

.stat-card-compact:hover .stat-icon-compact {
  transform: scale(1.15) rotate(5deg);
}

.stat-number-compact {
  font-size: 2.2rem;
  font-weight: 900;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin: 0.8rem 0;
}

.stat-label-compact {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pgc-dark);
}

/* Main Statistics Cards */
.stat-card-main {
  transition: all 0.4s ease;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.stat-card-main:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
}

.stat-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pgc-light-green), var(--pgc-primary-green));
}

.stat-icon-main {
  transition: all 0.4s ease;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.stat-card-main:hover .stat-icon-main {
  transform: scale(1.2) rotate(5deg);
}

.stat-number-main {
  font-size: 4rem;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

.stat-label-main {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pgc-dark);
  margin-bottom: 1rem;
}

.stat-update {
  padding: 0.5rem 1rem;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 20px;
  display: inline-block;
}

/* Gender Statistics Section */
.bg-gradient-success {
  background: linear-gradient(135deg, var(--pgc-light-green), var(--pgc-success)) !important;
  border: none;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.gender-stat-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gender-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: rgba(76, 175, 80, 0.3);
}

.bg-light-primary {
  background-color: rgba(33, 150, 243, 0.1) !important;
  border-left: 5px solid var(--pgc-secondary);
}

.bg-light-danger {
  background-color: rgba(244, 67, 54, 0.1) !important;
  border-left: 5px solid var(--pgc-danger);
}

.gender-icon {
  transition: all 0.3s ease;
}

.gender-stat-card:hover .gender-icon {
  transform: scale(1.15);
}

/* Job Placement Section */
.bg-gradient-warning {
  background: linear-gradient(135deg, #ff9800, #ffc107) !important;
  border: none;
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.3);
}

.job-stat-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.95);
}

.job-stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(76, 175, 80, 0.3);
}

.job-icon {
  transition: all 0.3s ease;
}

.job-stat-card:hover .job-icon {
  transform: scale(1.2) rotate(-5deg);
}

.bg-light-success {
  background-color: rgba(76, 175, 80, 0.1) !important;
  border-left: 4px solid var(--pgc-success);
}

.bg-light-info {
  background-color: rgba(0, 188, 212, 0.1) !important;
  border-left: 4px solid var(--pgc-info);
}

.bg-light-secondary {
  background-color: rgba(158, 158, 158, 0.1) !important;
  border-left: 4px solid var(--pgc-secondary);
}

/* Enhanced Progress Bars */
.progress {
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  border-radius: 10px;
  transition: width 1s ease;
  background: linear-gradient(90deg, currentColor, rgba(255, 255, 255, 0.2));
}

/* Card Enhancements */
.card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
  border: none;
  padding: 1.5rem 2rem;
  font-weight: 600;
}

.card-body {
  padding: 2rem;
}

/* Loading Animations */
.spinner-border-sm {
  width: 1.5rem;
  height: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pm-background-overlay {
    background-attachment: scroll;
    padding: 1rem 0;
  }
  
  .dashboard-title {
    font-size: 2.5rem;
  }
  
  .dashboard-subtitle {
    font-size: 1.1rem;
  }
  
  .stat-number-main {
    font-size: 3rem;
  }
  
  .stat-label-main {
    font-size: 1.2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .stat-card-main .card-body {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .dashboard-title {
    font-size: 2rem;
  }
  
  .stat-number-main {
    font-size: 2.5rem;
  }
  
  .stat-label-main {
    font-size: 1.1rem;
  }
  
  .pm-background-overlay {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse-green {
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 20px rgba(76, 175, 80, 0);
  }
}

/* Live Data Indicator */
.live-indicator {
  position: relative;
}

.live-indicator::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .stat-card-main,
  .gender-stat-card,
  .job-stat-card,
  .stat-icon-main,
  .gender-icon,
  .job-icon {
    transition: none;
  }
  
  .stat-card-main:hover,
  .gender-stat-card:hover,
  .job-stat-card:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .pm-background-overlay {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(45, 143, 71, 0.95) 100%
    ), url('/assets/images/pm/slider1.webp');
  }
  
  .dashboard-title,
  .dashboard-subtitle {
    text-shadow: 2px 2px 0 #000;
  }
}
