/* Spell Manager page — /characters/:id/spells */

.spell-manager-page .character-section {
  margin-bottom: 1.5rem;
}

/* Slot grid: a row of compact cells per spell level */
.spell-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.spell-slot-cell {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  padding: 0.5rem;
  text-align: center;
}

.spell-slot-level {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spell-slot-count {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.25rem 0;
  color: var(--text-primary);
}

.spell-slot-actions {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.spell-slot-actions .button.small {
  flex: 1;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
}

/* Spell table — admin-table reskin tuned for spell rows */
.spell-table .spell-name {
  font-weight: 500;
  color: var(--text-primary);
}

.spell-table .spell-level {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.spell-table .spell-school {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.spell-table .spell-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
