.track-diagnostics {
  position: absolute;
  top: 20px; /* Adjusted for new positioning relative to session-track */
  left: 100%;
  margin-left: 15px;
  margin-bottom: 15px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 500px;
  max-width: 600px;
  padding: 12px;
  font-size: 12px;
  animation: chatBubbleFadeIn 0.2s ease-out;
}

@keyframes chatBubbleFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateX(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

.track-diagnostics::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 20px; /* Position arrow to point to avatar center */
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid white;
}

.close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.close-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.close-button img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.close-button:hover img {
  opacity: 1;
}

.track-diagnostics h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: left;
}

.diagnostics-content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.stats-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cccccc;
}

.stats-holder {
  /* border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 8px; */
}

.stats-holder h3 {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.stat:hover {
  background-color: #f5f5f5;
}

.stat .title {
  flex: 1;
  font-weight: 500;
  color: #555;
  font-size: 11px;
}

.status-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 8px;
  flex-shrink: 0;
}

.status-icon.good {
  background-color: #28a745;
}

.status-icon.warn {
  background-color: #ffc107;
}

.status-icon.poor {
  background-color: #dc3545;
}

.stat .stat-value {
  font-weight: 600;
  color: #333;
  font-size: 11px;
  text-align: right;
  min-width: 40px;
}

.stats-info {
  width: 180px;
  border-radius: 15px;
  border: 1px solid #ddd;
  padding: 10px;
  font-size: 11px;
  color: #666;
  line-height: 1.4;
  background-color: #fff;
  flex-shrink: 0;
}

.plusone {
  color: #007bff;
  font-weight: bold;
  margin: 0 2px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .track-diagnostics {
    min-width: 280px;
    max-width: 90vw;
  }
}
