/*
 * dashboard.css — /principal dashboard + seed of the Blade component library (Task 8.3 / 8.5)
 * Design language borrowed from the collision report (/colid/report): stat tiles, status pills, cards.
 * Loaded globally from layouts/app.blade.php so x-stat-tile / x-status-pill / x-empty-state work anywhere.
 */

:root {
  --dash-teal: #01727d;
  --dash-teal-dark: #0c2e8a;
  --dash-ink: #23282c;
  --dash-muted: #6c757d;
  --dash-border: #e4e7eb;
  --dash-bg-soft: #f5f7fa;
  --dash-radius: 10px;
  --dash-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --dash-shadow-hover: 0 4px 14px rgba(0, 0, 0, .10);
  --dash-green: #2eb85c;
  --dash-red: #e55353;
  --dash-amber: #f9b115;
  --dash-blue: #3399ff;
}

/* ---------- Protection status strip ---------- */
.dash-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  background: linear-gradient(135deg, var(--dash-teal-dark), var(--dash-teal));
  color: #fff;
  border-radius: var(--dash-radius);
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: var(--dash-shadow);
}
.dash-strip.is-inactive {
  background: linear-gradient(135deg, #7a2e2e, #b04545);
}
.dash-strip__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  line-height: 1.25;
}
.dash-strip__item .fa {
  font-size: 18px;
  opacity: .95;
}
.dash-strip__item strong {
  font-weight: 600;
}
.dash-strip__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
}
.dash-strip__spacer {
  margin-left: auto;
}
.dash-strip .btn {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-weight: 600;
}
.dash-strip .btn:hover {
  background: #fff;
  color: var(--dash-teal-dark);
}

/* ---------- Section headings ---------- */
.dash-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dash-muted);
  font-weight: 600;
  margin: 26px 0 12px;
}

/* ---------- Stat tiles (x-stat-tile) ---------- */
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.stat-tile {
  display: block;
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 18px 20px;
  box-shadow: var(--dash-shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
  position: relative;
  overflow: hidden;
}
a.stat-tile:hover {
  box-shadow: var(--dash-shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.stat-tile__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--dash-teal);
}
.stat-tile--danger .stat-tile__accent { background: var(--dash-red); }
.stat-tile--warning .stat-tile__accent { background: var(--dash-amber); }
.stat-tile--info .stat-tile__accent { background: var(--dash-blue); }
.stat-tile--success .stat-tile__accent { background: var(--dash-green); }
.stat-tile__value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--dash-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat-tile--danger .stat-tile__value { color: var(--dash-red); }
.stat-tile--warning .stat-tile__value { color: #d99400; }
.stat-tile__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dash-muted);
}
.stat-tile__icon {
  font-size: 15px;
  opacity: .5;
}

/* ---------- Status pills (x-status-pill) ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.status-pill--neutral { background: #eef1f4; color: #55606a; }
.status-pill--success { background: #e5f6ec; color: #1f8f47; }
.status-pill--danger  { background: #fdecec; color: #c23636; }
.status-pill--warning { background: #fef4e0; color: #b57c0a; }
.status-pill--info    { background: #e7f1ff; color: #1a6fd4; }
.status-pill .fa { font-size: 11px; }

/* ---------- Attention card (Requer sua atenção) ---------- */
.dash-attention {
  border: 1px solid #f3c9c9;
  border-left: 4px solid var(--dash-red);
  border-radius: var(--dash-radius);
  background: #fffafa;
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: var(--dash-shadow);
}
.dash-attention__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: #b23a3a;
  margin: 0 0 12px;
}
.dash-attention__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-attention__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid #f3e2e2;
  font-size: 14px;
}
.dash-attention__item:first-child { border-top: 0; }
.dash-attention__item a { color: var(--dash-teal); font-weight: 600; }
.dash-attention__item .dash-attention__meta { color: var(--dash-muted); font-size: 13px; }
.dash-attention__item .dash-attention__cta { margin-left: auto; }

/* ---------- Credits mini-card ---------- */
.dash-credits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 16px 20px;
  box-shadow: var(--dash-shadow);
  margin-bottom: 22px;
}
.dash-credits__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--dash-teal);
  line-height: 1;
}
.dash-credits__label { font-size: 13px; color: var(--dash-muted); }
.dash-credits__spacer { margin-left: auto; }

/* ---------- Empty state (x-empty-state) ---------- */
.dash-empty {
  text-align: center;
  padding: 34px 20px;
  color: var(--dash-muted);
}
.dash-empty__icon { font-size: 38px; color: #b6c0cc; margin-bottom: 12px; }
.dash-empty--success .dash-empty__icon { color: var(--dash-green); }
.dash-empty__text { max-width: 440px; margin: 0 auto 16px; font-size: 15px; }

/* ---------- New-account checklist ---------- */
.dash-checklist { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.dash-checklist__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  margin-bottom: 12px;
  background: #fff;
  box-shadow: var(--dash-shadow);
}
.dash-checklist__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dash-bg-soft);
  color: var(--dash-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.dash-checklist__item.is-done .dash-checklist__num {
  background: var(--dash-green);
  color: #fff;
}
.dash-checklist__body { flex: 1; }
.dash-checklist__body strong { display: block; font-size: 15px; color: var(--dash-ink); }
.dash-checklist__body span { font-size: 13px; color: var(--dash-muted); }

/* ---------- Restyled despachos card header ---------- */
.dash-card { border: 1px solid var(--dash-border); border-radius: var(--dash-radius); box-shadow: var(--dash-shadow); }
.dash-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--dash-border);
  font-weight: 600;
  color: var(--dash-ink);
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
  .dash-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-strip__spacer { margin-left: 0; }
  .dash-strip .btn { width: 100%; }
  .stat-tile__value { font-size: 26px; }
}
