/* ═══════════════════════════════════════════════
   CyberAware UK — Professional Dashboard
   ═══════════════════════════════════════════════ */

.dashboard { max-width: 1400px; margin: 0 auto; padding: 24px 40px; }

/* ── Header ── */
.dash-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.dash-head-left h1 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.3px;
  margin: 0 0 2px; color: #050505;
}
.dash-head-left .sub {
  font-size: 13px; color: #65676b;
}
.dash-head-right {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #65676b;
}
.live-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #22c55e; border-radius: 50%;
  animation: dash-pulse 2s infinite;
}
@keyframes dash-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── KPI Grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.kpi {
  background: #fff; border: 1px solid #e4e6eb;
  border-radius: 12px; padding: 18px;
  position: relative; overflow: hidden;
  transition: all 0.2s ease;
}
.kpi:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.kpi .bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.kpi .icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; margin-bottom: 10px;
}
.kpi .lbl {
  font-size: 10px; color: #65676b; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700;
}
.kpi .val {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  margin: 2px 0;
}
.kpi .chg {
  font-size: 11px; font-weight: 600;
}

/* ── Panel ── */
.dash-panel {
  background: #fff; border: 1px solid #e4e6eb;
  border-radius: 12px; padding: 20px; margin-bottom: 12px;
}
.dash-panel .head {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #050505;
  margin-bottom: 14px;
}
.dash-panel .head .tag {
  margin-left: auto; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: #f0f2f5; color: #65676b;
  padding: 2px 8px; border-radius: 999px;
}
.dash-panel .head .tag.live { background: #dcfce7; color: #16a34a; }
.dash-panel .head .tag.new { background: #e8f0fe; color: #1877f2; }

/* ── Intel Feed ── */
.intel-feed { display: flex; flex-direction: column; }
.intel-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid #f0f2f5;
  font-size: 13px; color: #3a3a3a; line-height: 1.45;
}
.intel-row:last-child { border-bottom: none; }
.intel-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 5px; flex-shrink: 0;
}

/* ── Stat Quad ── */
.stat-q {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.stat-q .sq {
  border-radius: 10px; padding: 14px 10px; text-align: center;
}
.stat-q .sq .lbl {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 600; margin-bottom: 2px;
}
.stat-q .sq .v {
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
}
.stat-q .sq .src {
  font-size: 9px; margin-top: 3px; opacity: 0.7;
}

/* ── Two column ── */
.dash-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 680px) { .dash-2col { grid-template-columns: 1fr; } }

/* ── Podcast ── */
.dash-pod {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px;
}
.dash-pod .art {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.dash-pod .info { flex: 1; }
.dash-pod .info .t {
  font-size: 11px; color: #65676b;
}
.dash-pod .info .n {
  font-size: 14px; font-weight: 600; color: #050505;
}
.dash-pod .meta {
  font-size: 11px; color: #65676b; white-space: nowrap;
}
.dash-audio { width: 100%; height: 40px; border-radius: 8px; }

/* ── Quick Actions ── */
.act-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.act-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 16px 10px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 12px;
  color: white !important; transition: all 0.2s ease;
}
.act-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.act-btn .a-icon { font-size: 22px; }

/* ── Scam bars ── */
.scam-bars { display: flex; flex-direction: column; gap: 8px; }
.scam-bar {
  display: flex; align-items: center; gap: 10px;
}
.scam-bar .sl { font-size: 13px; min-width: 120px; }
.scam-bar .st { font-size: 13px; font-weight: 600; min-width: 24px; text-align: right; }
.scam-track {
  flex: 1; height: 8px; background: #f0f2f5;
  border-radius: 4px; overflow: hidden;
}
.scam-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }

/* ── Brief excerpt ── */
.brief-ex {
  font-size: 13px; color: #65676b; line-height: 1.6;
  margin-bottom: 10px;
}


/* Dashboard responsive improvements */
@media (min-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dash-panel .head {
    font-size: 14px !important;
  }
}
