/* ============================================================
   ELHASSANE STUDIO - AI Construction Manager
   الملف: public/css/auto-reports.css - أنماط التقارير التلقائية
   ============================================================ */

.report-content {
  direction: rtl;
  font-family: 'Cairo', Arial, sans-serif;
}

.report-section {
  margin-bottom: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}

.dark .report-section {
  background: #1a1a2e;
}

.report-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.dark .report-section-title {
  color: #e2e8f0;
  border-color: #374151;
}

.report-executive-summary {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  border-right: 4px solid #3b82f6;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.dark .report-executive-summary {
  background: #1e293b;
  border-color: #3b82f6;
}

.metric-card {
  background: #ffffff;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark .metric-card {
  background: #1e293b;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: #1a365d;
}

.dark .metric-value {
  color: #e2e8f0;
}

.metric-label {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}

.dark .metric-label {
  color: #94a3b8;
}

.insight-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid #3b82f6;
}

.dark .insight-item {
  background: #1e293b;
}

.insight-item.success { border-left-color: #22c55e; }
.insight-item.warning { border-left-color: #f59e0b; }
.insight-item.danger { border-left-color: #ef4444; }

.insight-icon { font-size: 20px; }
.insight-title { font-weight: 600; font-size: 14px; }
.insight-description { font-size: 13px; color: #4a5568; }

.dark .insight-description { color: #a0aec0; }

.recommendations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendations-list li {
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 14px;
  border-right: 2px solid #8b5cf6;
}

.dark .recommendations-list li {
  background: #1e293b;
}

.risk-item {
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 8px;
  border-right: 3px solid #3b82f6;
}

.dark .risk-item {
  background: #1e293b;
}

.risk-item.severity-low { border-right-color: #22c55e; }
.risk-item.severity-medium { border-right-color: #f59e0b; }
.risk-item.severity-high { border-right-color: #ef4444; }
.risk-item.severity-critical { border-right-color: #dc2626; border-right-width: 4px; }

.risk-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.risk-type {
  font-weight: 600;
  font-size: 14px;
}

.risk-severity {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #4a5568;
}

.risk-item.severity-low .risk-severity { background: #d1fae5; color: #065f46; }
.risk-item.severity-medium .risk-severity { background: #fef3c7; color: #92400e; }
.risk-item.severity-high .risk-severity { background: #fecaca; color: #991b1b; }
.risk-item.severity-critical .risk-severity { background: #fee2e2; color: #7f1d1d; }

.risk-description { font-size: 14px; }
.risk-impact { font-size: 12px; color: #718096; margin-top: 4px; }

.report-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  margin-top: 16px;
}
