/* Agent status dashboard mockup */

.dashboard {
  width: 100%;
  max-width: 420px;
  background: #fafafa;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 16px 64px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 80px rgba(20, 79, 255, 0.12),
    0 0 160px rgba(20, 79, 255, 0.06);
}

/* --- Header --- */
.dashboard__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.dashboard__status-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
}

.dashboard__status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.dashboard__header-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dashboard__agent-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  font-family: var(--font-mono);
}

.dashboard__status-text {
  font-size: 12px;
  font-weight: 500;
  color: #22c55e;
}

.dashboard__uptime {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* --- Body --- */
.dashboard__body {
  padding: 16px;
}

/* --- Metrics row --- */
.dashboard__metrics {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard__metric {
  flex: 1;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.dashboard__metric-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.dashboard__metric-label {
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Activity feed --- */
.dashboard__activity {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 12px;
}

.dashboard__activity-title {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.dashboard__activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.4;
  font-family: system-ui, -apple-system, sans-serif;
}

.dashboard__activity-item + .dashboard__activity-item {
  border-top: 1px solid #f9fafb;
}

.dashboard__activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard__activity-dot--success {
  background: #22c55e;
}

.dashboard__activity-dot--info {
  background: #3b82f6;
}

.dashboard__activity-text {
  flex: 1;
  color: #374151;
}

.dashboard__activity-time {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

/* --- Footer bars --- */
.dashboard__footer {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard__footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard__footer-label {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  width: 52px;
  flex-shrink: 0;
}

.dashboard__bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.dashboard__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 3px;
  transition: width 1s ease;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .dashboard {
    max-width: 100%;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard__status-dot {
    animation: none;
  }
}
