/* RBR Archive Streamer — Custom Styles */

/* ---- Live dot indicator ---- */
.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #6c757d;
  display: inline-block;
  flex-shrink: 0;
}
.live-dot.live {
  background-color: #dc3545;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
}

/* ---- Has-played dot (playlist items) ---- */
.has-played-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6c757d;
  flex-shrink: 0;
  border: 1px solid #495057;
}
.has-played-dot.played {
  background-color: #198754;
}

/* ---- Playlist items ---- */
.playlist-item {
  transition: background-color 0.15s;
}
.playlist-item.dragging {
  opacity: 0.5;
}
.sortable-ghost {
  opacity: 0.3;
  background-color: #343a40 !important;
}
.drag-handle {
  cursor: grab;
}
.drag-handle:active {
  cursor: grabbing;
}

/* ---- Editable name ---- */
.editable-name[contenteditable="true"] {
  outline: 1px solid #dc3545;
  border-radius: 3px;
  padding: 1px 4px;
  background-color: #212529;
}

/* ---- File browser ---- */
.file-item.selected {
  background-color: rgba(220, 53, 69, 0.15) !important;
  border-left: 3px solid #dc3545;
}
.file-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.folder-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

/* ---- Spin animation (reconnect icon) ---- */
.spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---- Progress bar ---- */
#progress-bar {
  transition: width 1s linear;
}

/* ---- Sticky table headers ---- */
.sticky-top {
  z-index: 1;
}

/* ---- Health alert states ---- */
.stat-warn { color: #ffc107 !important; }
.stat-bad  { color: #dc3545 !important; }
