/* ============================================================
   ELHASSANE STUDIO - AI Construction Manager
   الملف: public/css/resource-optimization.css - أنماط تحسين الموارد
   ============================================================ */

.optimization-card {
  transition: all 0.3s ease;
}

.optimization-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.optimization-card.priority-critical {
  border-right-color: #ef4444;
  background: linear-gradient(to left, rgba(239, 68, 68, 0.05), transparent);
}

.optimization-card.priority-high {
  border-right-color: #f59e0b;
  background: linear-gradient(to left, rgba(245, 158, 11, 0.05), transparent);
}

.resource-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.resource-status-badge.optimal {
  background: #d1fae5;
  color: #065f46;
}

.resource-status-badge.underutilized {
  background: #fef3c7;
  color: #92400e;
}

.resource-status-badge.overloaded {
  background: #fecaca;
  color: #991b1b;
}

.resource-status-badge.critical {
  background: #fee2e2;
  color: #7f1d1d;
  animation: pulse-critical 1.5s ease-in-out infinite;
}

@keyframes pulse-critical {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.dark .resource-status-badge.optimal {
  background: #14532d;
  color: #86efac;
}

.dark .resource-status-badge.underutilized {
  background: #78350f;
  color: #fbbf24;
}

.dark .resource-status-badge.overloaded {
  background: #7f1d1d;
  color: #fca5a5;
}

.dark .resource-status-badge.critical {
  background: #450a0a;
  color: #fca5a5;
}

.forecast-gap {
  font-size: 28px;
  font-weight: 800;
}

.forecast-gap.positive {
  color: #ef4444;
}

.forecast-gap.negative {
  color: #22c55e;
}