/* Prime Minister Global Certification Portal - Custom Styles */

/* Professional Color Scheme */
:root {
  --pgc-primary: #1e3c72;
  --pgc-secondary: #2a5298;
  --pgc-success: #28a745;
  --pgc-warning: #ffc107;
  --pgc-danger: #dc3545;
  --pgc-info: #17a2b8;
  --pgc-light: #f8f9fa;
  --pgc-dark: #343a40;
}

/* Header Enhancements */
.page-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--pgc-secondary);
}

.page-header .logo-wrapper svg {
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

/* Dashboard Cards */
.certification-stat-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.certification-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.certification-stat-card:nth-child(1) {
  border-left-color: var(--pgc-primary);
}

.certification-stat-card:nth-child(2) {
  border-left-color: var(--pgc-success);
}

.certification-stat-card:nth-child(3) {
  border-left-color: var(--pgc-warning);
}

.certification-stat-card:nth-child(4) {
  border-left-color: var(--pgc-danger);
}

/* Stat Icons */
.stat-icon {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.certification-stat-card:hover .stat-icon {
  transform: scale(1.1);
}

/* Progress Bars */
.progress {
  border-radius: 10px;
  background-color: #e9ecef;
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Category Cards */
.category-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pgc-primary), var(--pgc-secondary));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Table Enhancements */
.table-hover tbody tr:hover {
  background-color: rgba(30, 60, 114, 0.05);
}

.table thead th {
  background-color: var(--pgc-light);
  border-bottom: 2px solid var(--pgc-primary);
  font-weight: 600;
  color: var(--pgc-dark);
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.5em 0.75em;
}

/* Button Enhancements */
.btn-primary {
  background: linear-gradient(135deg, var(--pgc-primary), var(--pgc-secondary));
  border: none;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.btn-outline-primary {
  border-color: var(--pgc-primary);
  color: var(--pgc-primary);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--pgc-primary);
  border-color: var(--pgc-primary);
  transform: translateY(-1px);
}

/* Search Form */
.search-form .input-group {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
  border: none;
  padding: 0.75rem 1rem;
}

.search-form .input-group-text {
  border: none;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .certification-stat-card {
    margin-bottom: 1rem;
  }
  
  .category-card {
    margin-bottom: 1rem;
  }
  
  .page-header {
    padding: 1rem 0;
  }
  
  .page-header h4 {
    font-size: 1.1rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* Loading States */
.card-loading {
  position: relative;
  overflow: hidden;
}

.card-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .certification-dashboard {
    background-color: #1a1a1a;
  }
  
  .card {
    background-color: #2d2d2d;
    border-color: #404040;
  }
  
  .text-muted {
    color: #b0b0b0 !important;
  }
}
