/* ================================================================
   AI GUARDIAN — DASHBOARD CSS
   ================================================================ */

.dash-welcome {
  background: linear-gradient(135deg, #0b1120 0%, #1e1b4b 50%, #31102b 100%);
  border-radius: 16px;
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
}

.dash-welcome::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(225,29,72,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dash-welcome-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-welcome-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.5;
}

.dash-welcome-actions {
  display: flex;
  gap: 12px;
  z-index: 2;
}

/* Stat Grid */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e8eaf0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.icon-red { background: #ffe4ea; color: #e11d48; }
.icon-green { background: #eafaf0; color: #16a34a; }
.icon-blue { background: #eaf1ff; color: #2563eb; }
.icon-purple { background: #f3e8ff; color: #9333ea; }

.dash-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.dash-stat-label {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

/* Quick Actions Grid */
.dash-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-action-card {
  background: #ffffff;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dash-action-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.dash-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(225,29,72,0.08);
  border-color: rgba(225,29,72,0.25);
}

.dash-action-card:hover::before {
  background: #e11d48;
}

.dash-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #e11d48;
  border: 1px solid #edf2f7;
  transition: background 0.2s, color 0.2s;
}

.dash-action-card:hover .dash-action-icon {
  background: #e11d48;
  color: #ffffff;
}

.dash-action-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.dash-action-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* Two Column Layout */
.dash-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.dash-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e8eaf0;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dash-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Recent Activity List */
.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.activity-item:hover {
  background: #f1f5f9;
}

.activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.activity-info {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.activity-meta {
  font-size: 11.5px;
  color: #64748b;
}

.activity-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }

/* Safety Tip Box */
.safety-tip-box {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.safety-tip-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #be123c;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.safety-tip-text {
  font-size: 13px;
  color: #881337;
  line-height: 1.5;
  font-weight: 500;
}

/* Helplines List */
.helpline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  background: #ffffff;
}

.helpline-item strong {
  font-size: 13px;
  color: #0f172a;
}

.helpline-item span {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.helpline-call-btn {
  background: #e11d48;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.helpline-call-btn:hover {
  background: #be123c;
}

/* Responsive */
@media (max-width: 1024px) {
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-actions-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dash-welcome { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dash-stats-grid { grid-template-columns: 1fr; }
  .dash-actions-grid { grid-template-columns: 1fr; }
}
