/* Dashboard mock styles */
.dash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  width: 100%;
  position: relative;
}

.dash-chrome {
  height: 40px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 14px;
}
.dash-traffic { display: flex; gap: 6px; }
.dash-traffic span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-strong);
}
.dash-traffic span:nth-child(1) { background: #ff5f57; }
.dash-traffic span:nth-child(2) { background: #ffbd2e; }
.dash-traffic span:nth-child(3) { background: #28c940; }

.dash-url {
  flex: 1;
  max-width: 360px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.dash-chrome-actions { font-size: 11px; }
.dash-dot-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--status-reached-soft);
  color: var(--status-reached);
  border-radius: 100px;
  font-weight: 500;
  font-size: 11px;
}
.dash-dot-live span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--status-reached);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.dash-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 560px;
}

.dash-side {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-side-header { padding: 0 8px 8px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s;
}
.dash-nav a:hover { background: color-mix(in oklch, var(--bg-alt) 60%, var(--border) 40%); color: var(--text); }
.dash-nav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); font-weight: 500; }

.dash-credit {
  margin-top: auto;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.dash-credit-row { display: flex; justify-content: space-between; align-items: center; }
.dash-credit-bar {
  margin-top: 8px;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.dash-credit-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
}

.dash-main {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dash-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--status-reached-soft);
  color: var(--status-reached);
}
.dash-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-reached);
}
.dash-btn-ghost, .dash-btn-primary {
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.dash-btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: transparent;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dash-stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  min-height: 96px;
}
.dash-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 6px;
}
.dash-stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.dash-stat-value span {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}
.dash-stat-bar {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 12px;
}
.dash-stat-bar span {
  display: block;
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s var(--ease);
}

.dash-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.dash-table-head {
  display: flex;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.dash-th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text-subtle);
}
.dash-table-body { max-height: 320px; overflow: hidden; }
.dash-row {
  display: flex;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s var(--ease);
}
.dash-row:last-child { border-bottom: none; }
.dash-row.active { background: color-mix(in oklch, var(--status-calling-soft) 60%, var(--surface)); }
.dash-td { min-width: 0; }
.dash-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--font-display);
}

/* Waveform animation */
@keyframes wave-0 { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
@keyframes wave-1 { 0%,100% { transform: scaleY(0.7); } 50% { transform: scaleY(0.3); } }
@keyframes wave-2 { 0%,100% { transform: scaleY(0.5); } 50% { transform: scaleY(0.9); } }
@keyframes wave-3 { 0%,100% { transform: scaleY(0.3); } 50% { transform: scaleY(0.8); } }

/* Responsive dashboard */
@media (max-width: 860px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-main { padding: 16px; }
  .dash-td:nth-child(4) { display: none; }
  .dash-th:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-header { flex-direction: column; align-items: stretch; }
  .dash-td:nth-child(3), .dash-th:nth-child(3) { display: none; }
}
