/* sse-indicator.css - Visual indicator cho SSE connection */

/* SSE Connection Indicator */
.sse-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.sse-indicator.show {
  opacity: 1;
  transform: translateY(0);
}

.sse-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulse-sse 2s ease-in-out infinite;
}

@keyframes pulse-sse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.sse-indicator.disconnected .sse-indicator-dot {
  background-color: #ef4444;
  animation: none;
}

.sse-indicator-text {
  color: #1e293b;
}

/* New log animation */
.log-item.new-log {
  animation: slideInLog 0.3s ease-out;
  background-color: #ecfdf5;
}

@keyframes slideInLog {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.log-item.new-log::before {
  content: "NEW";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  background-color: #10b981;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  animation: fadeOutNew 3s ease-out forwards;
}

@keyframes fadeOutNew {
  0%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Remove new-log class after animation */
.log-item {
  position: relative;
}
