.status-dot {
  display: inline-block;
  position: relative;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}

/* Offline */
.status-dot.offline {
  background: #ff3b30;
}

.status-dot.offline::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff3b30;
  animation: pulse-red 2s infinite;
  opacity: 0.4;
}

/* Online */
.status-dot.online {
  background: #00c853;
}

.status-dot.online::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #00c853;
  animation: pulse-green 1.5s infinite;
  opacity: 0.6;
}

/* Animace */

@keyframes pulse-green {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse-red {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
