/* web/static/css/librarySelect.css */

.select-mode-btn[aria-pressed='true'] {
  background: #0a7cff;
  border-color: #0a7cff;
  color: #fff;
}

/* Floating Bottom Bar */
.selection-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: calc(var(--player-offset, 80px) + env(safe-area-inset-bottom, 0px));
  z-index: 9000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 12px 16px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.selection-bar-left strong {
  font-size: 1rem;
  color: #333;
}

.selection-bar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.selection-bar button {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.selection-bar button:hover {
  background: #f2f2f2;
}

/* Primary Action Style */
.selection-bar button#selAddToPlaylist {
  background: #0a7cff;
  color: white;
  border-color: #0a7cff;
}

.selection-bar .danger {
  color: #d00;
  border-color: rgba(200, 0, 0, 0.1);
}

/* Row checkboxes */
.chapter-list ul li .sel-box {
  flex: none;
  margin-top: 0.35em;
  transform: scale(1.2);
}

.chapter-list ul li .sel-badge {
  display: none; /* Hide badge, prefer checkbox check state visual */
}

/* Row selected state */
.chapter-list ul li.is-selected {
  background: rgba(10, 124, 255, 0.08);
  border-radius: 8px;
}

/* Dark Mode */
.dark-mode .selection-bar {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dark-mode .selection-bar-left strong {
  color: #fff;
}

.dark-mode .selection-bar button {
  background: #333;
  color: #eee;
  border-color: #444;
}

.dark-mode .selection-bar button#selAddToPlaylist {
  background: #0a7cff;
  border-color: #0a7cff;
  color: white;
}

.dark-mode .chapter-list ul li.is-selected {
  background: rgba(10, 124, 255, 0.2);
}
