/* brain-bulk.css — Bulk actions for Second Brain */

/* Floating action bar */
.brain-bulk-bar {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface-elevated);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 100;
  white-space: nowrap;
  animation: bulk-bar-in 0.2s ease;
}

@keyframes bulk-bar-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bulk-count {
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
  color: var(--text-primary);
}

.bulk-action {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: opacity 0.15s;
}

.bulk-action:hover {
  opacity: 0.85;
}

.bulk-action[data-bulk="delete"] {
  background: #ef4444;
  color: white;
}

.bulk-action[data-bulk="cancel"] {
  background: transparent;
  color: var(--text-secondary);
}

/* Select toggle button injected into brain header */
.bulk-select-toggle {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  margin-left: 8px;
}

.bulk-select-toggle.active,
.bulk-select-toggle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Note card in bulk mode */
.brain-note-card.bulk-mode {
  cursor: pointer;
  position: relative;
}

.brain-note-card.bulk-selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Checkbox overlay injected by BrainBulk */
.bulk-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-elevated, #fff);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: background 0.15s, border-color 0.15s;
}

.bulk-mode .bulk-checkbox {
  display: flex;
}

.bulk-selected .bulk-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.bulk-selected .bulk-checkbox::after {
  content: '✓';
  color: white;
  font-size: 12px;
  line-height: 1;
}

/* Category picker modal injected by BrainBulk */
.bulk-category-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in 0.15s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bulk-category-modal {
  background: var(--surface-elevated);
  border-radius: 16px 16px 0 0;
  padding: 20px 16px 32px;
  width: 100%;
  max-width: 480px;
  animation: slide-up 0.2s ease;
}

@keyframes slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.bulk-category-modal h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.bulk-category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-category-option {
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.bulk-category-option:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
