/* Professional Dashboard Design - Clean & Government Appropriate */

/* Professional Card Base */
.professional-card {
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.professional-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(76, 175, 80, 0.2);
}

.professional-card .card-header {
  background: white !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 15px 15px 0 0;
}

/* Gender Distribution Professional Design */
.gender-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.gender-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.male-card {
  border-left: 4px solid var(--bs-primary);
}

.female-card {
  border-left: 4px solid var(--bs-success);
}

.gender-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.gender-card:hover .gender-icon-wrapper {
  transform: scale(1.1);
}

.professional-progress {
  height: 10px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.professional-progress .progress-bar {
  border-radius: 5px;
  transition: width 1.2s ease;
  position: relative;
}

.professional-progress .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.summary-stat {
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.summary-stat:hover {
  background: rgba(76, 175, 80, 0.05);
  transform: translateY(-2px);
}

/* Employment Section Professional Design */
.employment-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.employment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.1;
}

.employment-card:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.success-card::before { background: var(--bs-success); }
.info-card::before { background: var(--bs-info); }
.secondary-card::before { background: var(--bs-secondary); }

.employment-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

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

/* Employment Analysis Section */
.employment-analysis {
  background: rgba(248, 249, 250, 0.5);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.employment-gender-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.employment-gender-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-header-custom {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px 12px 0 0;
}

.card-body-custom {
  padding: 1.5rem;
}

.gender-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-item {
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.progress-section {
  background: rgba(248, 249, 250, 0.7);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Badge Enhancements */
.bg-success-subtle { background-color: rgba(25, 135, 84, 0.1) !important; }
.bg-primary-subtle { background-color: rgba(13, 110, 253, 0.1) !important; }
.bg-info-subtle { background-color: rgba(13, 202, 240, 0.1) !important; }
.bg-warning-subtle { background-color: rgba(255, 193, 7, 0.1) !important; }
.bg-secondary-subtle { background-color: rgba(108, 117, 125, 0.1) !important; }

.badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

/* Responsive Professional Design */
@media (max-width: 768px) {
  .gender-card,
  .employment-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .employment-analysis {
    padding: 1.5rem;
  }
  
  .card-header-custom,
  .card-body-custom {
    padding: 1rem;
  }
  
  .gender-icon-wrapper,
  .employment-icon-wrapper {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .summary-stat {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .professional-card .card-header {
    padding: 1rem;
  }
  
  .professional-card .card-body {
    padding: 1rem;
  }
  
  .gender-card,
  .employment-card {
    padding: 1rem;
  }
  
  .employment-analysis {
    padding: 1rem;
  }
  
  .gender-icon-wrapper,
  .employment-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .gender-badge {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Animation Enhancements */
.fade-in-professional {
  animation: fadeInProfessional 0.6s ease-out;
}

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

/* Focus States for Accessibility */
.gender-card:focus-within,
.employment-card:focus-within,
.employment-gender-card:focus-within {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .professional-card,
  .gender-card,
  .employment-card,
  .employment-gender-card {
    border-width: 2px;
    border-color: #000;
  }
  
  .professional-progress,
  .progress-section {
    border: 2px solid #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .professional-card,
  .gender-card,
  .employment-card,
  .employment-gender-card,
  .gender-icon-wrapper,
  .employment-icon-wrapper,
  .professional-progress .progress-bar {
    transition: none;
  }
  
  .professional-card:hover,
  .gender-card:hover,
  .employment-card:hover,
  .employment-gender-card:hover {
    transform: none;
  }
  
  .professional-progress .progress-bar::after {
    animation: none;
  }
}

/* Navbar Logo Styling */
.navbar {
  padding: 0.8rem 0;
}

.navbar-logo {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.brand-title {
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 0;
}

.brand-subtitle {
  font-size: 0.75rem;
  line-height: 1;
  margin-top: -2px;
}

.navbar-brand {
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar-brand:hover {
  transform: scale(1.02);
  text-decoration: none;
}

/* Print Styles */
@media print {
  .professional-card,
  .gender-card,
  .employment-card,
  .employment-gender-card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    background: white !important;
  }
  
  .badge {
    border: 1px solid #000;
    color: #000 !important;
    background: white !important;
  }
}
